Hi all, I am getting the following error on just one email address from policyd-spf, called from Postfix. No other email address has caused me problems (as far as I'm aware) and I had to completely disable policyd-spf in Postfix to allow the email through. Can anyone decipher what the problem was?
Thanks for looking Feb 4 14:32:04 gallium policyd-spf[8810]: None; identity=helo; client-ip=2a00:1450:400c:c09::233; helo=mail-wm0-x233.google.com; envelope-from=webmas...@bbgo.nl; receiver=da...@trisect.uk Feb 4 14:32:06 gallium policyd-spf[8810]: Traceback (most recent call last): Feb 4 14:32:06 gallium policyd-spf[8810]: File "/usr/bin/policyd-spf", line 680, in <module> Feb 4 14:32:06 gallium policyd-spf[8810]: instance_dict, configData, peruser) Feb 4 14:32:06 gallium policyd-spf[8810]: File "/usr/bin/policyd-spf", line 517, in _spfcheck Feb 4 14:32:06 gallium policyd-spf[8810]: res = spf.check2(ip, sender, helo, querytime=configData.get('Lookup_Time')) Feb 4 14:32:06 gallium policyd-spf[8810]: File "/usr/lib/python2.7/site-packages/spf.py", line 297, in check2 Feb 4 14:32:06 gallium policyd-spf[8810]: receiver=receiver,timeout=timeout,verbose=verbose,querytime=querytime).check() Feb 4 14:32:06 gallium policyd-spf[8810]: File "/usr/lib/python2.7/site-packages/spf.py", line 547, in check Feb 4 14:32:06 gallium policyd-spf[8810]: rc = self.check1(spf, self.d, 0) Feb 4 14:32:06 gallium policyd-spf[8810]: File "/usr/lib/python2.7/site-packages/spf.py", line 586, in check1 Feb 4 14:32:06 gallium policyd-spf[8810]: return self.check0(spf, recursion) Feb 4 14:32:06 gallium policyd-spf[8810]: File "/usr/lib/python2.7/site-packages/spf.py", line 900, in check0 Feb 4 14:32:06 gallium policyd-spf[8810]: if self.cidrmatch(self.dns_mx(arg), cidrlength): Feb 4 14:32:06 gallium policyd-spf[8810]: File "/usr/lib/python2.7/site-packages/spf.py", line 1194, in dns_mx Feb 4 14:32:06 gallium policyd-spf[8810]: return [a for mx in mxnames[:max] for a in self.dns_a(mx[1],self.A)] Feb 4 14:32:06 gallium policyd-spf[8810]: File "/usr/lib/python2.7/site-packages/spf.py", line 1206, in dns_a Feb 4 14:32:06 gallium policyd-spf[8810]: return [ipaddress.Bytes(ip) for ip in r] Feb 4 14:32:06 gallium policyd-spf[8810]: AttributeError: 'module' object has no attribute 'Bytes' Feb 4 14:32:06 gallium postfix/smtpd[8803]: warning: premature end-of-input on private/policyd-spf while reading input attribute name Feb 4 14:32:07 gallium policyd-spf[8811]: None; identity=helo; client-ip=2a00:1450:400c:c09::233; helo=mail-wm0-x233.google.com; envelope-from=webmas...@bbgo.nl; receiver=da...@trisect.uk Feb 4 14:32:07 gallium policyd-spf[8811]: Traceback (most recent call last): Feb 4 14:32:07 gallium policyd-spf[8811]: File "/usr/bin/policyd-spf", line 680, in <module> Feb 4 14:32:07 gallium policyd-spf[8811]: instance_dict, configData, peruser) Feb 4 14:32:07 gallium policyd-spf[8811]: File "/usr/bin/policyd-spf", line 517, in _spfcheck Feb 4 14:32:07 gallium policyd-spf[8811]: res = spf.check2(ip, sender, helo, querytime=configData.get('Lookup_Time')) Feb 4 14:32:07 gallium policyd-spf[8811]: File "/usr/lib/python2.7/site-packages/spf.py", line 297, in check2 Feb 4 14:32:07 gallium policyd-spf[8811]: receiver=receiver,timeout=timeout,verbose=verbose,querytime=querytime).check() Feb 4 14:32:07 gallium policyd-spf[8811]: File "/usr/lib/python2.7/site-packages/spf.py", line 547, in check Feb 4 14:32:07 gallium policyd-spf[8811]: rc = self.check1(spf, self.d, 0) Feb 4 14:32:07 gallium policyd-spf[8811]: File "/usr/lib/python2.7/site-packages/spf.py", line 586, in check1 Feb 4 14:32:07 gallium policyd-spf[8811]: return self.check0(spf, recursion) Feb 4 14:32:07 gallium policyd-spf[8811]: File "/usr/lib/python2.7/site-packages/spf.py", line 900, in check0 Feb 4 14:32:07 gallium policyd-spf[8811]: if self.cidrmatch(self.dns_mx(arg), cidrlength): Feb 4 14:32:07 gallium policyd-spf[8811]: File "/usr/lib/python2.7/site-packages/spf.py", line 1194, in dns_mx Feb 4 14:32:07 gallium policyd-spf[8811]: return [a for mx in mxnames[:max] for a in self.dns_a(mx[1],self.A)] Feb 4 14:32:07 gallium policyd-spf[8811]: File "/usr/lib/python2.7/site-packages/spf.py", line 1206, in dns_a Feb 4 14:32:07 gallium policyd-spf[8811]: return [ipaddress.Bytes(ip) for ip in r] Feb 4 14:32:07 gallium policyd-spf[8811]: AttributeError: 'module' object has no attribute 'Bytes' Feb 4 14:32:07 gallium postfix/smtpd[8803]: warning: premature end-of-input on private/policyd-spf while reading input attribute name Feb 4 14:32:07 gallium postfix/smtpd[8803]: warning: problem talking to server private/policyd-spf: Success
signature.asc
Description: OpenPGP digital signature