Files
role-common-send_only_mta/templates/etc/postfix/smtp_header_checks.j2

10 lines
411 B
Django/Jinja

# SPDX-License-Identifier: MIT
# In our 'From:' header reuse any mail display name then append our
# official sender e-mail address.
/^From:[[:space:]]*(.+?)([[:space:]]*<)/ REPLACE From: "${1}" <{{ somta__e_mail_default_sender_addr_spec }}>
# Hide the sender's IP and user agent in the Received header
# https://wiki.archlinux.org/title/Postfix
/^Received:.*/ IGNORE
/^User-Agent:.*/ IGNORE