LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 03-08-2018, 04:01 PM   #1
circus78
Member
 
Registered: Dec 2011
Posts: 273

Rep: Reputation: Disabled
Postfix and policyd-spf


Hi,
I am running Postfix 2.9.6-2 on Debian 7.
I just installed postfix-policyd-spf-python.
Basically, I followed this:

https://linode.com/docs/email/postfi...x-on-debian-8/

I added this in my master.cf:

Code:
policyd-spf  unix  -       n       n       -       0       spawn
    user=policyd-spf argv=/usr/bin/policyd-spf
and this is my main.cf (relevant part)

Code:
smtpd_recipient_restrictions = 
        reject_rbl_client zen.spamhaus.org=127.0.0.[2..11]
        check_sender_access hash:/etc/postfix/sender_access,
        check_recipient_access hash:/etc/postfix/amavis_bypass,
        check_recipient_access pcre:/etc/postfix/amavis_bypass.pcre,
        permit_mynetworks, 
        permit_sasl_authenticated, 
        permit_auth_destination, 
        reject_unauth_destination, 
        reject_invalid_hostname,
        check_policy_service unix:private/policyd-spf,
        reject_unlisted_recipient, 
        reject_non_fqdn_sender, 
        reject_non_fqdn_recipient, 
        reject_unauth_pipelining
Of course, I restarted postfix service.
Anyway, I don't see anything SPF entries in my mail.log.

Any suggestion?
Thank you!
 
Old 03-10-2018, 01:19 AM   #2
descendant_command
Senior Member
 
Registered: Mar 2012
Posts: 1,876

Rep: Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643
My master.cf entry is as follows and references the conf file
Code:
spfpolicy       unix    -       n       n       -       -       spawn
  user=nobody argv=/usr/bin/policyd-spf /etc/postfix-policyd-spf-python/policyd-spf.conf
You are testing with mail that reaches that part of your restrictions?
 
  


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
Help Please!! policyd with postfix for blocking emails from IP addresses wbenkhoud Linux - Software 3 05-23-2017 12:10 PM
[SOLVED] postfix and policyd: Recipient address rejected Haythem Linux - Server 1 12-14-2012 05:05 AM
postfix does not check policyd idnotcrae Linux - Server 1 12-12-2012 02:22 AM
LXer: How-to Implement SPF in Postfix LXer Syndicated Linux News 0 02-26-2007 12:18 AM
LXer: How To Implement SPF In Postfix LXer Syndicated Linux News 0 02-25-2007 06:01 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 02:10 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