SV: handling spam from gmail.
KOCIK Fabien (Acoss)
fabien.kocik at acoss.fr
Thu Jun 11 12:42:08 EEST 2020
Hello,
> Also consider setting up rules in spamassassin / rspamd
Agree with that : for my own usage, I use spamassassin as content-filter (very simple to install) :
https://www.vultr.com/docs/how-to-configure-spamassassin-with-postfix-on-ubuntu-16-04
My local.cf file is very simple :
rewrite_header Subject ***SPAM***
required_score 5.0
use_bayes 1
report_safe 0
trusted_networks <your LAN CIDR>
add_header all X-Spam-AutoLearnStatus _AUTOLEARN_
You will still receive mails but with ***SPAM*** in subject and additional Header field X-Spam-Flag: YES
In Dovecot, simply configure a sieve script to put them in \Junk and mark as read (just to allow recovery possible if it was a real mail).
You can then regularly trash them using un croned doveadm expunge.
Regards
Fabien
More information about the dovecot
mailing list