palme(_at_)uni-wuppertal(_dot_)de (Hubert Palme) writes:
I suspect procmail of inserting 'Resent-Sender:' resp. 'Sender:'
headers (with an incorrect address in my case) when processing
'! anyone(_at_)anywere(_dot_)de' recipes.
If true: How can I avoid this?
Procmail doesn't, your sendmail (or sendmail-lookalike) may be doing
so. I've never heard of sendmail doing this, so I would suspect that
either sendmail was hacked to do this locally, or it's not really
sendmail but rather smail or something like that. Your local sysadmins
may be able to tell you whether or not this can be disabled. You can
confirm this is the situation by doing something like:
(echo ""; echo "kjdfaskjfd") | /usr/lib/sendmail
palme(_at_)uni-wuppertal(_dot_)de
then examine the headers on the message you get. If there's a Sender:
header, then it's the MTAs fault (and it's broken).
The only workaround I can think of, otherwise, would be to generate a
correct Sender: header before feeding messages into sendmail. Try
replacing
! some(_at_)addresses(_dot_)here
with
| formail -I"Sender: palme(_at_)uni-wuppertal(_dot_)de" | \
$SENDMAIL $SENDMAILFLAGS some(_at_)addresses(_dot_)here
Philip Guenther