<SHUDDER>
sendmail.cf
</SHUDDER>
Send out mails how? From a mail client, or from
the command line?
If from a mail client, such as mutt, simply set
your "From: " header (and possibly "Reply-To: "
header) to whatever you want.
If from the command line, I'm not sure if "mail"
(or "mailx") will let you set the "From: " header.
I usually just invoke sendmail directly:
/usr/sbin/sendmail -oi -t <<EOF
From:
myfrom@foofrom.xxx
To:
toaddress@barto.xxx
X-JLF: imnotaspam
Subject: imaspam
Buy a diploma from one of zillions of
non-accredited offshore universities
based on the job you're trying to bluff
your way in to.
Don't hesitate! Dial 800-FAKEIT RIGHT NOW!
62143648253
EOF
Ja, ja. sendmail reads from stdin and you could
just do ^D, but I was thinking more of scripting.
IIRC, sendmail also has a "-f" switch that lets
priviliged users set the "from" that appears
in the "Received: " headers, and I believe the
address specified with "-f" will be used in the
SMTP "MAIL FROM:" command. IOW, "-f" lets you
REALLY fake the originator.
D
* On Wed, Sep 13, 2000 at 11:27:01AM -0700, Don Harrop wrote:
> Hey guys..
>
> When I operate as root and decide to send out some email's I don't
> ever want to have root@ as the reply address. Is the only way to fix this
> to change the sendmail.cf file and have it rewrite all root's to my normal
> user name?
>
> Don