  | | | Changing sender address within mail | Changing sender address within mail 2007-07-05 - By Jussi Silvennoinen
Back > I have a shell script which checks disk space. I the use mail > command to send a mail messages to myself and other users to notify the > status of disk space. > > When I receive the mail message notification it has my email address > as the sent address but I wish to change the sender address > to info@(protected) > > 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?
Use the sendmail-binary directly but do add all the required (by RFC's) headers yourself.
./foo.sh | sendmail -f sender@(protected) recipient@(protected)
--
Jussi
-- Taroon-list mailing list Taroon-list@(protected) https://www.redhat.com/mailman/listinfo/taroon-list
|
|
 |