LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Mobile
User Name
Password
Linux - Mobile This forum is for the discussion of all topics relating to Mobile Linux. This includes Android, Tizen, Sailfish OS, Replicant, Ubuntu Touch, webOS, and other similar projects and products.

Notices


Reply
  Search this Thread
Old 11-29-2019, 11:08 PM   #1
mariannarussian
LQ Newbie
 
Registered: Nov 2019
Location: Delhi
Posts: 1

Rep: Reputation: 0
Please help with SPF setup Postfix


In setting up a (hopefully secure) small mail server, I follow the tutorials and examples. The configuration file examples are rarely the same, sometimes achieving the same end in different ways.
Sender Policy Framework.
Reasonably straightforward to do by setting the public record TXT line at the domain DNS server. It tests OK, getting a PASS when sending a E-mail to a Gmail account.

Working it the other way, to check the mail servers of all the incoming mail, to reject E-mails that come from servers that fail the SPF checks, requires to meddle with Postfix.
It uses the "postfix-policyd-spf-python" program.

In particular..
/etc/postfix/master.cf
To enable the policy service is where I find two different versions I don't yet understand.
Code:
# Version1
policy-spf unix - n n - spawn
user=nobody argv=/usr/bin/policyd-spf

# Version2
policy-spf unix - n n - spawn
user=policyd-spf argv=/usr/bin/policyd-spf
Both "nobody" and "policyd-spf" are users in the system.
(found by cut -d: -f1 /etc/passwd)

The other file "/etc/postfix/main.cf does have an entry..
Code:
check_policy_service unixrivate/policy-spf'
.. to be added to the smtpd_recipient_restrictions

So which is it to be?
Is it "nobody"?
If it is to be user "policy-spf", does one have to add a file somewhere else?

If you have set up Postfix and SPF, and know what to do, my thanks if you can help.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Please help with SPF setup in Postfix GTrax Linux - Security 2 11-17-2019 06:51 AM
Using google MX, proper SPF record setup help. markotitel Linux - Server 5 01-04-2014 05:46 AM
Starting spf-milter: spf-milter: Milter for 'spf-milter' not found in /etc/mail/sendm Niceman2005 Linux - Software 1 07-06-2009 03:07 AM
LXer: How To Implement SPF In Postfix LXer Syndicated Linux News 0 02-25-2007 06:01 PM
logcheck not filtering out postfix/policy-spf lines vrillusions Linux - Software 1 04-12-2006 10:33 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Mobile

All times are GMT -5. The time now is 12:14 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration