Postfix + libspfでSPF
作業手順
(1) インストール
# portinstall /usr/ports/mail/postfix-policyd-spf :
(2) Postfix設定変更
- /usr/local/etc/postfix/master.cf:
policy unix - n n - - spawn user=nobody argv=/usr/local/sbin/postfix-policyd-spf
- /usr/local/etc/postfix/main.cf:
smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unknown_sender_domain, reject_unauth_destination, check_policy_service unix:private/policy, check_policy_service inet:127.0.0.1:10023
(3) Postfix設定反映
# /usr/local/etc/rc.d/postfix.sh restart postfix/postfix-script: stopping the Postfix mail system postfix/postfix-script: starting the Postfix mail system