Stuck while implementing SPF In Postfix

Discussion in 'HOWTO-Related Questions' started by micko_escalade, Aug 12, 2007.

  1. micko_escalade

    micko_escalade New Member

    Hi,

    Tried to follow this tutorial How To Implement SPF In Postfix
    and I'm kinda stuck at this point

    Code:
    [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!
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Please post the output of:

    ls -la /usr/lib/postfix/
     
  3. micko_escalade

    micko_escalade New Member

    Hi,

    Code:
    [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]# 
    
     
  4. falko

    falko Super Moderator Howtoforge Staff

    Create the directory:
    Code:
    mkdir -p /usr/lib/postfix/
    and try again.
     
  5. micko_escalade

    micko_escalade New Member

    Thanks falko!
    That helped, but I'm not sure about this part where I have to add
    Code:
    check_policy_service unix:private/policy
    to /etc/postfix/main.cf file because I use SQLgrey
    so here's how that part looks in my main.cf
    Code:
    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?
    Code:
    [...]
     
  6. falko

    falko Super Moderator Howtoforge Staff

    I think it's correct like that if you use SQLgrey, but I haven't tested it.

    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!
     
  7. micko_escalade

    micko_escalade New Member

    falko,
    sorry to bother but where do I add check_policy_service unix:private/policy

    this is what I have now

    Code:
    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
     
  8. falko

    falko Super Moderator Howtoforge Staff

    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.
     

Share This Page