Re: [exim] alias domain

Top Page
Delete this message
Reply to this message
Author: Marc Perkel
Date:  
To: exim-users
Subject: Re: [exim] alias domain
I think this might be what you want:

It's a rewrite rule.

*@*
${lookup{$2}lsearch{/etc/exim/domainaliases}{$local_part@$value}{$local_part@$domain}}
E

the format of the donailiases file is:

domain1.com: domain2.com

or - in a router I have this fallback domain:

fallbackdomain:
driver = redirect
allow_defer
allow_fail
condition = ${lookup{$domain}lsearch{/etc/exim/domainfallback}{$value}}
data =
${lookup{$domain}lsearch{/etc/exim/domainfallback}{$local_part@$value}{$local_part@$domain}}
retry_use_local_part


The falback domain I have last and if it fails to deliver to the
original domain then it trys again to the fallback domain.

Peter Bowyer wrote:

>JupiterHost.Net <mlists@???> wrote:
>
>
>>Hello List :)
>>
>>I'm trying to do what this FAQ is about but I'm not sure I have it
>>down:
>>
>>http://exim.org/exim-html-4.40/doc/html/FAQ_4.html#TOC169
>>
>>I'd like to add:
>>
>>forwarddomain:
>>      driver = redirect
>>      domains = domain1.com
>>      data = $local_part@???

>>
>>So this would take mail that is to foo@??? and forward it to
>>foo@???, correct?
>>
>>What would be really awesome is to have a forwarddomain file in this
>>format:
>>
>> domain1.com: domain2.com
>> domain3.com: domain2.com
>>
>>So that foo@??? and foo@??? both go to
>>foo@???.
>>
>>If the router above is doing what I think it is then how could I
>>modify
>>it to incorporate that file?
>>
>>
>
>Try this:
>
>forwarddomainfromfile:
> driver = redirect
> domains = lsearch;/path/to/file
> data = $local_part@${lookup {$domain} lsearch {/path/to/file}}
>
>Peter
>
>
>