That's what I tried first actually but for the life of me I could not get headers_rewrite to work. It was ignored no matter what I try. I'm using Debian wheezy and Exim 4.80.1 and I tried both using a Debian macro REMOTE_SMTP_HEADERS_REWRITE and also manually adding the headers_rewrite under the remote_smtp transport. That's why I resorted to a global rewrite.
Any hints about debugging this? ---- Dunno about the Debian split config stuff, I'm afraid. Despite running Debian on various boxes, I'm so used to the Exim config that I just use a single file config. However, just done some quick tests on my workstation here. So I have a router: admin_route: driver = manualroute transport = remote_smtp2 domains = <some domains> route_list = * <where I'm sending it> Then I have a transport: remote_smtp2: driver = smtp headers_rewrite = *@admin.cam.ac.uk [email protected] f And that seems to do what I want it to. John -- ## 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/
