How can I configure Amavis to apply specific rules from SpamAssassin, like

score MISSING_SUBJECT          30

from Blocking empty subject line emails from being sent or received?

I run Amavisd-new 2.11.0, including the libraries from Spamassassin 3.4.1.


Amavis should read the standard configuration of spamassassin, so you can put your custom configuration in "/etc/mail/spamassassin/local.cf" (or similar) and it should just work.

| improve this answer | |
  • And Amavis needs to be reloaded/restarted to read the new spamassassin rules. – mivk Oct 27 '18 at 0:36
  • Note: Not all Spamassassin directives are observed if using amavis-new (though it does read the sa cf files in). Rule score overrides should be observed, though. For instance using score RCVD_IN_ZEN 4.5 in local.cf will work. Other directives not working should have an amavis-new counterpart. Please consult ijs.si/software/amavisd/#faq-spam for info on amavis-new $sa_ directives. – bshea Jun 14 '19 at 17:20

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.