[Solved] Postfix rejecting recipient / pypolicyd-spf / python3 broken

Hello,
updates to Python3 and pypolicyd-spf broke Postfix when receiving email with errors like:

Nov 22 17:23:53 myserver-com postfix/spawn[2819]: warning: command /usr/libexec/postfix/policyd-spf exit status 1
Nov 22 17:23:53 myserver-com postfix/smtpd[2816]: warning: premature end-of-input on private/policyd-spf while reading input attribute name
Nov 22 17:23:53 myserver-com postfix/smtpd[2816]: warning: problem talking to server private/policyd-spf: Connection reset by peer
Nov 22 17:23:53 myserver-com postfix/smtpd[2816]: NOQUEUE: reject: RCPT from anotherserver-com[a-b-c-d]: 451 4.3.5 : Recipient address rejected: Server configuration problem; from= to=frank@a-b-c-d proto=ESMTP helo=

Package:
pypolicyd-spf-2.9.3-1.el8.noarch

I solved it with:

pip3 install authres

It’s probably easier to do:

dnf install python3-authres

and use what comes in the Rocky repos instead of pip3 module installs.

1 Like

Indeed. Thanks. I haven’t had working email for a couple of days and my fingers got ahead of me.

1 Like