MailScanner / v5

MailScanner v5
GNU General Public License v2.0
185 stars 59 forks source link

Skip checks for replies to emails #406

Open ghost235 opened 5 years ago

ghost235 commented 5 years ago

Hi,

is there a possibility to skip checks i.e. spamckeck if a header is present?

The idea based on a feature from Rspamd https://rspamd.com/doc/modules/replies.html. The dirty solution will be use rspamd to scan the outgoing msg-ids and and scan the incomming mails for "In-Reply-To:" or "References:" and add a "X-Is-Replay: SeCrEt whatever" header. Than Mailscanner skip checks i.e. spamcheck for this mails and remove the header.

More charming will be someting like "wartermarking" or "HTML/text signature" feature from Mailscanner.

Any idea to skip specific ckecks for replies?

alexskynet commented 3 years ago

You may modiffy Message.pm to whitelist the email if the wanted header is present . Look at Issue "Milter Authenticated users not honoring "Spam List Skip If Authenticated" setting #541" for some code examples about where are the lines of code you may need to change/add.