Postfix + SPF

Enable SPF if you believe you need it.. For your information, SPF is not widely used

You’ll need Mail::SPF::Query : `1. perl -MCPAN -e shell

  1. Under CPAN : install Mail::SPF::Query
  2. Quit CPAN after installation of the library`

Install libspf2-1.0.4 and libspf2-devel-1.0.4 from

wget -O /etc/postfix/

chmod 755 /etc/postfix/

Edit /etc/postfix/ : spfpolicy unix - n n - - spawn user=nobody argv=/usr/bin/perl /etc/postfix/

Edit /etc/postfix/ :

<code>check_policy_service unix:private/spfpolicy

smtpd_recipient_restrictions =
        check_policy_service unix:private/spfpolicy</code>

service postfix restart

Check /var/log/maillog for SPF output

Thanks for reading this post!

If you found an issue in this article, you can create an issue on Github.

If you have a comment or question, please drop me a line below!