Re: [Exim] do-all type-2 virtual delivery file

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: Philip Hazel
Dátum:  
Címzett: Randy Bush
CC: exim users
Tárgy: Re: [Exim] do-all type-2 virtual delivery file
On Sat, 2 Mar 2002, Randy Bush wrote:

> i would love to have a single file something like
>
>   bogus.com   randy:foux
>   foo.com     barre:feene:frob
>   ...

>
> a message comes for some user@domain
>   if dom.ain is in the list
>      if user is in the rhs for that domain
>         deliver using alias/forward/append/etc
>      else (user not in rhs for that domain) reject
>   else (domain not in list) fall through to next router


Off the top of my head. Untested. YMMV. Etc...

r1:
driver = redirect
domains = lsearch;/that/file
local_parts = ! $domain_data
allow_fail
data = :fail: I don't like you

This implements "for these domains, reject any local parts that are not
in the per-domain list; otherwise fall through to next router".


--
Philip Hazel            University of Cambridge Computing Service,
ph10@???      Cambridge, England. Phone: +44 1223 334714.