Postfix implemetation TempError DNS resolving

Bug #960927 reported by Oleksii Petrov
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
pypolicyd-spf
Invalid
Undecided
Unassigned

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
PORTVERSION= 0.8.1

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 mail-bk0-f49.google.com[209.85.214.49]
Feb 23 11:21:52 postfix/smtpd: Anonymous TLS connection established from mail-bk0-f49.google.com[209.85.214.49]: 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=209.85.214.49; helo=mail-bk0-f49.google.com; <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 spf.py provided by py27-spf-2.0.7. Then try:

$ python spf.py "209.85.214.49" "<email address hidden>" "mail-bk0-
f49.google.com"

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/spf.py "209.85.214.49" "<email address hidden>" "mail-bk0-f49.google.com"
('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 spf.py "209.85.214.49" "<email address hidden>" "mail-bk0-f49.google.com"
('none', 250, '') None

thanks.

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

Remote bug watches

Bug watches keep track of this bug in other bug trackers.