Blacklist domains/mail addresses in SpamAssassin

Edit /etc/spamassassin/v320.pre

Uncomment the Shortcircuit line to enable it:

loadplugin Mail::SpamAssassin::Plugin::Shortcircuit

Edit /etc/spamassassin/

Add these lines to file:

ifplugin Mail::SpamAssassin::Plugin::Shortcircuit
shortcircuit USER_IN_BLACKLIST on
shortcircuit USER_IN_BLACKLIST_TO on
shortcircuit SUBJECT_IN_BLACKLIST on
endif # Mail::SpamAssassin::Plugin::Shortcircuit

Include your blacklist file into

include /etc/spamassassin/

Edit /etc/spamassassin/

Add this line to block all emails from

blacklist_from *

Add this line to block


You can add multiple domains and email accounts to block them.

Reload amavis

service amavis force-reload