Which configuration parameter on a Postfix server modifies only the sender address and not the recipient address?
Which configuration parameter on a Postfix server modifies only the sender address and not the recipient address?
The correct configuration parameter to modify only the sender address on a Postfix server is 'sender_canonical_maps'. This parameter is specifically designed to rewrite the sender's address while leaving the recipient's address unchanged. It allows mapping of sender addresses in both the envelope and message headers, as detailed in the official Postfix documentation.
sender_canonical_maps (default: empty) Optional address mapping lookup tables for envelope and header sender addresses. The table format and lookups are documented in canonical(5). Example: you want to rewrite the SENDER address "<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="fd888e988fbd889a9184d398859c908d9198">[email protected]</a>" to "<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="97e2e4f2e5d7e7e5f2e3e3eeb9f2eff6fae7fbf2">[email protected]</a>", while still being able to send mail to the RECIPIENT address "<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="43363026310336242f3a6d263b222e332f26">[email protected]</a>". Note: $sender_canonical_maps is processed before $canonical_maps. Example: sender_canonical_maps = hash:/etc/postfix/sender_canonical Ref: https://www.postfix.org/postconf.5.html#sender_canonical_maps