RE: Changing sender address within mail

"Collins, Kevin [MindWorks]" <[email protected]> Thu, 5 Jul 2007 09:37:30 -0700
Newsgroups gmane.linux.redhat.release.taroon.general
Message-ID <C7F263FDC0618A4F84F75C2EAC0999634D390F@CHVPKNTXC3M.chvpk.chevrontexaco.net>
You can also use 'sendmail -f user@domain' to set the "from" address,
but its a little more complicated than the mail command. Also, the
actual sender must be root (on most platforms)...

Kevin 

-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of John Haxby
Sent: Thursday, July 05, 2007 5:06 AM
To: Discussion of Red Hat Enterprise Linux 3 (Taroon)
Subject: Re: Changing sender address within mail

d.qureshi-7yFXA2EciJlaa/[email protected] wrote:
> I cannot see an option within the mail command to specify a sender's
address.
>
> Any ideas how I can change the out going sender's address?
>   
I don't know about the mail command, but mutt (which is functionally 
very similar for this purpose) has an environment variable that you cat 
set to specify the From: address -- according to the man page it's EMAIL

and I use it for scripts like yours.

The other technique I used from time to time is simply to talk to port 
25 and construct the entire conversation and then I have complete 
control over who the message is from, well, to within whatever sanitary 
checks the listener on that port makes :-)

jch

--
Taroon-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/taroon-list

--
Taroon-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/taroon-list