BladeSystem Forums Have Moved here
To make BladeSystem information easier to find, we have moved the BladeSystem forums here, to Servers and Operating Systems.
Messaging
Showing results for 
Search instead for 
Do you mean 

removing hostname from sendmail

Valued Contributor

removing hostname from sendmail

[ Edited ]

Hello Everyone,

 

my emails show up as being sent from tim@iusghp5.ttksg.com   I need them to be tim@ttksg.com.

 

Does anyone know how to remove the hostname "iusghp5" from the address.

 

I have read through a ton of forum threads and I still cannot figure it out. I tried to set the "DM" paramater in sendmail.cf and that doesn't seem to help.

 

 

Any help would be greatly appreciated!!

 

Tim

 

 

 P.S.This thread has been moved from HP-UX>System Administration to HP-UX > messaging- HP Forums Moderator

2 REPLIES
Honored Contributor

Re: removing hostname from sendmail

This is called masquerading and DM (plus C{M}) can accomplish this. Also, mailx can be used by setting the -r option.

 

For DM and C{M} in sendmail.cf, it would look like this:

 

DMttksg.com

C{M}ttksg.com

 

Note that there are no spaces.

Using mailx, you can test masquerading like this:

 

mailx -r tim@ttksg.com -s testing123 tim@ttksg.com < /etc/issue

 

But with mailx, you can specify any email address.

 

mailx -r timmy@hotmail.com -s testing123 tim@ttksg.com < /etc/issue

Highlighted
Acclaimed Contributor

Re: removing hostname from sendmail

[ Edited ]

>mailx can be used by setting the -r option.

 

Unfortunately when you use -r, you can't use any of the useful tilde commands.