Re: [Exim] alias settings and multiple personal mailboxes

Etusivu
Poista viesti
Vastaa
Lähettäjä: Marc Haber
Päiväys:  
Vastaanottaja: exim-users
Aihe: Re: [Exim] alias settings and multiple personal mailboxes
On Sun, 20 Jan 2002 20:13:51 +0100, Phil Pennock
<Phil.Pennock@???> wrote:
>system_aliases:
> driver = smartuser
> suffix = "+*"
> suffix_optional = yes
> new_address = ${lookup{$local_part} lsearch* {/etc/aliases} {$value${if def:local_part_suffix {+$local_part_suffix}{}}}fail}
>
>Unless I just messed something up, that should be equivalent to the
>aliasfile director, but passing through the suffix for the subsequent
>director-handling.


This doesn't work if the alias contains multiple recipients. For
example, if I have
a: a, a@domain,
a+foo gets expanded to "a,a@domain+foo" which is then in turn
delivered to a (without taking the suffix into account) and to
a@domain+foo, which is, of course, undeliverable.

Took me a month to figure that out ;)

Greetings
Marc

--
-------------------------------------- !! No courtesy copies, please !! -----
Marc Haber          |   " Questions are the         | Mailadresse im Header
Karlsruhe, Germany  |     Beginning of Wisdom "     | Fon: *49 721 966 32 15
Nordisch by Nature  | Lt. Worf, TNG "Rightful Heir" | Fax: *49 721 966 31 29