also sprach maex-qmail:
> On Sat, Jun 03, 2000 at 01:02:40PM -0400, Peter Green wrote:
> > control/virtualdomains lists ``ais.cx:ais.cx'' and users/assign lists
> > ``+ais.cx-:ais.cx:503:503:/usr/local/vpopmail/domains/ais.cx:-::''. I take
> > this to mean that if no .qmail-<user> file exists, it will try to deliver to
> > /usr/local/vpopmail/domains/ais.cx/<user>/Maildir/ (as per my default
> > delivery of ./Maildir/).
> 
> No.  -> man qmail-users  and  man qmail-send

I have, and still the confusion. I must be as dense as people say... ;)

> The "user" is "ais.cx" other than that qmail-local knows nothing about
> users in this case.
> "+ais.cx-" is a wildcard match that tells qmail how to treat "users"
> starting with the string
>     ais.cx-
> This user is defined via virtualdomains.
>     ais.cx:ais.cx
> This tells qmail that all email addressed to
>     [EMAIL PROTECTED]
> (this does NOT include e.g. [EMAIL PROTECTED]) is under control of the
> user "ais.cx" and this user is defined via the users mechanism.

Right, got that. My confusion was with the vpopmail of things that magically
gets mail into VPOPMAILDIR/domains/<vdomain>/<user>/ for <user>@<vdomain>.
How does qmail/vpopmail know to deliver <vdomain>-<user>@<vdomain> (which is
the result of rewriting <user>@<vdomain> via virtualdomains) where to stick
the mail? I have users in /usr/local/vpopmail/domains/<vdomain>/<user>/
without a /usr/local/vpopmail/domains/<vdomain>/.qmail-<user> file, and the
mail still gets there.

My reading of the docs say that this should not be happening. From
dot-qmail(5):

  If .qmail is completely empty (0 bytes long), or does  not
  exist,  qmail-local  follows  the defaultdelivery instruc�
  tions set by your system administrator; normally  default�
  delivery  is  ./Mailbox,  so  qmail-local appends the mail
  message to Mailbox in mbox format.

Yet somehow, users are getting mail.

> >   .qmail-u1:
> >     | /usr/local/vpopmail/bin/vdelivermail '' [EMAIL PROTECTED]
> >   .qmail-default:
> >     | /usr/local/vpopmail/bin/vdelivermail '' [EMAIL PROTECTED]
> >     | /usr/local/vpopmail/bin/vdelivermail '' u2
> >     | /usr/local/vpopmail/bin/vdelivermail '' u3
> >   .qmail-info (symlink to .qmail-default)
> > 
> > It only delivers mail once per recipient.
> 
> If you have properly set up real users u2, u3 on that machine it would

I have no ``real users'' on this box that receive mail in their home
directory. It would kinda defeat the purpose of having a one-UID system if I
had to create a local user for each virtual user...

> also work putting
>    &u2
>    &u3
> in .qmail-default and you could also use a different file for
> .qmail-info. This is due to the fact that on unqualified addresses
> (and &u2 is one) qmail/control/me will be appended and therefor it will 
> be delivered locally to the user  u2@<me>

In my case, u2@<me> != u2@<vdomain>.

Thanks tremendously for your responses!

/pg
-- 
Peter Green : Gospel Communications Network, SysAdmin : [EMAIL PROTECTED]
---
"Absolutely nothing should be concluded from these figures except that
no conclusion can be drawn from them."
(By Joseph L. Brothers, Linux/PowerPC Project)

Reply via email to