Something I am doing on another account is working too easily.
Shouldn't a forwarding action change the envelope sender to the current
user doing the forwarding? Yet I find that it is not. Is it dependent
on the MTA?
I am *not* specifying the envelope sender for the forwarding leg with -f
as I thought I would have to.
Here are the details.
I'm running a mailing list with homebrew procmail routines and shell scripts
on a list member's Linux box. The MTA is qmail. The list's purpose has
expired and it will shut down November 1.
If procmail bounces a message by setting EXITCODE, qmail, unlike sendmail,
sends back the original text, and all filtering recipes are undone. There-
fore I have no control over the returned body or headers and cannot insert
or change anything in them to tell them so. The only way to get the message
across that I've figured out is to forward the message to another alias,
listname-list-has-closed(_at_)dom(_dot_)ain, and have procmail bounce mail for
that
address by setting EXITCODE.
So mail comes in for listname, or listname-request, or
listname-whateversufffix, and it is forwarded to listname-list-has-closed,
and qmail bounces it with an NDN saying that it could not deliver mail to
<listname-list-has-closed(_at_)dom(_dot_)ain> with the headers and text of the
original
message appended. Somehow, when the message is forwarded from the first
alias to listname-list-has-closed, the envelope sender is not changed and
the NDN goes where I want it (to the envelope sender of the original message)
instead of coming to me as the forwarder.
I expected that I'd have to extract the envelope sender from the postmark
line and set that with the MTA's -f option when the message is forwarded
from the first alias to listname-list-has-closed. But I'm not doing that
and it's still working.
What is awry? Normally preserving the envelope sender on forwarding is a bad
thing, and it should point to the forwarder. Here I want an exception, but
the rule is giving it to me automatically.
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail