Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Mobile
User Name
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.


  Search this Thread
Old 11-30-2019, 12:08 AM   #1
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..
To enable the policy service is where I find two different versions I don't yet understand.
# 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/ does have an entry..
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.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 07:51 AM
Using google MX, proper SPF record setup help. markotitel Linux - Server 5 01-04-2014 06:46 AM
Starting spf-milter: spf-milter: Milter for 'spf-milter' not found in /etc/mail/sendm Niceman2005 Linux - Software 1 07-06-2009 04:07 AM
LXer: How To Implement SPF In Postfix LXer Syndicated Linux News 0 02-25-2007 07:01 PM
logcheck not filtering out postfix/policy-spf lines vrillusions Linux - Software 1 04-12-2006 11:33 AM > Forums > Linux Forums > Linux - Mobile

All times are GMT -5. The time now is 03:23 PM.

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