Postfix
connect to private/policy-spf: No such file or directory
在centos 7中通過postfix接收郵件時
我的系統是 centos 7,帶有 postfix、dovecot、pypolicyd-spf、opendkim。
可以發郵件但是收不到郵件
我注意到以下警告:
Feb 6 20:01:09 srv-8327 postfix/smtpd[20391]: warning: connect to private/policy-spf: No such file or directory Feb 6 20:01:09 srv-8327 postfix/smtpd[20391]: warning: problem talking to server private/policy-spf: No such file or directory Feb 6 20:01:10 srv-8327 postfix/smtpd[20391]: warning: connect to private/policy-spf: No such file or directory Feb 6 20:01:10 srv-8327 postfix/smtpd[20391]: warning: problem talking to server private/policy-spf: No such file or directory
我已經入駐
debugLevel = 4
了/etc/python-policyd-spf/policyd-spf.conf
。如何找到問題所在
python-policyd-spf
?加:
我終於解決了這個問題:
在
/etc/postfix/main.cf
,我改成unix:private/policy
,unix:private/policyd-spf
賓果!smtpd_recipient_restrictions = permit_mynetworks,permit_sasl_authenticated,reject_unauth_destination,check_policy_service unix:private/policyd-spf,reject_invalid_hostname,reject_non_fqdn_helo_hostname,reject_non_fqdn_sender,reject_non_fqdn_recipient
我終於解決了這個問題:
在
/etc/postfix/main.cf
, 改成unix:private/policy
,unix:private/policyd-spf
bingo!
對於 Ubuntu,我通過更改解決了這個問題
unix:private/policyd-spf
到
unix:private/policy-spf
在後綴的 main.cf 中