Hi Johanna,
Johanna Stock wrote:
> Reiner Griess schrieb:
>
>>Hi there,
>>
>
> Hi Reiner,
>
>>simple thing:
>>
>>- two domains: foo.org, bar.org
>>- I want to have seperate alias files for each domain
>>
>>I put the following into 400_exim4-config_system_aliases.rul
>>
>>virtual:
>> driver = redirect
>> domains = dsearch;/etc/mail/virtual
>> data =
>> {lookup{$local_part}lsearch{/etc/mail/virtual/$domain}}
>>
>
> Sorry, in my opinion this is not for verify!
>
> And you have to verify that the local_part is valid for the domain!
thank you for your reply. It worked this way:
aliases_with_domain:
driver = redirect
data =
${lookup{$local_part@$domain}lsearch{/etc/exim4/aliases_with_domains}}
Now I'm able to put
name@domain.com in /etc/exim4/aliases_with_domains
and it gets delivered correctly.
Greets
reiner