Auteur: Jeremy Harris Date: À: exim-users Sujet: Re: [exim] Preserve certain headers, drop the rest
On 07/01/2020 21:13, Rigu Cucu via Exim-users wrote: > We relay emails from various remote locations (which are using various mail setups). It is impossible to anticipate the variety of headers each individual MTA has added (custom x-headers and such) and we need a clear and consistent outgoing mail header setup. So ideally we would retain a predefined set of headers and drop the rest.
Walk the $message_headers (it's a newline-sep list) using foreach.
See if it's not a wanted header, and call an ACL to remove_header.
Possibly worth a wishlist-level bug, for a simpler method?
--
Cheers,
Jeremy