Re: [Exim] slight twist on virtual domains

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: Peter Radcliffe
Dátum:  
Címzett: exim-users
Tárgy: Re: [Exim] slight twist on virtual domains
David Holland <david.holland@???> probably said:
> I currently have:
>
> joe:  joe@???
> fred: fred@???
> *:    default@???

>
> I would like to have something like:
>
> joe:  joe@???
> fred: fred@???
> *:    *@who.knows

>
> i.e. mail to bill@??? is forwarded to bill@???.
>
> Is there an easy way to set this up (a la C015) or do I have to mess
> with rewriting rules?


Rewriting is almost never the right way to redirect mail.

I would do this by using '**: who.knows' for the second type of default,
and putting a smartuser director after the virtual dorector to do;

virtdefault: 
  driver = smartuser
  domains = VIRTUALDOMAINS
  new_address = "${lookup{**} LOOKUPTYPE {ALIASFILE} {$local_part@$value} \
                    fail}"
  no_more



That way you could have some domains with one type of default and others
with another type of default.

Completely untested.

P.

-- 
pir                  pir@???                    pir@???