Bwiacek-Notes-SpamAssassin
SpamAssassin Configurations
Sieve configurations
Client looking to set up a sieve filter to match the FROM filed to sending address.
Verify/Create sauser.cf
Naviagte to /opt/zimbra/data/spamassassin/localrules/
Look for the saucer.cf file. If there is no file you can create it with
touch saucer.cf
Add New Rule
Add the following to the sauser.cf file.
require ["fileinto", "reject", "tag", "flag"]; if header :is "From" "${sender_address}" { # Sender matches authenticated user, do nothing } else { # Sender does not match authenticated user, mark as spam addheader "X-Spam-Flag" "YES"; addheader "X-Spam-Status" "Yes, score=100.0"; fileinto "Junk"; }
Restart Spamassassin
As the zimbra user restart Spamassassin service.
as zimbra user
su - zimbra zmamavisdctl restart
Submitted by: BWiacek |