Gary Richardson wrote:
> 
> Good day,
> 
> I need to set up a forward for a maildir that already exists. The problem is
> that the .qmail-username file seems to be ignored if a maildir exists for the
> user. Is this right?
> 
> How can I make deliveries always look for a .qmail file? The install guide says
> that it should automatically.
> 
> Thanks.

the .qmail-username files are processed first. why?

When qmail decides that a mail is for local delivery, it
hands it off to qmail-lspawn. Which will spawn a qmail-local
process under the uig/gid in the /var/qmail/users/assign file
for that domain.

qmail-local will then change directory to the directory in
in the assign file.

Then qmail-local will start doing .qmail-username file processing.
If it files a matching .qmail file, it follows the commands in
the file and exits.

If it can't find a matching .qmail-username file it looks for
a .qmail-default file, which should contain the line to exec
vdelivermail.

If your .qmail-username file is being ignored, check the permission
and ownership. It should be owned by vpopmail/vchkpw and set to
rw user and no execution bit. 

Also, watch your log files and send a test message, qmail might
be reporting some type of problem.

Ken Jones

Reply via email to