Re: [exim] Re: Rewriting: Usage of $1 if used match_domain?

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: Heiko Schlittermann
Dátum:  
Címzett: 'Exim-users'
Tárgy: Re: [exim] Re: Rewriting: Usage of $1 if used match_domain?
A trip to a pond near by helped even more than sitting on computer...

Philip Hazel <ph10@???> (Do 28 Jul 2005 14:57:56 CEST):
> > thank you for thinking. I'm sooo clever ;-), even more clever than
> > myself - I found a (the?) solution:
>
> Not "the", "a". :-) Another possibility would have been to use
> $local_part and $domain instead of $1 and $2.


Yes, thanks. That I read there at that pond as well. (I took your Exim book :-)
And found another (even more clever?) solution by reading on....

*@+local_domains    "${lookup {$1}lsearch{/etc/exim/uid2primaryAddress}{$value}fail}"


Looks really cool, at least compared with the 37 °C outside :-)

    Best regards from hot Dresden
    Heiko Schlittermann
-- 
 SCHLITTERMANN.de ---------------------------- internet & unix support -
 Heiko Schlittermann HS12-RIPE -----------------------------------------
 gnupg encrypted messages are welcome - key ID: 48D0359B ---------------
 gnupg fingerprint: 3061 CFBF 2D88 F034 E8D2  7E92 EE4E AC98 48D0 359B -