Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
policyd-spf does not work out of the box [solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
slick
Bodhisattva
Bodhisattva


Joined: 20 Apr 2003
Posts: 3440

PostPosted: Tue Apr 10, 2012 4:41 pm    Post subject: policyd-spf does not work out of the box [solved] Reply with quote

I merged policyd-spf and add them to postfix master.cf and main.cf

master.cf
Quote:
policy-spf unix - n n - - spawn user=nobody argv=/usr/bin/policyd-spf


main.cf
Quote:
... check_policy_service unix:private/policy-spf, ...


After restarting postfix and receive a mail I get this:
Quote:
Apr 10 18:33:18 [postfix/spawn] warning: command /usr/bin/policyd-spf exit status 1
Apr 10 18:33:18 [postfix/smtpd] warning: premature end-of-input on private/policy-spf while reading input attribute name
Apr 10 18:33:19 [postfix/spawn] warning: command /usr/bin/policyd-spf exit status 1
Apr 10 18:33:19 [postfix/smtpd] warning: premature end-of-input on private/policy-spf while reading input attribute name
Apr 10 18:33:19 [postfix/smtpd] warning: problem talking to server private/policy-spf: Connection reset by peer


What's wrong?


Last edited by slick on Sat May 12, 2012 8:03 am; edited 1 time in total
Back to top
View user's profile Send private message
slick
Bodhisattva
Bodhisattva


Joined: 20 Apr 2003
Posts: 3440

PostPosted: Fri May 11, 2012 4:19 pm    Post subject: Reply with quote

*bump*
Back to top
View user's profile Send private message
broken_chaos
Guru
Guru


Joined: 18 Jan 2006
Posts: 322
Location: Ontario, Canada

PostPosted: Fri May 11, 2012 7:35 pm    Post subject: Reply with quote

Have you configured it in /etc/python-policyd-spf/policyd-sfp.conf? You're missing specifying that configuration file in your master.cf, too:
Code:
policyspf  -      n      n     -      -      spawn
  user=nobody argv=/usr/bin/policyd-spf /etc/python-policyd-spf/policyd-spf.conf
Back to top
View user's profile Send private message
slick
Bodhisattva
Bodhisattva


Joined: 20 Apr 2003
Posts: 3440

PostPosted: Sat May 12, 2012 8:03 am    Post subject: Reply with quote

Quote:
Have you configured it in /etc/python-policyd-spf/policyd-sfp.conf?


No, I take the default config file.

Quote:
You're missing specifying that configuration file in your master.cf, too:


That's the point. I add it and now it works as expected (with the defaults config file).

Solved for me.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum