Re: [exim] exim rewrite envelope-from for one router only

Top Page
Delete this message
Reply to this message
Author: Tim Watts
Date:  
To: exim-users
Subject: Re: [exim] exim rewrite envelope-from for one router only
On 21/03/2019 16:31, Jeremy Harris via Exim-users wrote:
> On 21/03/2019 15:56, Tim Watts via Exim-users wrote:> But I can see no
> way to change the SMTP-From/Envelope-From within a> router or indeed
> anywhere using the same conditions the router triggers on.
> return_path option, on the transport the router uses.
>


Hi Jeremy,

Thanks for your reply.

I don't have an explicit
transport =

option on the redirect router as I expect the results to re-enter the
top of the routers chain after expansion (and that may loop once or
twice if an alias points to an alias).

Do you think setting a magic X- header and picking that up in the
dnslookup routers might be sane?

domain_aliases:
     driver = redirect
     headers_add = X-Alias: Yes
[...]


... More routers

outgoing_aliases:
     driver = dnslookup
     condition = ${if eq {$h_X-Alias:}{Yes}}
     domains = ! +our_domains
     transport = remote_smtp_aliases


outgoing_default:
     driver = dnslookup
     domains = ! +our_domains
     transport = remote_smtp



Something like that? Or am I barking up the wrong tree.

Cheers,

Tim

--
Tim Watts