Postfix implemetation TempError DNS resolving

Bug #960927 reported by Oleksii Petrov
This bug affects 1 person
Affects Status Importance Assigned to Milestone

Bug Description

Some time ago I detect that spf-python implementation stay generate Temperror at log of postfix mail server.

postfix-policyd-spf-python - "DNS time out".

PORTNAME= postfix-policyd-spf-python

py27-dns-2.3.6 DNS (Domain Name Service) library for Python
py27-postfix-policyd-spf-python-0.8.1 Pure Python Postfix policy daemon for SPF checking
py27-spf-2.0.7 Python implementation of the RFC 4408 SPF protocol
py27-subversion-1.7.3 Python bindings for version control system

Feb 23 11:21:52 postfix/smtpd: connect from[]
Feb 23 11:21:52 postfix/smtpd: Anonymous TLS connection established from[]: TLSv1 with cipher ECDHE-RSA
Feb 23 11:21:53 policyd-spf: Starting

Feb 23 11:21:53 policyd-spf: Config: {'Mail_From_reject': 'Fail', 'PermError_reject': 'False', 'HELO_reject': 'SPF_Not_Pass', 'defaultSeedOn
Feb 23 11:21:53 policyd-spf: Cached data for this instance: []
Feb 23 11:22:23 policyd-spf: spfcheck: pyspf result: "['Temperror', 'SPF Temporary Error: DNS Timeout', 'helo']"
Feb 23 11:22:23 policyd-spf: Temperror; identity=helo; client-ip=;; <email address hidden>

Early all worked ok.
p.s. Now I try use latest version 1.0, problem the same. Perl SPF implementation work ok and now.

description: updated
Revision history for this message
Scott Kitterman (kitterman) wrote : Re: [Bug 960927] [NEW] Postfix implemetation TempError DNS resolving

This is much more likely a pyspf or pydns issue. Find the pyspf executable on
your system (I don't know where it would be for your kind of system). It is
the file provided by py27-spf-2.0.7. Then try:

$ python "" "<email address hidden>" "mail-bk0-"

The response you get should be:

('none', 250, '')

If you can reproduce the temperror there, then it's not the policy server
where the issue is.

Revision history for this message
Oleksii Petrov (lexxai-b) wrote :

 python /usr/local/bin/ "" "<email address hidden>" ""
('temperror', 451, 'SPF Temporary Error: DNS Timeout') None

Would you know what may be with python DNS, and how debug it ?
I'm php user, python is unknown area.

Revision history for this message
Oleksii Petrov (lexxai-b) wrote :

was installed old version pydns-2.3.5 instead pydns-2.3.6 and now all answer ok.
python "" "<email address hidden>" ""
('none', 250, '') None


Revision history for this message
Scott Kitterman (kitterman) wrote :

Glad you got it worked out.

Changed in pypolicyd-spf:
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers