Maliscanner not checking SPF ?

Giovanni Panozzo giovanni at
Mon Jul 1 07:56:20 UTC 2019

Il 30/06/19 19:13, Shawn Iverson via MailScanner ha scritto:
> Just a thought, if DNS is working correctly, you may try recompiling the 
> Mail::SPF from cpan and see if that works.

Yes! DNS was apparently working. Ubuntu 18.04 server by default has 
systemd-resolved listening on and listed in 
I sniffed some DNS packets on the loopback interface and I noticed 
spamassassin sendig all SPF and RBL queries to without the 
"recursive" query DNS flag, causing systemd-resolved to fail with "refused".

Upgrading spamassiassin from 3.4.1 to 3.4.2 seems to fix this issue:
  cpan -f -i Mail::SpamAssassin

Now SPF is checked correctly (provided that envelope_sender_header in 
/etc/MailScanner/spamassassin.conf is set to the correct header, which 
was not automatically done by MailScanner installer ;))

Thank you.

More information about the MailScanner mailing list