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