Im trying to figure out how to modify postfix header checks to not include the domain of the users account in the headers.
Message-ID: <47117764.738025.1397846780555.JavaMail.zimbra@com pany1.com>
In-Reply-To: <1983871998.435361.1397587427486.JavaMail.zimbra@c ompany1.com>
References: <1983871998.435361.1397587427486.JavaMail.zimbra@c ompany1.com>
these message-ids use the original domain of the account instead of an alias or the primary domain of the server.
so for example firstname.lastname@example.org uses alias email@example.com to send mail the message-ids in the headers use @company1.com which looks strange if anyone was to ever look at them.
id rather it use @notaffliatedwiteither1or2.com for those message IDs.
research said i needed to modify the header_checks file defined in main.cf there is no file defined in /opt/zimbra/postfix/confmain.cf but there is a file in /opt/zimbra/conf/postfix_header_checks, which seems to have rules for excluding file extensions i don't want to receive.
put when i put the line /Message-Id:\s+<(.*?)@company.1com>/ REPLACE Message-Id: <$1...@notaffliatedwiteither1or2.com>
its overwriten after i reload postfix.
so where am i suppose to change it or how can i strip message id headers completely if i cant do that.