SPF Check
#1
SPF Check
Hi my friends.....

Please I would like to know how can I configure in my Sentora, what postfix or my server, check spf record from all my ingoing mails to avoid a lot of ingoing spam... please may you to help me?????

Thanks...
Reply
#2
RE: SPF Check
(01-24-2019, 08:10 AM)cfreire Wrote: Hi my friends.....

Please I would like to know how can I configure in my Sentora, what postfix or my server, check spf record from all my ingoing mails to avoid a lot of ingoing spam... please may you to help me?????

Thanks...

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 Smile

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.
Reply
#3
RE: SPF Check
(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 Smile

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.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
The mcrypt extension is missing. Please check your PHP configuration. CJsent 41 119 ,919 11-09-2017, 11:51 PM
Last Post: CJsent
How to check if cron from cronjob manager runs correctly? Sync 3 12 ,143 01-08-2016, 10:16 PM
Last Post: Me.B

Forum Jump:


Users browsing this thread: 3 Guest(s)