Re: [exim] route mail based on source

Etusivu
Poista viesti
Vastaa
Lähettäjä: Jasen Betts
Päiväys:  
Vastaanottaja: exim-users
Aihe: Re: [exim] route mail based on source
On 2013-12-10, Tony Primerano <tony.primerano@???> wrote:
> On Tue, Dec 10, 2013 at 6:03 AM, Jasen Betts <jasen@???> wrote:
>
>> On 2013-12-10, Tony Primerano <tony.primerano@???> wrote:
>> > accidentally responded to Jason instead of the list.. trying again. :-)
>>
>> >
>> > What would that router condition look like? Sorry, I'm new to exim.
>>
>> what does a "local user" look like, what do I measure to determine if
>> local or not?
>>
>> > Can you point me to the document that talks about adding conditionals and
>> > what variable should I be checking?
>>
>> that depends on what a local user is.
>>
>> it'll go something like
>>
>> conditon=${if ..... }
>>
>
> I suspect a non-null sender_host_authenticated is what I need.
>
> condition=${if def:sender_host_authenticated}


That sounds good. some installations might want to do checks against
the $sender_host_address, or possibly something even wierder, as well.

> Am I on the right track here?


yeah, try that.

> send_authd_users_to_google:
> driver = dnslookup
> domains = +local_domains
> condition=${if def:sender_host_authenticated}
> transport = remote_smtp


yeah, that should work.



--
For a good time: install ntp