On Mon, Feb 03, 2025 at 05:56:45PM -0500, Wietse Venema via Postfix-users wrote:
> There is no built-in featrue to delete IP addresses from headers. But, given the expected header form, it is not difficult to craft a PCRE table that does the job well. > If this is for messages submitted on port 587 (submission) or 465 > (smtps or submissions), then you can simply delete all Received: > message headers, because there shuold be only one. > > master.cf: > > submission .. .. .. .. .. .. .. smtpd > -o { header_checks = pcre:{{/^Received:/ IGNORE}} } > ...other -o options... > > submissions .. .. .. .. .. .. .. smtpd > -o { header_checks = pcre:{{/^Received:/ IGNORE}} } > ...other -o options... > > This is much simpler than some of the on-line discussions. Though one might want to be prepared to encounter more friction for outbound mail lacking all upstream Received headers. These tend to be classed more "spammy". -- Viktor. _______________________________________________ Postfix-users mailing list -- postfix-users@postfix.org To unsubscribe send an email to postfix-users-le...@postfix.org