Martin Dougiamas <[EMAIL PROTECTED]> wrote:
> 
> I want these to work:
> 
>    user1 at domain1.com
>    user2 at domain2.com
>    user3 at domain3.com
> 
> but I want all OTHER combinations to be bounced!
> 
> Obviously (?) I can't put anything in the "control/locals" file,
> because whatever I put in there appears to activate ALL the 
> local user accounts for that domain.
> 
> So I put something like this in the control/virtualdomains file:
> 
>   domain1.com:alias-domain1
>   domain2.com:alias-domain2
>   domain3.com:alias-domain3
> 
> and in ~alias I made files like this:
> 
>   .qmail-domain1-user1
>   .qmail-domain2-user2
>   .qmail-domain3-user3

You're exactly right so far.

> But what do I put in these files?  I tried putting this sort of thing,
> as per the manual:
> 
>   eg ~alias/.qmail-domain-user2:
>  
>       /home/user2/Maildir/
> 
> but I get "Unable_to_chdir_to_maildir" errors.  I also tried just 

This won't work, because mail to [EMAIL PROTECTED] will be delivered as the
system account alias, which probably has no write privilegews to
/home/user2/Maildir/new.

> So what should I be doing?

Use a virtual domain manager of some sort.  I recommend vmailmgr, available
at vmailmgr.org.  It includes the necessary bits to provide all the
functionality you're looking for.

Charles
-- 
-----------------------------------------------------------------------
Charles Cazabon                            <[EMAIL PROTECTED]>
GPL'ed software available at:  http://www.qcc.sk.ca/~charlesc/software/
Any opinions expressed are just that -- my opinions.
-----------------------------------------------------------------------

Reply via email to