Postfix pypolicyd-spf / Centos7

Discussion in 'Server Operation' started by superuser992, May 18, 2021.

  1. superuser992

    superuser992 New Member

    Hello everybody,
    i have a postfix server. Amavis & postgrey plugins are already installed on it and work perfectly.
    I would like to configure spf plugin. I installed the package and adjusted the config.
    I added a new record in /etc/postfix/master.cf. :
    policyd-spf unix - n n - 0 spawn
    user=policyd-spf argv=/usr/libexec/postfix/policyd-spf
    and in /etc/postfix/main.cf :
    smtpd_recipient_restrictions =
    check_policy_service unix:/var/spool/postfix/policyd-spf,
    permit
    policy_time_limit = 3600


    Ps: i have add a new user " policy-spf" manually.
    and the I restarted the postfix. In / var / log / maillog I don't have any logs related to spf. I'm not sure if the child process was triggered in master.cf.
    Can anyone help me? It would be great if the config is explained step by step.
    have I configured something wrong? still missing a step?

    Many Thanks!
     
  2. Jesse Norell

    Jesse Norell ISPConfig Developer Staff Member ISPConfig Developer

    Probably the policyd-spf docs have the config and any step-by-step guide; I don't use it so just tossing out some things to check: does /usr/libexec/postfix/policyd-spf exist and is executable? Is policyd-spf running? Does the /var/spool/postfix/policyd-spf socket file (created by spawn(8) when executing policyd-spf) exist?

    Perhaps it won't have logs from policyd-spf directly, but it will have logs from postfix's interaction with it. Maybe check other log files for policyd-spf messages?
     

Share This Page