- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: removing hostname from sendmail
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-12-2013 11:44 AM - last edited on 01-13-2013 08:23 PM by Cathy_xu
01-12-2013 11:44 AM - last edited on 01-13-2013 08:23 PM by Cathy_xu
removing hostname from sendmail
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
- Tags:
- sendmail
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-12-2013 01:32 PM
01-12-2013 01:32 PM
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
Bill Hassell, sysadmin
- Tags:
- mailx
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-12-2013 03:01 PM - edited 01-14-2013 02:17 AM
01-12-2013 03:01 PM - edited 01-14-2013 02:17 AM
Re: removing hostname from sendmail
>mailx can be used by setting the -r option.
Unfortunately when you use -r, you can't use any of the useful tilde commands.