PDA

View Full Version : Stuck while implementing SPF In Postfix


micko_escalade
12th August 2007, 03:47
Hi,

Tried to follow this tutorial How To Implement SPF In Postfix (http://www.howtoforge.com/postfix_spf)
and I'm kinda stuck at this point


[root@linux src]# tar xvfz postfix-policyd-spf-perl-2.001.tar.gz
postfix-policyd-spf-perl-2.001/
postfix-policyd-spf-perl-2.001/postfix-policyd-spf-perl
postfix-policyd-spf-perl-2.001/LICENSE
postfix-policyd-spf-perl-2.001/README
postfix-policyd-spf-perl-2.001/CHANGES
postfix-policyd-spf-perl-2.001/INSTALL
[root@linux src]# cd postfix-policyd-spf-perl-2.001
[root@linux postfix-policyd-spf-perl-2.001]# cp postfix-policyd-spf-perl /usr/lib/postfix/policyd-spf-perl
cp: cannot create regular file `/usr/lib/postfix/policyd-spf-perl': No such file or directory
[root@linux postfix-policyd-spf-perl-2.001]#

I'm on FC6 with Postfix version 2.3.3 which I configured by following tutorial on this great site!

till
12th August 2007, 11:55
Please post the output of:

ls -la /usr/lib/postfix/

micko_escalade
12th August 2007, 19:28
Hi,


[root@linux postfix-policyd-spf-perl-2.001]# ls -la /usr/lib/postfix/
ls: /usr/lib/postfix/: No such file or directory
[root@linux postfix-policyd-spf-perl-2.001]#

falko
13th August 2007, 19:59
Create the directory:
mkdir -p /usr/lib/postfix/
and try again.

micko_escalade
14th August 2007, 06:19
Create the directory:
mkdir -p /usr/lib/postfix/
and try again.
Thanks falko!
That helped, but I'm not sure about this part where I have to add check_policy_service unix:private/policy
to /etc/postfix/main.cf file because I use SQLgrey (http://sqlgrey.sourceforge.net/)
so here's how that part looks in my main.cf
broken_sasl_auth_clients = yes
smtpd_recipient_restrictions = permit_sasl_authenticated,permit_mynetworks,reject _unauth_destination,check_policy_service inet:127.0.0.1:2501
mynetworks = 127.0.0.0/8
where do I add check_policy_service unix:private/policy ?

Second question, what this does?
[...]

falko
15th August 2007, 19:23
because I use SQLgrey (http://sqlgrey.sourceforge.net/)
so here's how that part looks in my main.cf
broken_sasl_auth_clients = yes
smtpd_recipient_restrictions = permit_sasl_authenticated,permit_mynetworks,reject _unauth_destination,check_policy_service inet:127.0.0.1:2501
mynetworks = 127.0.0.0/8[/B] ?I think it's correct like that if you use SQLgrey, but I haven't tested it.

Second question, what this does?
[...]It's a placeholder. It means that the files continues or that there something before it in the file. Don't put [...] into your files!

micko_escalade
15th August 2007, 21:24
falko,
sorry to bother but where do I add check_policy_service unix:private/policy

this is what I have now

broken_sasl_auth_clients = yes
smtpd_recipient_restrictions = permit_sasl_authenticated,permit_mynetworks,reject _unauth_destination,check_policy_service inet:127.0.0.1:2501
mynetworks = 127.0.0.0/8

falko
16th August 2007, 15:46
Please re-read my previous post. It means that you don't have to check_policy_service unix:private/policy anywhere because I think that check_policy_service inet:127.0.0.1:2501 is correct for SQLgrey.