Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I have setup a postfix mail server. I tried to setup SPF for incoming mail messages as mentioned here 'http://www.freesoftwaremagazine.com/articles/focus%5Fspam%5Fpostfix?page=0%2C1' but i am unable to find the file 'smtpd-policy.pl' and fully integrate the SPF for Postfix.

Please help

Ashish

share|improve this question

1 Answer 1

up vote 0 down vote accepted

don´t know anything about SPF, never give it a chance before. Bur I advice you to take care that on many systems, postfix runs in a chrooted enviroment. (e.g. in debian)

Also in debian you need to install postfix-policyd-spf-perl I think on another Distribution there is also an extra package wich contains the script you are searching, because SPF is far from being a thing which should be in the main package of postfix, because its not yet spreaded so widely.

according to the site you mentioned, postfix awaits a socket:

28   check_policy_service unix:private/spfpolicy

Run the mentioned script or any other (there are more available) an tell the script to listen to the specified socket. The socket must be created in the folder private of the chrooted enviroment, if your distribution uses chroot for postfix. If the spf deamon script creates this socket in a place outside of your chrooted enviroment, postfix will not be able to reach it.

So take care.

Take a look in master.cf there you can see if postfix uses chroot. There must be a no in that line, if there is a - than its chrooted.

If your SPF deamon hast the capability to listen on a port, it may be safer to use this, because it doesnt matter if you are chrooted or not.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.