0

I use SpamAssassin through a milter to check e-mail, but it seems postfix does not check local delivery (like contact forms). How can I force Postfix to treat all mail as 'foreign'?

  • 1
    Did you try setting the `non_smtpd_milters` option? – tater Jul 31 '20 at 11:15
  • Yes, that is set as a 'copy' of the smtpd miltering. DKIM does work, the message is DKIM signed even though it never leaves the server. Still spamfilter headers are nowhere to be found. – Guido Goluke Aug 01 '20 at 15:37
  • One way to force it could be to send all mail to smtpd, like `-o content_filter=smtp:127.0.0.1:25` in `master.cf`. To me this seems heavy-handed. – tater Aug 01 '20 at 15:50
  • Yeah that seems to not address the underlying issue, but thanks anyway. – Guido Goluke Aug 03 '20 at 08:16

1 Answers1

0

OK, this was not a Postfix issue. The spamass-milter plugin I use to pass e-mails from Postfix to spamc (Spamassassin client) had a flag set in its systemd file that made it ignore localhost (127.0.0.1).