Re: [Exim] problem with address rewriting

Góra strony
Delete this message
Reply to this message
Autor: ODHIAMBO G. Washington
Data:  
Dla: exim-users
Temat: Re: [Exim] problem with address rewriting
* Tom Kinghorn <thomask@???> [20030529 00:33]: wrote:
> This is a multi-part message in MIME format.
> --
> [ Picked text/plain from multipart/alternative ]
>
>
> Hi all.
>
> Please can someone point me in the right direction.
> I have a number of domains going to 1 exchange server.
>
> I have set up address rewriting in the form of a dsearch which works okay.
>
> The problem is that I need to duplicate all users for the primary domain into files of the other domains.
>
> i.e
> domain1.tld contains
>
> user1    user1@???
> user2    mailto:user2@server.domain.tld.......etc

>
> now domain2.tld needs to contain the same.
> user1    user1@???
> user2    mailto:user2@server.domain.tld.......etc

>
> Is there a way of making all domains use the same file instead of duplicating it???
>
> my config currently contains:
> begin rewrite
> *@dsearch;/usr/exim/alias-file/    ${lookup{$1$2}partial-lsearch\
>                               {/usr/exim/alias-file/$domain}{$value}fail} ET

>



How about

cd /usr/exim/alias-file/
ln -f domain1.tld domain2.tld

This way domain2.tld points to domain1.tld in all respects.
What I am wondering is why you have to do this.


-Wash

--
Odhiambo Washington   <wash@???>  "The box said 'Requires
Wananchi Online Ltd.  www.wananchi.com      Windows 95, NT, or better,'
Tel: +254 2 313985-9  +254 2 313922         so I installed FreeBSD."
GSM: +254 72 743223   +254 733 744121       This sig is McQ!  :-)



Wit, n.:
    The salt with which the American Humorist spoils his cookery
... by leaving it out.
        -- Ambrose Bierce, "The Devil's Dictionary"