Bwiacek-Notes-SpamAssassin

SpamAssassin Configurations


   KB 24533        Last updated on 2023-05-15  




0.00
(0 votes)


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
Verified Against: ZCS 8.8.15, 9, 10 Date Created: 2023-05-01
Article ID: https://wiki.zimbra.com/index.php?title=Bwiacek-Notes-SpamAssassin Date Modified: 2023-05-15



Try Zimbra

Try Zimbra Collaboration with a 60-day free trial.
Get it now »

Want to get involved?

You can contribute in the Community, Wiki, Code, or development of Zimlets.
Find out more. »

Looking for a Video?

Visit our YouTube channel to get the latest webinars, technology news, product overviews, and so much more.
Go to the YouTube channel »


Jump to: navigation, search