postfix-policyd-spf-python always appends <UNKNOWN> as recepient address

Bug #1817363 reported by Vasya Pupkin
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
pypolicyd-spf (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Here's an example:

Feb 22 08:40:14 vps postfix/smtpd[28134]: NOQUEUE: reject: RCPT from unknown[92.255.197.74]: 550 5.7.23 <email address hidden>: Recipient address rejected: Message rejected due to: SPF fail - not authorized. Please see http://www.openspf.net/Why?s=mfrom;<email address hidden>;ip=92.255.197.74;r=<UNKNOWN>; from=<email address hidden> to=<email address hidden> proto=ESMTP helo=<92x255x197x74.static-business.kzn.ertelecom.ru>

Correct version would be:

Feb 22 08:40:14 vps postfix/smtpd[28134]: NOQUEUE: reject: RCPT from unknown[92.255.197.74]: 550 5.7.23 <email address hidden>: Recipient address rejected: Message rejected due to: SPF fail - not authorized. Please see http://www.openspf.net/Why?s=mfrom;<email address hidden>;ip=92.255.197.74;<email address hidden>; from=<email address hidden> to=<email address hidden> proto=ESMTP helo=<92x255x197x74.static-business.kzn.ertelecom.ru>

In Ubuntu 16.04 it works as intended, in Ubuntu 18.04 <UNKNOWN> is always appended instead of recipient address.

ProblemType: Bug
DistroRelease: Ubuntu 18.04
Package: postfix-policyd-spf-python 2.0.2-1
ProcVersionSignature: Ubuntu 4.15.0-45.48-generic 4.15.18
Uname: Linux 4.15.0-45-generic x86_64
ApportVersion: 2.20.9-0ubuntu7.5
Architecture: amd64
Date: Fri Feb 22 16:23:43 2019
InstallationDate: Installed on 2019-01-27 (26 days ago)
InstallationMedia: Ubuntu-Server 16.04.3 LTS "Xenial Xerus" - Release amd64 (20170801)
PackageArchitecture: all
SourcePackage: pypolicyd-spf
UpgradeStatus: Upgraded to bionic on 2019-01-27 (26 days ago)

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

This is not a bug, but an intentional design change to, by default, better protect user privacy. See man 5 policyd-spf.conf for details. To restore the previous behaviour, add this to the policy server's configuration:

Hide_Receiver = No

Changed in pypolicyd-spf (Ubuntu):
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.