eaa7a1
This Postfix build behaves differently from the upstream postfix-3.5.8.
eaa7a1
It's because in RHEL-8 backward compatibility is kept to postfix-3.3.1.
eaa7a1
eaa7a1
For the upstream postfix-3.5.8 behavior either run the following commands:
eaa7a1
eaa7a1
# postconf info_log_address_format=external
eaa7a1
# postconf smtpd_discard_ehlo_keywords=
eaa7a1
# postconf rhel_ipv6_normalize=yes
eaa7a1
eaa7a1
Or go through the following steps:
eaa7a1
eaa7a1
1. Change the configuration option 'info_log_address_format' to 'external'.
eaa7a1
In RHEL-8 it's by default set to 'internal' to mitigate [Incompat 20191109].
eaa7a1
eaa7a1
2. Change the configuration option 'smtpd_discard_ehlo_keywords' to ''.
eaa7a1
In RHEL-8 it's by default set to 'chunking' to mitigate [Incompat 20180826].
eaa7a1
eaa7a1
3. Add RHEL-8 specific configuration option 'rhel_ipv6_normalize' and set it
eaa7a1
to 'yes'. In RHEL-8 this option was added to mitigate [Incompat 20190427].
eaa7a1
eaa7a1
Details from the upstream RELEASE_NOTES:
eaa7a1
eaa7a1
[Incompat 20191109]
eaa7a1
Postfix daemon processes now log the from= and
eaa7a1
to= addresses in external (quoted) form in non-debug logging (info,
eaa7a1
warning, etc.).  This means that when an address localpart contains
eaa7a1
spaces or other special characters, the localpart will be quoted,
eaa7a1
for example:
eaa7a1
eaa7a1
    from=<"name with spaces"@example.com>
eaa7a1
eaa7a1
Older Postfix versions would log the internal (unquoted) form:
eaa7a1
eaa7a1
    from=<name with spaces@example.com>
eaa7a1
eaa7a1
The external and internal forms are identical for the vast majority
eaa7a1
of email addresses that contain no spaces or other special characters
eaa7a1
in the localpart.
eaa7a1
eaa7a1
Specify "info_log_address_format = internal" for backwards
eaa7a1
compatibility.
eaa7a1
eaa7a1
The logging in external form is consistent with the address form
eaa7a1
that Postfix 3.2 and later prefer for table lookups. It is therefore
eaa7a1
the more useful form for non-debug logging.
eaa7a1
eaa7a1
[Incompat 20180826]
eaa7a1
The Postfix SMTP server announces CHUNKING (BDAT
eaa7a1
command) by default. In the unlikely case that this breaks some
eaa7a1
important remote SMTP client, disable the feature as follows:
eaa7a1
eaa7a1
/etc/postfix/main.cf:
eaa7a1
    # The logging alternative:
eaa7a1
    smtpd_discard_ehlo_keywords = chunking
eaa7a1
    # The non-logging alternative:
eaa7a1
    smtpd_discard_ehlo_keywords = chunking, silent_discard
eaa7a1
eaa7a1
See BDAT_README for more.
eaa7a1
eaa7a1
[Incompat 20190427]
eaa7a1
Postfix now normalizes IP addresses received
eaa7a1
with XCLIENT, XFORWARD, or with the HaProxy protocol, for consistency
eaa7a1
with direct connections to Postfix. This may change the appearance
eaa7a1
of logging, and the way that check_client_access will match subnets
eaa7a1
of an IPv6 address.