Re: I need help with email redirection

Top Page
Delete this message
Reply to this message
Author: Steven A. Reisman
Date:  
To: Philip Hazel
CC: exim-users
Subject: Re: I need help with email redirection
> This isn't a rewriting problem, it is a mail routing problem. The best
> way to handle is is to use the facilities for routing mail, namely, the
> directors and routers. All you need is a director like this:
>
> direct_domains:
>    domains = customerdomain.com,
>    driver = smartuser;
>    new_address = yyyy@???


> assuming that you have "customerdomain.com" as an entry in your
> local_domains setting. If you have several domains to be handled in this
> way, you can use some form of lookup to get the particular new_address
> for each one, e.g.


>    new_address = ${lookup{$domain}lsearch{/domain/file}{$value}}


I used:

new_address = ${lookup{${lc:$domain}}dbm{/var/lib/exim/remail}{$value}fail}


and added "dbm;/var/lib/exim/remail" to local_domains. It works nicely.

Thanks,

Steve


> -- 
> Philip Hazel                   University Computing Service,
> ph10@???             New Museums Site, Cambridge CB2 3QG,
> P.Hazel@???          England.  Phone: +44 1223 334714

>
>



-- 
Steven A. Reisman      |     Internet: sar@???
PressEnter!            |  River Falls: 715-426-2100        Fax: 715-426-2111
P.O. Box 312           |   Eau Claire: 715-830-1273
421 N 2nd Street       | New Richmond: 715-246-7060   Somerset: 715-246-7060
River Falls, WI  54022 |  Twin Cities: 612-436-5254   Red Wing: 612-792-5279


--
* This is sent by the exim-users mailing list.  To unsubscribe send a
    mail with subject "unsubscribe" to exim-users-request@???
* Exim information can be found at http://www.exim.org/