Updated: pypolicyd-spf
by Maarten
Hello,
Since recently de spf check on my mailserver stopped working, went to
check my logs, seems this has been since the 27-10-2017:
Oct 27 04:46:31 Installed: python-ipaddress.noarch 1.0.16-2.el7
Oct 27 04:46:31 Updated: pypolicyd-spf.noarch 1.3.2-2.el7
I'm getting the following errors when the spf check is being used:
Oct 30 11:00:28 localhost policyd-spf[21940]: Traceback (most recent
call last):
Oct 30 11:00:28 localhost policyd-spf[21940]: File
"/usr/libexec/postfix/policyd-spf", line 707, in <module>
Oct 30 11:00:28 localhost policyd-spf[21940]: instance_dict,
configData, peruser)
Oct 30 11:00:28 localhost policyd-spf[21940]: File
"/usr/libexec/postfix/policyd-spf", line 419, in _spfcheck
Oct 30 11:00:28 localhost policyd-spf[21940]: res = spf.check2(ip,
helo_fake_sender, helo, querytime=configData.get('Lookup_Time'))
Oct 30 11:00:28 localhost policyd-spf[21940]: File
"/usr/lib/python2.7/site-packages/spf.py", line 297, in check2
Oct 30 11:00:28 localhost policyd-spf[21940]:
receiver=receiver,timeout=timeout,verbose=verbose,querytime=querytime).check()
Oct 30 11:00:28 localhost policyd-spf[21940]: File
"/usr/lib/python2.7/site-packages/spf.py", line 378, in __init__
Oct 30 11:00:28 localhost policyd-spf[21940]: self.set_ip(i)
Oct 30 11:00:28 localhost policyd-spf[21940]: File
"/usr/lib/python2.7/site-packages/spf.py", line 405, in set_ip
Oct 30 11:00:28 localhost policyd-spf[21940]: self.ipaddr =
ipaddress.ip_address(i)
Oct 30 11:00:28 localhost policyd-spf[21940]: File
"/usr/lib/python2.7/site-packages/ipaddress.py", line 163, in ip_address
Oct 30 11:00:28 localhost policyd-spf[21940]: ' a unicode object?' %
address)
Oct 30 11:00:28 localhost policyd-spf[21940]: AddressValueError:
'40.92.69.94' does not appear to be an IPv4 or IPv6 address. Did you
pass in a bytes (str in Python 2) instead of a unicode object?
Oct 30 11:00:28 localhost postfix/spawn[21939]: warning: command
/usr/libexec/postfix/policyd-spf exit status 1
Oct 30 11:00:28 localhost postfix/smtpd[21934]: warning: premature
end-of-input on private/policyd-spf while reading input attribute name
Oct 30 11:00:29 localhost policyd-spf[21941]: Traceback (most recent
call last):
Oct 30 11:00:29 localhost policyd-spf[21941]: File
"/usr/libexec/postfix/policyd-spf", line 707, in <module>
Oct 30 11:00:29 localhost policyd-spf[21941]: instance_dict,
configData, peruser)
Oct 30 11:00:29 localhost policyd-spf[21941]: File
"/usr/libexec/postfix/policyd-spf", line 419, in _spfcheck
Oct 30 11:00:29 localhost policyd-spf[21941]: res = spf.check2(ip,
helo_fake_sender, helo, querytime=configData.get('Lookup_Time'))
Oct 30 11:00:29 localhost policyd-spf[21941]: File
"/usr/lib/python2.7/site-packages/spf.py", line 297, in check2
Oct 30 11:00:29 localhost policyd-spf[21941]:
receiver=receiver,timeout=timeout,verbose=verbose,querytime=querytime).check()
Oct 30 11:00:29 localhost policyd-spf[21941]: File
"/usr/lib/python2.7/site-packages/spf.py", line 378, in __init__
Oct 30 11:00:29 localhost policyd-spf[21941]: self.set_ip(i)
Oct 30 11:00:29 localhost policyd-spf[21941]: File
"/usr/lib/python2.7/site-packages/spf.py", line 405, in set_ip
Oct 30 11:00:29 localhost policyd-spf[21941]: self.ipaddr =
ipaddress.ip_address(i)
Oct 30 11:00:29 localhost policyd-spf[21941]: File
"/usr/lib/python2.7/site-packages/ipaddress.py", line 163, in ip_address
Oct 30 11:00:29 localhost policyd-spf[21941]: ' a unicode object?' %
address)
Oct 30 11:00:29 localhost policyd-spf[21941]: AddressValueError:
'40.92.69.94' does not appear to be an IPv4 or IPv6 address. Did you
pass in a bytes (str in Python 2) instead of a unicode object?
Before this update on the package my spf check was working fine, what
has changed?
6 years, 6 months