On Saturday, February 15, 2003 10:00 PM, Jim <[EMAIL PROTECTED]> wrote:

> Well, to start off, i just want to make it clear that I am not
> arguing, I am just trying to become more clear.

If you mean understand, then ok :)

> On Saturday, February 15, 2003 9:32 PM, Cory Wright wrote:
>> In order to fully understand this you need to have a good
>> understanding of how qmail's virtual domains work.  The
>> .qmail-default file is called for every vpopmail account that has
>> not been overridden by a .qmail file in the domain's directory.
> I have read the documentation before posting my problems.
> Per the documentation from vdelivermail:
>>> [default account for delivery]
>>> If the email does match any .qmail-user file and also does not
>>> match any
> virtual domain user, this is the default delivery instructions.
> 'spam' is a virtual domain user.  the vdelivermail in my environment
> is not complying with the documented behavior.
> the documentation in dot-qmail also says that a user account will take
> precedence over a .qmail-default.
> i understand the concept of a catch-all.  the .qmail-default is
> acting as a .qmail-catchall instead of an encompassed catch-all.
> IE:  the documentation does not say:
> If the email does match any .qmail-user file, this is the default
> delivery instructions.

Ok, I think you're getting confused by the virtualization layer that
vpopmail adds.  Remember, vpopmail is an *add-on* to qmail.  Read the
qmail-users man page.  This is critical to the way that vpopmail works.

If you look in qmail/control/virtualdomains, you'll see a line like


That tells qmail that any mail for jimtest.com should be delivered to the
*user* jimtest.com. When qmail doesn't find a jimtest.com in /etc/passwd, it
then looks in the cdb file created qmail/users/assign.  If you look in
there, you'll see a line like


This tells qmail the following:

All email for jimtest.com is going to be controled by the .qmail* files in
/home/vpopmail/domains/jimtest.com.  Now, qmail doesn't know anything about
the vpopmail users, nor the directory structure under
/home/vpopmail/domains/jimtest.  So it looks for a .qmail-spam file.  It
doesn't find one.  Because it doesn't know anything about the users, it then
reads the .qmail-default file and follows the delivery instructions in
there, which pipe the message to spamc.  It's the vdelivermail program that
knows all about the users in jimtest.com and does the final delivery.

> jim


Reply via email to