(01-24-2019, 08:45 AM)fearworks Wrote: I will post my steps for installing SPF, but please note that I use CentOS 7 and this might not work for other OS systems, and that I haven't tested these steps as I present them here (I also install other things at the same time as I set up SPF checks) so perhaps try them on a test server first
Install the SPF Policy Daemon:
Code:yum install pypolicyd-spf
Edit the Postfix master.cf file:
Code:vi /etc/sentora/configs/postfix/master.cf
At the end of this file, add:
Code:policy-spf unix - n n - - spawn
user=nobody argv=/usr/libexec/postfix/policyd-spf
and save the changes.
Edit the Postfix main.cf file:
Code:vi /etc/sentora/configs/postfix/main.cf
Cursor down to the smtpd_recipient_restrictions value and find the line:
Code:reject_unauth_destination,
Right after this line, add a new line with this:
Code:check_policy_service unix:private/policy-spf,
Now go to the end of this same file and add:
Code:policy-spf_time_limit = 3600s
and save the changes.
Restart Postfix:
Code:systemctl start postfix
I forget where I got this info from as I have my own notes for setting up servers etc. and I just extracted the above from these notes, but I think it might have been here: https://zurgl.com/how-to-configure-spf-in-postfix/
Let us know how you get on.
Keith.
Excellent my friend, I have installed this complement and I ll probe it these days... I ll say you any novelty... Thanks, regards.