View Issue Details

IDProjectCategoryView StatusLast Update
0017040CentOS-8postfixpublic2020-02-12 17:55
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.

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:
Steps To Reproduce# grep -e "^relay" /etc/postfix/
relayhost =

# grep -e "^canonical" /etc/postfix/
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
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
License : (IBM and GPLv2+) or (EPL-2.0 and GPLv2+)
Description : Postfix is a Mail Transport Agent (MTA).
TagsNo tags attached.


There are no notes attached to this issue.

Issue History

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