>In order that I have valid return mail addresses, I'd like to re-write
>the domain in all outgoing mail from my home network so
>"[EMAIL PROTECTED]" and "[EMAIL PROTECTED]" become
>"[EMAIL PROTECTED]".
In addition to what others have mentioned, I discovered that using
Emacs to send email doesn't obey QMAILSHOST and such, because, apparently
to work around some (old?) sendmail bug, Emacs calls sendmail with
the `-f USER' option. (If you've installed qmail, /usr/lib/sendmail
is a link to qmail's version of that mail injector -- I assume it
ends up calling qmail-inject.)
I didn't know offhand how to change Emacs' behavior (don't see the
elisp code on my system, probably on a CD-ROM somewhere).
What I did instead was put this script into /usr/sbin/sendmail instead
of the link that was there, and made /usr/lib/sendmail a symbolic link
to /usr/sbin/sendmail:
--------
#!/bin/bash
if [ x$2 = x-f ]
then
/var/qmail/bin/sendmail $1 $4 $5 $6 $7 $8 $9
else
/var/qmail/bin/sendmail $*
fi
exit $?
--------
After "chmod 755 /usr/bin/sendmail", sending email from within Emacs
works fine -- the envelope sender address ("Return-Path:") is set
according to QMAILSHOST, QMAILSUSER, whatever.
This was important for me because my ISP's SMTP rejects email sent
from an unrecognized host with "451 Domain must resolve".
tq vm, (burley)