Hey guys. I'm running postfix-2.11.1,1 built from ports on FreeBSD 10.0-RELEASE. The port has an option to support SPF via libspf2. I enabled the option. However, I can't figure out how to get it working in Postfix.
Reading mail/postfix's Makefile, enabling the SPF option fetches a patch from http://distcache.freebsd.org/local-distfiles/mm/postfix-2.8.0-libspf2-1.2.x-0.patch.gz.
Reading that patch file, the patch adds some sender restrictions, as well as adds a "Received-SPF:" header. I added a few options to my /usr/local/etc/postfix/main.cf from the patchfile:
I restarted postfix, then sent myself some mail from a Gmail account. The Received-SPF: header was not in those test emails. Am I missing something?
Thank you for the tips/advice/help!
Reading mail/postfix's Makefile, enabling the SPF option fetches a patch from http://distcache.freebsd.org/local-distfiles/mm/postfix-2.8.0-libspf2-1.2.x-0.patch.gz.
Reading that patch file, the patch adds some sender restrictions, as well as adds a "Received-SPF:" header. I added a few options to my /usr/local/etc/postfix/main.cf from the patchfile:
Code:
spf_received_header = yes
spf_mark_only = yes
spf_reject_code = 550
spf_global_whitelist = no
Thank you for the tips/advice/help!