Postfix

connect to private/policy-spf: No such file or directory在centos 7中通過postfix接收郵件時

  • November 30, 2020

我的系統是 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/policyunix: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-spfbingo!

對於 Ubuntu,我通過更改解決了這個問題

unix:private/policyd-spf

unix:private/policy-spf

在後綴的 main.cf 中

引用自:https://serverfault.com/questions/952802