Autor: Niels Kobschätzki Data: Dla: Jeremy Harris CC: exim-users Temat: Re: [exim] Routing for aliases
On 19 Jan 2021, at 10:19, Jeremy Harris via Exim-users wrote:
> On 19/01/2021 08:55, Niels Kobschätzki via Exim-users wrote:
>>>>>> I have the following case: I have users who have their
>>>>>> mail-address
>>>>>> aliased to an external address. The moment a router resolves the
>>>>>> alias
>>>>>> it doesn’t go again for the new target address through all
>>>>>> routers
>>>>>> but
>>>>>> jumps directly the router to my dnslookup-router which is used
>>>>>> for
>>>>>> external mails and sends it out. Any idea how I get the mail
>>>>>> through
>>>>>> the
>>>>>> whole router-loop again?
>
>> virtual_aliases_nowild:
>> driver = redirect
>> domains = lsearch,ret=key;VIRTUAL_DOMAINS_FILE
>> data = ${lookup ldap{LDAP_AUTH
>> ldap:///LDAP_ALIAS_DN?mailDestinationAddress?sub?(mail=${quote_ldap:$local_part@$domain_data})}{$value}fail}
>> allow_fail
>> allow_defer
>> file_transport = address_file
>> pipe_transport = address_pipe
>> modemask = 002
>> redirect_router = dnslookup
>
> That last line seems to speak to the behaviour you are seeing...
Oh, right. Thanks a log. That was it. I have a look at my logs if I see
other problems coming up because of that. So far it is looking good.