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 -- ## List details at https://lists.exim.org/mailman/listinfo/exim-users ## Exim details at http://www.exim.org/ ## Please use the Wiki with this list - http://wiki.exim.org/