View Issue Details

IDProjectCategoryView StatusLast Update
0017040CentOS-8postfixpublic2020-02-12 17:55
Reporterjootuom 
PrioritynormalSeveritymajorReproducibilityalways
Status newResolutionopen 
Product Version8.1.1911 
Target VersionFixed in Version 
Summary0017040: postfix does not process canonical mappings properly
DescriptionPostfix has support for rewriting SMTP envelope/header senders/recipients.

It appears the current CentOS package does not process the relevant configuration directives properly or something - when configured to only rewrite the envelope sender, everything gets rewritten.

i.e.
From: test@test.invalid
To: recipient@domain.tld

Gets rewritten to:
From: noreply@domain.tld
To: noreply@domain.tld

Despite the configuration only specifying a rewrite of the From address.

This exact same configuration works in CentOS 7 and, curiously, RHEL 8 - I verified this same configuration works fine on the latest RHEL package. The CentOS package version appears identical so I'm not sure what's going on...

It seems this could happen if the configuration directive canonical_classes is left to the default value, but my configuration explicitly changes it. See:
http://www.postfix.org/postconf.5.html#canonical_classes
Steps To Reproduce# grep -e "^relay" /etc/postfix/main.cf
relayhost = 192.0.2.1

# grep -e "^canonical" /etc/postfix/main.cf
canonical_maps = regexp:/etc/postfix/canonical
canonical_classes = envelope_sender

# postconf canonical_classes
canonical_classes = envelope_sender

# postconf canonical_maps
canonical_maps = regexp:/etc/postfix/canonical

# cat /etc/postfix/canonical
// noreply@domain.tld

# mail -r test@test.invalid -s "testing" recipient@domain.tld
test
EOT
Additional InformationInstalled Packages
Name : postfix
Epoch : 2
Version : 3.3.1
Release : 9.el8
Architecture : x86_64
Size : 5.4 M
Source : postfix-3.3.1-9.el8.src.rpm
Repository : @System
From repo : localbase
Summary : Postfix Mail Transport Agent
URL : http://www.postfix.org
License : (IBM and GPLv2+) or (EPL-2.0 and GPLv2+)
Description : Postfix is a Mail Transport Agent (MTA).
TagsNo tags attached.

Activities

There are no notes attached to this issue.

Issue History

Date Modified Username Field Change
2020-02-12 17:55 jootuom New Issue