My setup is Dovecot + Postfix + Spamassassin + Roundcube, on CentOS. Works great. Using this setup since a long time. Incoming spam gets flagged by Spamassassin too, but I don't know how to stop these emails from hitting my inbox.

Can anyone tell me how to or point me to a link with instructions?

you are viewing a single comment's thread
view the rest of the comments
[–] [B] 1 point 2 years ago

I use FDM for this. Appropriate parts of my ".fdm.conf":

# Where the bad stuff goes.
action "spam" mbox "%h/Mail/spam"

# Some attachments indicate spam just by existing.
$bad_ext = "*.xlsm"
match attachment any-name "*.xlsm" action "spam"

# Run through spamassassin if not too large.
match size < 500K action rewrite "/usr/local/bin/spamc" continue

# If spamassassin thinks it's spam then good enough for me.
match "^X-Spam-Status: Yes" in headers action "spam"
  • source