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!

Did you find an issue in this article?

- click on the following Github link
- log into Github with your account
- click on the line number containing the error
- click on the "..." button
- choose "Reference in new issue"
- add a title and your comment
- click "Submit new issue"

Your feedback is much appreciated! πŸ€œπŸΌπŸ€›πŸΌ

You can also drop me a line below!