My config:
/etc/postfix-policyd-spf-python/policyd-spf.conf:
# For a fully commented sample config file see policyd-spf.conf.commented
debugLevel = 1 defaultSeedOnly = 1
HELO_reject = SPF_Not_Pass Mail_From_reject = Fail
PermError_reject = False TempError_Defer = False
skip_addresses = 127.0.0.0/8,::ffff:127.0.0.0//104,::1//128
/etc/postfix/master.cf:
[...] policy-spf unix - n n - - spawn user=nobody argv=/usr/bin/policyd-spf
/etc/postfix/main.cf:
[...] smtpd_recipient_restrictions = permit_sasl_authenticated, permit_mynetworks, check_client_access pcre:/etc/postfix/checks/client-whitelist, check_client_access pcre:/etc/postfix/checks/client-blacklist, reject_unknown_client_hostname, check_policy_service unix:private/policy-spf, [...]
policy-spf_time_limit = 3600s
My config:
/etc/postfix- policyd- spf-python/ policyd- spf.conf:
# For a fully commented sample config file see policyd- spf.conf. commented
debugLevel = 1
defaultSeedOnly = 1
HELO_reject = SPF_Not_Pass
Mail_From_reject = Fail
PermError_reject = False
TempError_Defer = False
skip_addresses = 127.0.0. 0/8,::ffff: 127.0.0. 0//104, ::1//128
/etc/postfix/ master. cf:
[...] bin/policyd- spf
policy-spf unix - n n - - spawn
user=nobody argv=/usr/
/etc/postfix/ main.cf:
[...] _restrictions = sasl_authentica ted, mynetworks, client_ access pcre:/etc/ postfix/ checks/ client- whitelist, client_ access pcre:/etc/ postfix/ checks/ client- blacklist, unknown_ client_ hostname, policy_ service unix:private/ policy- spf,
smtpd_recipient
permit_
permit_
check_
check_
reject_
check_
[...]
policy- spf_time_ limit = 3600s