Re: [exim] Conditionally removing/rewriting received header …

Top Page
Delete this message
Reply to this message
Author: Jeremy Harris
Date:  
To: exim-users
Subject: Re: [exim] Conditionally removing/rewriting received header based on destination MX hostname
On 14/12/13 17:35, David North wrote:
> I stuck with it and came up with a solution - replace the dnslookup
> router with two like so (most of the router options omitted for brevity):
>
> dnslookup_non_google:
>    debug_print = "R: dnslookup (non-google) for $local_part@$domain"
>    ignore_target_hosts = *.google.com : *.googlemail.com
>    # not no_more, because the google one might take it

>
> dnslookup_google:
>    debug_print = "R: dnslookup (google) for $local_part@$domain"
>    # strip received headers to avoid Google's silly IPv6 rules
>    headers_remove = Received
>    headers_add = X-Received: Authenticated device belonging to David
> North or one of his users
>    no_more


You avoided doing the really nasty bit of editing the Received
headers...

I was musing along the lines of

$h_Received

${filter <\n }

match <numbers><colon><numbers>

-- 
Cheers,
    Jeremy