![]() |
|
SPF Check - Printable Version +- Sentora Support Forums (https://senforums.mach-hosting.com) +-- Forum: Sentora Forum Archives (https://senforums.mach-hosting.com/forumdisplay.php?fid=5) +--- Forum: Sentora Public Support Forums v1.0.x (https://senforums.mach-hosting.com/forumdisplay.php?fid=32) +---- Forum: General Support Forum v1.0.x (https://senforums.mach-hosting.com/forumdisplay.php?fid=36) +---- Thread: SPF Check (/showthread.php?tid=11030) |
SPF Check - cfreire - 01-24-2019 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... RE: SPF Check - fearworks - 01-24-2019 (01-24-2019, 08:10 AM)cfreire Wrote: Hi my friends..... 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-spfEdit the Postfix master.cf file: Code: vi /etc/sentora/configs/postfix/master.cfAt the end of this file, add: Code: policy-spf unix - n n - - spawn
user=nobody argv=/usr/libexec/postfix/policyd-spfand save the changes. Edit the Postfix main.cf file: Code: vi /etc/sentora/configs/postfix/main.cfCursor 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 = 3600sand save the changes. Restart Postfix: Code: systemctl start postfixI 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. RE: SPF Check - cfreire - 01-25-2019 (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 Excellent my friend, I have installed this complement and I ll probe it these days... I ll say you any novelty... Thanks, regards. |