Sending mail as a differnt user

Tech Guy tek_guy at rediffmail.com
Wed Apr 6 19:18:54 UTC 2005


Hello Everyone,

I have a shell script that does some functions and finally sends the report through the command "mail" in the script itself. The script has to be run as root. The script works fine and we do receive emails with the report.

But it sends the email as root. I want the mail to be sent as a different user ( might not have account on that system) say someuser at someadddress.com
 
I want to know if its possible to change the from address to someuser other than root

Kindly let me know
Thanks
TG
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/redhat-install-list/attachments/20050406/4ae9a8cb/attachment.htm>


More information about the Redhat-install-list mailing list