Online Expert Day - HPE Data Storage - Live Now
April 24/25 - Online Expert Day - HPE Data Storage - Live Now
Read more
System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

Sendmail query ( the senders name)

SOLVED
Go to solution
raiden
Regular Advisor

Sendmail query ( the senders name)

Hi am using mutt to send mails. But when the mail is sent the receivers receives it as username@hostname.xyz.com

Now I dont want the hostname to be displayed , I want it to be like
username@xyz.com.

Which file needs to be modified so that receiver receives the mail in that format?? I mean he should see the sender name as username@xyz.com
4 REPLIES
Michal Kapalka (mikap)
Honored Contributor
Solution

Re: Sendmail query ( the senders name)

Hakki Aydin Ucar
Honored Contributor

Re: Sendmail query ( the senders name)

Hi

echo test |mailx -s "Subject whatever you write.." â r â from addressâ "to address"
Hakki Aydin Ucar
Honored Contributor

Re: Sendmail query ( the senders name)

Sorry for typo due to copy-paste (why this happening here ? I do not know ??)

Hi

echo test |mailx -s "Subject whatever you write.." -r "from address" "to address"

And besids, mailx uses sendmail.
Dennis Handly
Acclaimed Contributor

Re: Sendmail query ( the senders name)

>I don't want the hostname to be displayed, I want it to be like username@xyz.com.

You need to masquerade with the DM macro in sendmail.cf.