Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 765673 - mail-filter/spf-engine: breaks with dev-python/dnspython-2.0
Summary: mail-filter/spf-engine: breaks with dev-python/dnspython-2.0
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Michael Orlitzky
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-01-16 18:59 UTC by andros
Modified: 2021-05-22 01:12 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description andros 2021-01-16 18:59:23 UTC
attribute name                                                                                                     Jan 16 19:25:24 mail policyd-spf[14968]: Traceback (most recent call last):                                           Jan 16 19:25:24 mail policyd-spf[14968]:   File "/usr/lib/python-exec/python3.8/policyd-spf", line 808, in <module>   Jan 16 19:25:24 mail policyd-spf[14968]:     checkerValue, checkerReason, instance_dict, iserror = _spfcheck(data,    Jan 16 19:25:24 mail policyd-spf[14968]:   File "/usr/lib/python-exec/python3.8/policyd-spf", line 525, in _spfcheck  Jan 16 19:25:24 mail policyd-spf[14968]:     res = heloquery.check()                                                  Jan 16 19:25:24 mail policyd-spf[14968]:   File "/usr/lib/python3.8/site-packages/spf.py", line 595, in check         Jan 16 19:25:24 mail policyd-spf[14968]:     spf = self.dns_spf(self.d)                                               Jan 16 19:25:24 mail policyd-spf[14968]:   File "/usr/lib/python3.8/site-packages/spf.py", line 1164, in dns_spf      Jan 16 19:25:24 mail policyd-spf[14968]:     a = [t for t in self.dns_txt(domain) if RE_SPF.match(t)]                 Jan 16 19:25:24 mail policyd-spf[14968]:   File "/usr/lib/python3.8/site-packages/spf.py", line 1214, in dns_txt      Jan 16 19:25:24 mail policyd-spf[14968]:     dns_list = self.dns(domainname, rr,ignore_void=ignore_void)              Jan 16 19:25:24 mail policyd-spf[14968]:   File "/usr/lib/python3.8/site-packages/spf.py", line 1358, in dns          Jan 16 19:25:24 mail policyd-spf[14968]:     for k, v in DNSLookup(name, qtype, self.strict, timeout):                Jan 16 19:25:24 mail policyd-spf[14968]:   File "/usr/lib/python3.8/site-packages/spf.py", line 131, in DNSLookup_dnspython                                                                                                                 Jan 16 19:25:24 mail policyd-spf[14968]:     answers = dns.resolver.query(name, qtype, lifetime=timeout)              Jan 16 19:25:24 mail policyd-spf[14968]:   File "/usr/lib/python3.8/site-packages/dns/resolver.py", line 1221, in query                                                                                                                     Jan 16 19:25:24 mail policyd-spf[14968]:     return resolve(qname, rdtype, rdclass, tcp, source,                      Jan 16 19:25:24 mail policyd-spf[14968]:   File "/usr/lib/python3.8/site-packages/dns/resolver.py", line 1205, in resolve                                                                                                                   Jan 16 19:25:24 mail policyd-spf[14968]:     return get_default_resolver().resolve(qname, rdtype, rdclass, tcp, source,                                                                                                                     Jan 16 19:25:24 mail policyd-spf[14968]:   File "/usr/lib/python3.8/site-packages/dns/resolver.py", line 1178, in get_default_resolver                                                                                                      Jan 16 19:25:24 mail policyd-spf[14968]:     reset_default_resolver()                                                 Jan 16 19:25:24 mail policyd-spf[14968]:   File "/usr/lib/python3.8/site-packages/dns/resolver.py", line 1190, in reset_default_resolver                                                                                                    Jan 16 19:25:24 mail policyd-spf[14968]:     default_resolver = Resolver()                                            Jan 16 19:25:24 mail policyd-spf[14968]:   File "/usr/lib/python3.8/site-packages/dns/resolver.py", line 695, in __init__                                                                                                                   Jan 16 19:25:24 mail policyd-spf[14968]:     self.read_resolv_conf(filename)                                          Jan 16 19:25:24 mail policyd-spf[14968]:   File "/usr/lib/python3.8/site-packages/dns/resolver.py", line 781, in read_resolv_conf                                                                                                           Jan 16 19:25:24 mail policyd-spf[14968]:     raise NoResolverConfiguration                                            Jan 16 19:25:24 mail policyd-spf[14968]: dns.resolver.NoResolverConfiguration: Resolver configuration could not be read or specified no nameservers.                                                                                        Jan 16 19:25:24 mail postfix/spawn[14858]: warning: command /usr/bin/policyd-spf exit status 1                        Jan 16 19:25:24 mail postfix/smtp/smtpd[7230]: warning: premature end-of-input on private/policy-spf while reading input attribute name                                                                                                     Jan 16 19:25:24 mail postfix/smtp/smtpd[7230]: warning: problem talking to server private/policy-spf: Success

Reproducible: Always
Comment 1 Jonas Stein gentoo-dev 2021-01-18 00:02:00 UTC
It is sad to read that you have problems with the software. I can hardly understand your report and it requires more details and some analysis.
We can not help you efficiently via bug tracker. The bug tracker aims rather on specific problems in .ebuilds and less on individual systems. 

I have had very good experience on the gentoo IRC [1] with questions like this. Of course there are also forums and mailing lists [2,3].
I hope you understand, that I will close the bug here therefore and wish you good luck on one of the mentioned channels [4].
Please reopen the ticket in order to provide an indication for an specific error in an ebuild or any gentoo related product.

[1] https://www.gentoo.org/get-involved/irc-channels/
[2] https://forums.gentoo.org/
[3] https://www.gentoo.org/get-involved/mailing-lists/all-lists.html
[4] https://www.gentoo.org/support/
Comment 2 andros 2021-01-18 05:23:32 UTC
Sry. It's an postfix error log. I came from #gentoo. They send me Here.
Comment 3 andros 2021-01-18 05:36:34 UTC
Its not resolved. Spf-engine is policy-spf for postfix. The new version of dnspython breaks it.
Comment 4 Michael Orlitzky gentoo-dev 2021-01-22 13:44:49 UTC
It looks like this is the important error:

Jan 16 19:25:24 mail policyd-spf[14968]:   File "/usr/lib/python3.8/site-packages/dns/resolver.py", line 781, in read_resolv_conf                                                                                                           Jan 16 19:25:24 mail policyd-spf[14968]:     raise NoResolverConfiguration                                            Jan 16 19:25:24 mail policyd-spf[14968]: dns.resolver.NoResolverConfiguration: Resolver configuration could not be read or specified no nameservers.

Is your /etc/resolv.conf readable by the daemon (and are there valid nameservers in there)?
Comment 5 Michael Orlitzky gentoo-dev 2021-03-23 12:35:01 UTC
Ping... I'm not sure this is a problem with spf-engine.