On Tue, Feb 04, 2025 at 06:29:47PM -0500, postfix--- via Postfix-users wrote:
> I might have misunderstood the point of this as im jumping in late, but > there is both `header_checks` and `smtp_header_checks`. > Normal header checks get applied to (smtpd) mail being received on port 25 > on it's way to final destination. > And Smtp header checks get applied to (smtp) mail received by submission on > its way out to the world. NO. "smtp_header_checks" are applied on output to all mail that leaves the system, regardless of how it arrived, whether inbound from a remote source, an SMTP submission, or generated locally. > To protect submission user's privacy and not review their IP in a > `Received:` header i do: > > main.cf > smtp_header_checks = pcre:/etc/postfix/smtp_header_checks > > /etc/postfix/smtp_header_checks: > /^Received:/ IGNORE If the intent is to only censor submission, This is not correct, it will drop all "Received" headers from any mail that is not delivered locally, so entirely unsuitable for relaying non-submission mail, risks mail loops (the Received hop count is no longer effective), ... -- Viktor. _______________________________________________ Postfix-users mailing list -- postfix-users@postfix.org To unsubscribe send an email to postfix-users-le...@postfix.org