Re: rewriting rules....

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: Nick Waterman
Dátum:  
Címzett: exim-users
Tárgy: Re: rewriting rules....
Chris Thompson allegedly said:
> How exactly does this differ from the example in doc/spec.txt ? i.e.
>
>   *@*.hitch.book.fict  $1@???
>   *@hitch.book.fict    ${lookup{$1}dbm{/etc/realnames}\
>                        {$value}fail}@??? bcfrF

>
> Is it that the dbm lookup needs to depend on the host part stripped off
> the front of "humber.ac.uk", as well as the local part?


How about doing something like:


        *@*.hitch.book.fict     {$1}-{$2}@???
        *@hitch.book.fict       ${lookup{$1}dbm{/etc/realnames}\
                                {$value}fail}@??? bcfrF


so fred@??? becomes fred-bloggs@??? and
gets looked up in the list after that? Use something more interesting
than "-" as a separator if it worries you.

--
Nick Waterman, Network Manager, Cimio Ltd.
nick@??? nick@??? G7RZQ @ GB7DEO.#32.GBR.EU
http://www.cimio.co.uk/~nick/ #include <disclaimer> Team *AMIGA*!
Dawn: The time when men of reason go to bed.