[Bug 268056] mail/postfix-policyd-spf-perl: Mail delivery failure

From: <bugzilla-noreply_at_freebsd.org>
Date: Fri, 02 Dec 2022 02:57:27 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=268056

--- Comment #6 from Mel Pilgrim <ports.maintainer@evilphi.com> ---
(In reply to John R from comment #5)

I can't reproduce the error you're seeing:

# date; echo "Dec  1 16:42:28 Mail postfix/smtpd[54225]: NOQUEUE: reject: RCPT
from a1-106.smtp-out.eu-west-1.amazonses.com[54.240.1.106]: 450 4.7.1
<user@localdomain.com>: Recipient address rejected:
SPF-Result=bounces.amazon.co.uk ... amazon.com: Unknown error on DNS 'TXT'
lookup of 'amazon.com';
from=<202212011624154d01c533115d496393a7d4315150p0eu-C560YXP5U5H65@bounces.amazon.co.uk>
to=<user@localdomain.com> proto=ESMTP
helo=<a1-106.smtp-out.eu-west-1.amazonses.com>" | policy-test
unix:/var/spool/postfix/private/spf-policy
Thu Dec  1 18:44:45 PST 2022
1 requests in 0s
# tail -n 1 /var/log/maillog
Dec  1 18:44:46 chombo postfix/policy-spf[8173]: Policy action=DUNNO

That error, specifically the "Unknown error on DNS..." message, isn't what
you'd get if the resolver was working correctly, contacted the domain's NS, and
got a valid response (positive or negative).  Because I can get a valid
response when I test what's failing for you, I can't do much more than offer
suggestions.

-- 
You are receiving this mail because:
You are the assignee for the bug.