On Mon, Oct 14, 2019 at 12:26:46PM -0300, Emanuel wrote:
> in master.cf add
>
> policy unix - n n - 0 spawn
> user=nobody argv=/bin/python /usr/libexec/postfix/policyd-spf
>
> main.cf
>
> check_policy_service unix:private/policy
> ... other restrictions as necessary
>
> but i see this error
>
> Oct 14 12:21:20 antartida postfix/smtpd[11266]: warning: connect to
> private/policy-spf: Connection refused
> Oct 14 12:21:20 antartida postfix/smtpd[11266]: warning: problem talking
> to server private/policy-spf: Connection refused
> Oct 14 12:21:21 antartida postfix/smtpd[11262]: warning: connect to
> private/policy-spf: Connection refused
> Oct 14 12:21:21 antartida postfix/smtpd[11262]: warning: problem talking
> to server private/policy-spf: Connection refused
>
> Any ideas?
1. http://www.postfix.org/DEBUG_README.html#mail
Output of:
$ postconf -nf
$ postconf -Mf
2. Don't forget to "postfix reload" after making master.cf changes.
- (Linux, as root)
# netstat -anp --protocol unix | grep private/
- (BSD)
# netstat -an -f unix -W | grep private/
I am not a fan of starting service daemons via spawn(8). There are
better options (xinetd, systemd, just directly bind the socket,
...). This would be something for the package maitainer to consider.
--
Viktor.