Hello, I'm trying to add SPF policies on my SMTP backup. Primary SMTP runs with sendmail and I'm trying to use postfix on backup. I have built from pkgsrc policyd-spf. If I run /usr/pkg/bin/policyd-spf from shell, daemon seems to run. Now, I have added in master.cf : policyd-spf unix - n n - 0 spawn user=postfix argv=/usr/pkg/bin/policyd-spf and of course in main.cf : policyd-spf_time_limit = 3600 smtpd_recipient_restrictions = permit_sasl_authenticated, permit_mynetworks, reject_unauth_destination, check_policy_service unix:private/policyd-spf Postfix was restarted. No trace of policyd-spf in log. Only : legendre# tail -F /var/log/maillog | grep spf Jul 4 09:45:13 legendre postfix/smtpd[16296]: warning: problem talking to server private/policyd-spf: Application error Jul 4 09:48:10 legendre postfix/smtpd[18418]: warning: problem talking to server private/policyd-spf: Application error Jul 4 09:51:41 legendre postfix/smtpd[18418]: warning: problem talking to server private/policyd-spf: Application error Jul 4 09:54:41 legendre postfix/smtpd[823]: warning: problem talking to server private/policyd-spf: Application error Thus, I understand that main.cf configuration asks to postfix to do a connection on a Unix socket created by policyd-spf. But master.cf doesn't start this daemon. OK. I launch master process with : legendre# /usr/libexec/postfix/master -d -vvvvv In log, I obtain : Jul 4 11:00:45 legendre postfix/master[20400]: dict_load_fp: policyd-spf_time_limit = 3600 Jul 4 11:00:45 legendre postfix/master[20400]: dict_load_fp: smtpd_recipient_restrictions = permit_sasl_authenticated,?permit_mynetworks, reject_unauth_destination, ?check_policy_service unix:private/policyd-spf Jul 4 11:00:45 legendre postfix/master[20400]: name: private/policyd-spf Jul 4 11:00:45 legendre postfix/master[20400]: arg[3]: policyd-spf Jul 4 11:00:45 legendre postfix/master[20400]: arg[9]: argv=/usr/pkg/bin/policyd-spf Jul 4 11:00:45 legendre postfix/master[20400]: arg[10]: /usr/pkg/etc/python-policyd-spf/policyd-spf.conf Jul 4 11:00:45 legendre postfix/master[20400]: master_avail_listen: private/policyd-spf avail 0 total 0 max 0 Jul 4 11:00:45 legendre postfix/master[20400]: master_avail_listen: enable events private/policyd-spf Jul 4 11:00:45 legendre postfix/master[20400]: master_status_init: private/policyd-spf Jul 4 11:00:48 legendre postfix/smtpd[15030]: policy_client_register: name="unix:private/policyd-spf" default_action="451 4.3.5 Server configuration problem" max_idle=300 max_ttl=1000 request_limit=0 retry_delay=1 timeout=100 try_limit=2 policy_context="" Jul 4 11:00:48 legendre postfix/smtpd[15030]: auto_clnt_create: transport=unix endpoint=private/policyd-spf Jul 4 11:00:48 legendre postfix/master[20400]: master_avail_more: pid 7189 (private/policyd-spf) Jul 4 11:00:48 legendre postfix/master[20400]: master_avail_listen: private/policyd-spf avail 1 total 1 max 0 Jul 4 11:00:48 legendre postfix/master[20400]: master_avail_listen: disable events private/policyd-spf Jul 4 11:00:48 legendre postfix/smtpd[15030]: auto_clnt_open: connected to private/policyd-spf Jul 4 11:00:48 legendre postfix/spawn[7189]: spawn_service: service=policyd-spf, command=user=postfix... Jul 4 11:00:48 legendre postfix/master[20400]: master_avail_less: pid 7189 (private/policyd-spf) Jul 4 11:00:48 legendre postfix/master[20400]: master_avail_listen: private/policyd-spf avail 0 total 1 max 0 Jul 4 11:00:48 legendre postfix/master[20400]: master_avail_listen: enable events private/policyd-spf Jul 4 11:00:49 legendre postfix/smtpd[15030]: warning: problem talking to server private/policyd-spf: Application error Jul 4 11:00:49 legendre postfix/master[20400]: master_avail_listen: private/policyd-spf avail 0 total 1 max 0 Jul 4 11:00:49 legendre postfix/master[20400]: master_avail_listen: disable events private/policyd-spf Jul 4 11:00:49 legendre postfix/master[20400]: master_avail_listen: private/policyd-spf avail 0 total 0 max 0 Jul 4 11:00:50 legendre postfix/smtpd[15030]: auto_clnt_close: disconnect private/policyd-spf stream Jul 4 11:00:50 legendre postfix/smtpd[15030]: auto_clnt_open: connected to private/policyd-spf Jul 4 11:01:49 legendre postfix/master[20400]: master_avail_listen: private/policyd-spf avail 0 total 0 max 0 Jul 4 11:01:49 legendre postfix/master[20400]: master_avail_listen: enable events private/policyd-spf Jul 4 11:01:49 legendre postfix/master[20400]: master_avail_more: pid 21592 (private/policyd-spf) Jul 4 11:01:49 legendre postfix/master[20400]: master_avail_listen: private/policyd-spf avail 1 total 1 max 0 Jul 4 11:01:49 legendre postfix/master[20400]: master_avail_listen: disable events private/policyd-spf Jul 4 11:01:49 legendre postfix/master[20400]: master_avail_less: pid 21592 (private/policyd-spf) Jul 4 11:01:49 legendre postfix/spawn[21592]: spawn_service: service=policyd-spf, command=user=postfix... Jul 4 11:01:49 legendre postfix/master[20400]: master_avail_listen: private/policyd-spf avail 0 total 1 max 0 Jul 4 11:01:49 legendre postfix/master[20400]: master_avail_listen: enable events private/policyd-spf Jul 4 11:01:50 legendre postfix/smtpd[15030]: warning: problem talking to server private/policyd-spf: Application error Jul 4 11:01:50 legendre postfix/smtpd[15030]: check_table_result: unix:private/policyd-spf 451 4.3.5 Server configuration problem policy query Jul 4 11:01:50 legendre postfix/master[20400]: master_avail_listen: private/policyd-spf avail 0 total 1 max 0 Jul 4 11:01:50 legendre postfix/master[20400]: master_avail_listen: disable events private/policyd-spf Jul 4 11:01:50 legendre postfix/master[20400]: master_avail_listen: private/policyd-spf avail 0 total 0 max 0 Jul 4 11:01:50 legendre postfix/smtpd[15030]: auto_clnt_close: disconnect private/policyd-spf stream I don't understand why master returns : "warning: problem talking to server private/policyd-spf: Application error" Help will be welcome. Regards, JB
Attachment:
signature.asc
Description: OpenPGP digital signature