From 3c634d27bb2b4e8fe89f1c5b997a51bc5e40ae6c Mon Sep 17 00:00:00 2001 From: Sven Göthel Date: Sun, 3 Mar 2024 05:49:16 +0100 Subject: Server sendmail.mc: Add confRECEIVED_HEADER: Hide authenticated sender details --- .../setup/05-service-settings/etc/mail/sendmail.mc | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/server/setup/05-service-settings/etc/mail/sendmail.mc b/server/setup/05-service-settings/etc/mail/sendmail.mc index 0f93cc0..79f8a91 100644 --- a/server/setup/05-service-settings/etc/mail/sendmail.mc +++ b/server/setup/05-service-settings/etc/mail/sendmail.mc @@ -168,6 +168,26 @@ dnl FEATURE(`allmasquerade')dnl FEATURE(`masquerade_envelope')dnl FEATURE(`masquerade_entire_domain')dnl +dnl # +dnl # RECEIVED_HEADER: Hide authenticated sender details +dnl # +define(`confRECEIVED_HEADER', `$?{auth_type}(from $j) by $j ($v/$Z)$| + $?sfrom $s $.$?_($?s$|from $.$_) + $.by $j ($v/$Z)$?r with $r$. id $i$?{tls_version} + (version=${tls_version} cipher=${cipher} bits=${cipher_bits} verify=${verify})$.$?u + for $u; $|; + $.$b$.')dnl +dnl # +dnl # Original RECEIVED_HEADER +dnl # +dnl # $?sfrom $s $.$?_($?s$|from $.$_) +dnl # $.$?{auth_type}(authenticated$?{auth_ssf} bits=${auth_ssf}$.) +dnl # $.by $j ($v/$Z)$?r with $r$. id $i$?{tls_version} +dnl # (version=${tls_version} cipher=${cipher} bits=${cipher_bits} verify=${verify})$.$?u +dnl # for $u; $|; +dnl # $.$b +dnl # + dnl # use /etc/mail/local-host-names FEATURE(`use_cw_file')dnl dnl -- cgit v1.2.3