Merge #2002
2002: Misc improvements to the postfix configuration r=mergify[bot] a=nextgens ## What type of PR? enhancement ## What does this PR do? - It removes a useless "Received" header - It changes the SRS key from SECRET_KEY to a subkey (this will affect "in flight" bounces) ### Related issue(s) - #466 ## Prerequisites Before we can consider review and merge, please make sure the following list is done and checked. If an entry in not applicable, you can check it or remove it from the list. - [x] In case of feature or enhancement: documentation updated accordingly - [x] Unless it's docs or a minor change: add [changelog](https://mailu.io/master/contributors/workflow.html#changelog) entry file. Co-authored-by: Florent Daigniere <nextgens@freenetproject.org>master
commit
7678365ab3
@ -1,17 +1,8 @@
|
|||||||
# This configuration was copied from Mailinabox. The original version is available at:
|
# This configuration was copied from Mailinabox. The original version is available at:
|
||||||
# https://raw.githubusercontent.com/mail-in-a-box/mailinabox/master/conf/postfix_outgoing_mail_header_filters
|
# https://raw.githubusercontent.com/mail-in-a-box/mailinabox/master/conf/postfix_outgoing_mail_header_filters
|
||||||
|
|
||||||
# Remove the first line of the Received: header. Note that we cannot fully remove the Received: header
|
# Remove typically private information.
|
||||||
# because OpenDKIM requires that a header be present when signing outbound mail. The first line is
|
/^\s*(Received|User-Agent|X-(Enigmail|Mailer|Originating-IP|Pgp-Agent)):/ IGNORE
|
||||||
# where the user's home IP address would be.
|
|
||||||
/^\s*Received:[^\n]*(.*)/ REPLACE Received: from authenticated-user ({{OUTCLEAN}} [{{OUTCLEAN_ADDRESS}}])$1
|
|
||||||
|
|
||||||
# Remove other typically private information.
|
|
||||||
/^\s*User-Agent:/ IGNORE
|
|
||||||
/^\s*X-Enigmail:/ IGNORE
|
|
||||||
/^\s*X-Mailer:/ IGNORE
|
|
||||||
/^\s*X-Originating-IP:/ IGNORE
|
|
||||||
/^\s*X-Pgp-Agent:/ IGNORE
|
|
||||||
|
|
||||||
# The Mime-Version header can leak the user agent too, e.g. in Mime-Version: 1.0 (Mac OS X Mail 8.1 \(2010.6\)).
|
# The Mime-Version header can leak the user agent too, e.g. in Mime-Version: 1.0 (Mac OS X Mail 8.1 \(2010.6\)).
|
||||||
/^\s*(Mime-Version:\s*[0-9\.]+)\s.+/ REPLACE $1
|
/^\s*(Mime-Version:\s*[0-9\.]+)\s.+/ REPLACE $1
|
||||||
|
@ -0,0 +1 @@
|
|||||||
|
Derive a new subkey (from SECRET_KEY) for SRS
|
@ -0,0 +1 @@
|
|||||||
|
Remove the Received header with PRIMARY_HOSTNAME [PUBLIC_IP]
|
Loading…
Reference in New Issue