Re: [Exim] slight twist on virtual domains

Αρχική Σελίδα
Delete this message
Reply to this message
Συντάκτης: robert rotman
Ημερομηνία:  
Προς: Peter Radcliffe
Υ/ο: exim-users
Αντικείμενο: Re: [Exim] slight twist on virtual domains
On Thu, 9 Nov 2000, Peter Radcliffe wrote:

> 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

>


or maby another way put on the director "include_domain" and make a file
like:

fred@???: fred@???
*@local2.domain:    ${local_part}@???



robert


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