On Wed, 29 Aug 2001, Dave Sill wrote:
> 1) The *exact* contents of .qmail-default
~alias/.qmail-default contains:
&dcn-bounce-log
#|bouncesaying "unknown user"
"[EMAIL PROTECTED]" is the test account that will originate emails to
unknown users. "[EMAIL PROTECTED]" is a local user. ~dcn/.qmail-bounce-log
contains an mbox path:
./Mail/bounce-log
I initially commented out |bouncesaying to see if an unknown To: will
correctly deliver to &dcn-bounce-log. It does:
@400000003b8d3eab14d5e684 info msg 282: bytes 760 from <[EMAIL PROTECTED]> qp 32610
uid 512
@400000003b8d3eab1605042c starting delivery 552: msg 282 to local [EMAIL PROTECTED]
@400000003b8d3eab1605795c status: local 1/10 remote 0/20
@400000003b8d3eab1c72b124 new msg 772
@400000003b8d3eab1c736ca4 info msg 772: bytes 862 from <[EMAIL PROTECTED]> qp 32613
uid 511
@400000003b8d3eab1ce2c0a4 starting delivery 553: msg 772 to local dcn-bounce-log
@sector0.net
@400000003b8d3eab1ce7aa74 status: local 2/10 remote 0/20
@400000003b8d3eab1cee557c delivery 552: success: did_0+1+0/qp_32613/
@400000003b8d3eab1cfe10d4 status: local 1/10 remote 0/20
@400000003b8d3eab1d0855bc end msg 282
@400000003b8d3eab20f0af94 delivery 553: success: did_1+0+0/
@400000003b8d3eab2102571c status: local 0/10 remote 0/20
@400000003b8d3eab210be854 end msg 772
At @400000003b8d3eab1ce2c0a4 we see a local delivery to dcn-bounce-log.
I confirmed ~dcn/Mail/bounce-log contained a message addressed to
[EMAIL PROTECTED] and deleted the message to start with an empty mbox.
Now, if I uncomment |bouncesaying, ~alias/.qmail-default contains:
&dcn-bounce-log
|bouncesaying "unknown user"
I would expect the same functionality as above PLUS a bounce to
[EMAIL PROTECTED] The log:
@400000003b8d3ff022304414 info msg 728: bytes 760 from <[EMAIL PROTECTED]> qp 32640
uid 512
@400000003b8d3ff02361caec starting delivery 555: msg 728 to local [EMAIL PROTECTED]
@400000003b8d3ff023624bd4 status: local 1/10 remote 0/20
@400000003b8d3ff031a2719c delivery 555: failure: unknown_user/
@400000003b8d3ff031a2fe3c status: local 0/10 remote 0/20
@400000003b8d3ff032c598c4 bounce msg 728 qp 32644
@400000003b8d3ff032d0db94 end msg 728
@400000003b8d3ff032f5d46c new msg 774
@400000003b8d3ff032fd42c4 info msg 774: bytes 1258 from <> qp 32644 uid 517
@400000003b8d3ff0348a571c starting delivery 556: msg 774 to remote [EMAIL PROTECTED]
@400000003b8d3ff0348f3534 status: local 0/10 remote 1/20
@400000003b8d3ff121f732b4 delivery 556: success:
207.69.200.110_accepted_message./Remote_host_said:_250_PAA01502_Message_accepted_for_delivery/
@400000003b8d3ff1220b9d44 status: local 0/10 remote 0/20
@400000003b8d3ff12214f7cc end msg 774
It appears |bouncesaying executes at @400000003b8d3ff031a2719c and is
returned to [EMAIL PROTECTED] at @400000003b8d3ff0348a571c. There's no
mention of dcn-bounce-log. I confirmed nothing gets written to
~dcn/Mail/bounce-log.
> 2) ls -lR ~alias/Unknown
~alias 56# ls -lR ~dcn/Mail/bounce-log
-rw------- 1 dcn dcn 0 Aug 29 14:12 /home/dcn/Mail/bounce-log
> 3) The *complete* qmail-send logs for a delivery to an unknown
> address.
Please see above for the 2 different scenarios, one for a commented
|bouncesaying and one for non-commented.
Now, let's try using a Maildir ~dcn/Mail/bounce-log/.
~alias/.qmail-default contains:
&dcn-bounce-log
#|bouncesaying "unknown user"
Again, I'm commenting |bouncesaying initially.
~dcn/.qmail-bounce-log contains:
./Mail/bounce-log/
The Maildir looks like:
~alias 65# ls -lR ~dcn/Mail/bounce-log
/home/dcn/Mail/bounce-log:
total 1
drwx------ 2 dcn dcn 35 Aug 29 14:34 cur
drwx------ 2 dcn dcn 35 Aug 29 14:34 new
drwx------ 2 dcn dcn 35 Aug 29 14:34 tmp
/home/dcn/Mail/bounce-log/cur:
total 0
/home/dcn/Mail/bounce-log/new:
total 0
/home/dcn/Mail/bounce-log/tmp:
total 0
[EMAIL PROTECTED] sends a mail to [EMAIL PROTECTED]:
@400000003b8d44352d00977c info msg 728: bytes 761 from <[EMAIL PROTECTED]> qp 32743
uid 512
@400000003b8d44352db846ec starting delivery 562: msg 728 to local [EMAIL PROTECTED]
@400000003b8d44352dbda5ec status: local 1/10 remote 0/20
@400000003b8d443536306214 new msg 772
@400000003b8d443536400dcc info msg 772: bytes 863 from <[EMAIL PROTECTED]> qp 32746
uid 511
@400000003b8d443536eb2e64 starting delivery 563: msg 772 to local
[EMAIL PROTECTED]
@400000003b8d443536f06a3c status: local 2/10 remote 0/20
@400000003b8d443536f74424 delivery 562: success: did_0+1+0/qp_32746/
@400000003b8d4435370699ec status: local 1/10 remote 0/20
@400000003b8d44353715e3fc end msg 728
@400000003b8d44353b22159c delivery 563: success: did_1+0+0/
@400000003b8d44353b339614 status: local 0/10 remote 0/20
@400000003b8d44353b3da44c end msg 772
~dcn/Mail/bounce-log/ now contains:
~alias 68# ls -lR ~dcn/Mail/bounce-log/
/home/dcn/Mail/bounce-log/:
total 8
drwx------ 2 dcn dcn 35 Aug 29 14:34 cur
drwx------ 2 dcn dcn 74 Aug 29 14:36 new
drwx------ 2 dcn dcn 35 Aug 29 14:36 tmp
/home/dcn/Mail/bounce-log/cur:
total 0
/home/dcn/Mail/bounce-log/new:
total 4
-rw------- 1 dcn dcn 938 Aug 29 14:36 999113771.32749.mercury
/home/dcn/Mail/bounce-log/tmp:
total 0
I confirmed that this message is as expected then deleted it to have an
empty Maildir.
Now let's uncomment |bouncesaying.
~alias/.qmail-default contains:
&dcn-bounce-log
|bouncesaying "unknown user"
~dcn/.qmail-bounce-log contains:
./Mail/bounce-log/
[EMAIL PROTECTED] sends a mail to [EMAIL PROTECTED]:
@400000003b8d45153054f684 info msg 161: bytes 759 from <[EMAIL PROTECTED]> qp 317 uid
512
@400000003b8d451530cc8bcc starting delivery 566: msg 161 to local [EMAIL PROTECTED]
@400000003b8d451530cd04e4 status: local 1/10 remote 0/20
@400000003b8d45160335ffa4 delivery 566: failure: unknown_user/
@400000003b8d45160336808c status: local 0/10 remote 0/20
@400000003b8d45160459da7c bounce msg 161 qp 321
@400000003b8d4516046530d4 end msg 161
@400000003b8d45160487f72c new msg 774
@400000003b8d4516048f713c info msg 774: bytes 1255 from <> qp 321 uid 517
@400000003b8d4516051ad0ec starting delivery 567: msg 774 to remote [EMAIL PROTECTED]
@400000003b8d4516051fc674 status: local 0/10 remote 1/20
@400000003b8d451639563af4 delivery 567: success:
207.69.200.148_accepted_message./Remote_host_said:_250_PAA21964_Message_accepted_for_delivery/
@400000003b8d451639695594 status: local 0/10 remote 0/20
@400000003b8d45163972525c end msg 774
Again, we fail the delivery (@400000003b8d45160335ffa4) and return to
sender (@400000003b8d4516051ad0ec). Nothing was written to
~dcn/Mail/bounce-log/:
~alias 76# ls -lR ~dcn/Mail/bounce-log/
/home/dcn/Mail/bounce-log/:
total 8
drwx------ 2 dcn dcn 35 Aug 29 14:34 cur
drwx------ 2 dcn dcn 35 Aug 29 14:54 new
drwx------ 2 dcn dcn 35 Aug 29 14:36 tmp
/home/dcn/Mail/bounce-log/cur:
total 0
/home/dcn/Mail/bounce-log/new:
total 0
/home/dcn/Mail/bounce-log/tmp:
total 0
It appears that .qmail-default fails to deliver to a mbox or maildir if
|bouncesaying is present. If |bouncesaying is commented, the delivery
occurs.
I also tried swapping the order in .qmail-default, having |bouncesaying
before &dcn-bounce-log. Same results. Does .qmail-default perhaps execute
all | lines before & lines?
> Don't interpret the logs for me. Post them.
Thanks much for your help!