Wietse Venema: > Wietse Venema: > > Ian! D. Allen: > > > On Sun, Mar 03, 2019 at 03:51:35PM -0500, Wietse Venema wrote: > > > > smtp unix - - n - - smtp > > > > -o { smtp_generic_maps = inline:{{idal...@idallen.ca = > > > > you@college}}} > > > > This updates envelope addresses and header addresses. > > > > > > Well, the above correctly updates *most* header addresses, but is a bit > > > too aggressive about the ones it does update. > > > > It changes standard headers that usually specify sender information, > > like From and Reply-To, not non-standard headers like X-Mumble. > > > > > How do I sneak through a Reply-To that goes to idal...@idallen.ca ? > > > > Postfix is an MTA, not a content-management system. For complex > > rewriting policies use a plugin: a filter or milter. Maybe Sendmail > > can do it with built-ins. > > Or make the header_opts table configurable; this is where all > the header properties are currently hard-coded.
For prior art, see message_drop_headers, which specifies headers that are to be removed. message_drop_headers (default: bcc, content-length, resent-bcc, return-path) Names of message headers that the cleanup(8) daemon will remove after applying header_checks(5) and before invoking Milter applications. The default setting is compatible with Postfix < 3.0. Adding message_sender_headers and message_recipient_headers may make sense, i.e, one main.cf parameter per HDR_OPT_MUMBLE flag. Wietse