4

My system is centos 7 with postfix,dovecot,pypolicyd-spf, opendkim.
I can send mail but cannot receive mail,

I notice warnings as below:

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

I already set debugLevel = 4 in /etc/python-policyd-spf/policyd-spf.conf.
How to find the problem of python-policyd-spf?

Plus:
I finally solve this problem:
In the /etc/postfix/main.cf, I change unix:private/policy to unix:private/policyd-spf,bingo!

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
3
  • In postfix you point to private/policy-spf. In your explanations you talk about /etc/python-policyd-spf/policyd-spf.conf Do you see the difference? – Romeo Ninov Feb 7 '19 at 15:20
  • @RomeoNinov,I install spf by yum install pypolicyd-spf,tell me where is the problem? – kittygirl Feb 7 '19 at 15:23
  • You should edit postfix config to point to this file – Romeo Ninov Feb 7 '19 at 15:27
5

I finally solve this problem:
In the /etc/postfix/main.cf, change unix:private/policy to unix:private/policyd-spf,bingo!

0

For Ubuntu I solved this by changing

unix:private/policyd-spf

to

unix:private/policy-spf

in main.cf of postfix

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.