On Tue, 28 Aug 2001, Dave Sill wrote:
> ><[EMAIL PROTECTED]>:
> >unknown user
> >
> >instead of
> >
> ><[EMAIL PROTECTED]>:
> >unknown user
>
> Forgot about that. Actually, in this case it should be safe to put all
> three deliveries in .qmail-default:
I think it would be less confusing if qmail reported the attempted address
instead of "unknown-bounce".
>
> |fastforward -p alias.cdb
> ./Unknown/
> |bouncesaying "unknown user"
I tried this (except for fastforward, which I don't use). The mail just
bounces (with the attempted address and not "unknown-bounce", which is what
I want) without getting written to Unknown.
> > The dot-qmail man page says each line is a delivery instruction
> > followed in turn.
> ERROR HANDLING
> If a delivery instruction fails, qmail-local stops immedi�
> ately and reports failure. qmail-local handles forwarding
> after all other instructions, so any error in another type
> of delivery will prevent all forwarding.
This is what I observed with all 3 lines in .qmail-default.
A. Nothing gets written to Unknown.
B. The sender gets a bounce notice with the attempted address.
This doesn't seem to fit:
C. .qmail-default follows each instruction in turn.
D. If a delivery instruction fails, qmail-local stops immediately and
reports failure.
Because:
If nothing was written to Unknown, then A must have failed. The log file
does not even mention Unknown so I don't know if it actually passed or
failed. The fact that nothing was written to Unknown leads me to believe
that it indeed failed. Here's where it gets strange: If C is true, then B
should happen. If D is true, then B should not happen. The reality: B
happened. This still doesn't explain why A did not happen (I want it to
write to Unknown).
> You mean it appears to skip ./Unknown/, right? What Do The Logs Say? (tm)
The logs make no mention of a write attempt to Unknown. I do see
bouncesaying.
Now, if I use 3 files as you initially suggested it almost works:
.qmail-default contains
&unknown-log
&unknown-bounce
.qmail-unknown-log contains
./Unknown/
.qmail-unknown-bounce contains
|bouncesaying "unknown user"
Then I do get a write to Unknown AND a bounce, but with
"[EMAIL PROTECTED]" as the failed address, not the attempted
address "[EMAIL PROTECTED]" in the bounce message.
--+-_-++_+--+--/>:<:/\/-+-_-++_--++-+-_--_++--+_--++-+-_++--_++--
Undocumented opcode #247:
DCAD Dump Core And Die
mailto : dcn @ sector0 .net | http :// sector0 .net / dcn/
Repeal the Digital Millennium Copyright Act! http://anti-dmca.org
Adobe, EFF call for Sklyarov release! http://freesklyarov.org