Interesting Answer Peter, but I will through a bit of a loop into this.

1.  User account "bruce", no .qmail-bruce file.
        - two messages are delivered to bruce when addressed to

2.  User account "bruce", with .qmail-bruce file.
        - one message is delivered to bruce when addressed to

So, unless I am missing something (in which case, please point me to where)
I do not see why the above example should go to the .qmail-default file.

In the event that the message does go to the default file, I do want both.
I want the bounce to go back AND a copy to be forwarded to the postmaster.

I performed an intersting test.   I deleted ALL .qmail-* files, including
the .qmail-default and the email to [EMAIL PROTECTED] just got delivered

So, my theory is that creating a .qmail-default file in a virtual domain,
requires every user to have a .qmail-(user) file.

-----Original Message-----
From: Peter Palmreuther [mailto:[EMAIL PROTECTED]] 
Sent: February 14, 2003 10:49
To: Bknonix Lists in vpop
Subject: [vchkpw] Re: Duplicate Messages.

Hello Bknonix,

On Friday, February 14, 2003 at 3:51:04 AM you wrote (at least in

>>And the output of:
>>cat <home-directory-of-that-domain>/.qmail-default

> | /home/VMail/bin/vdelivermail '' [EMAIL PROTECTED] 
> | /home/VMail/bin/vdelivermail '' bounce-no-mailbox

And you _really_ wonder why mails are delivered twice?

The first line searches for the user in vpasswd.cdb and if found delivers
the mail. If not is redirects the mail to postmaster@... The second line
does exactly the same, except in case of failure it bounces the message. A
successful delivery done in line 1 does _NOT_ stop qmail-local executing the
other lines in .qmail-default, which a quick look into man dot-qmail and man
qmail-local would have revealed.

Decide ... Bounce or Forward. If you _really need_ both you'll for sure have
no problem with writing an own program or script that is called from
vdelivermail (|.../vdelivermail '' |/path/to/my/prog) and forwards and
bounces by itself, with the effect you only have _one_ delivery instruction
in .qmail-default.
Best regards
Peter Palmreuther

Ummm.... Uhhhh.... Uggggg... I rule and you don't.

Reply via email to