0

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.

6E696C73
  • 3
  • 2

1 Answers1

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.

SimoneLazzaris
  • 382
  • 1
  • 4
  • And Amavis needs to be reloaded/restarted to read the new spamassassin rules. – mivk Oct 27 '18 at 00:36
  • 1
    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 https://www.ijs.si/software/amavisd/#faq-spam for info on amavis-new `$sa_` directives. – B. Shea Jun 14 '19 at 17:20