1833760 Members
2558 Online
110063 Solutions
New Discussion

Re: sendmail

 
Rpger Tavener
Occasional Advisor

sendmail

Does anyone know if you can configure sendmail to send messages such that the sender's name can be replaced with another name, for example , the name of the server? I know how to masquerade the domain but not the sender's name.. Thanks
When the only tool you own is a hammer, every problem looks like a nail!
3 REPLIES 3
Maureen Gunkel
Trusted Contributor

Re: sendmail

J.
If you use a temporary file to send your mail, you can include the following line:
'From: ' `hostname` >> tempfilename
and then when you send, sendmail < tempfilename
It will go to whomever, and show as being sent by the hostname of your server.
Hope this helps,
Mo
No matter where you go, there you are.
Jimmy Rogers
Frequent Advisor

Re: sendmail

I do this by editing the "real name" field in /etc/passwd. I manage 17 servers, so all my root accounts have a real name of
-root, so I can tell at a glance which server is mailing me. This can be done with any user.

Good Luck!
J.R.
Rita C Workman
Honored Contributor

Re: sendmail

Yes you can do this. What your asking is to simply change the FROM address.

Here's the thread on this:
http://forums.itrc.hp.com/cm/QuestionAnswer/1,1150,0xaaf16c96588ad4118fef0090279cd0f9,00.html

Regards,
Rita