- Community Home
- >
- Servers and Operating Systems
- >
- Operating System - HP-UX
- >
- General
- >
- removing hostname from sendmail
-
- Forums
-
- Advancing Life & Work
- Advantage EX
- Alliances
- Around the Storage Block
- HPE Ezmeral: Uncut
- OEM Solutions
- Servers & Systems: The Right Compute
- Tech Insights
- The Cloud Experience Everywhere
- HPE Blog, Austria, Germany & Switzerland
- Blog HPE, France
- HPE Blog, Italy
- HPE Blog, Japan
- HPE Blog, Middle East
- HPE Blog, Russia
- HPE Blog, Saudi Arabia
- HPE Blog, South Africa
- HPE Blog, UK & Ireland
-
Blogs
- Advancing Life & Work
- Advantage EX
- Alliances
- Around the Storage Block
- HPE Blog, Latin America
- HPE Blog, Middle East
- HPE Blog, Saudi Arabia
- HPE Blog, South Africa
- HPE Blog, UK & Ireland
- HPE Ezmeral: Uncut
- OEM Solutions
- Servers & Systems: The Right Compute
- Tech Insights
- The Cloud Experience Everywhere
-
Information
- Community
- Welcome
- Getting Started
- FAQ
- Ranking Overview
- Rules of Participation
- Tips and Tricks
- Resources
- Announcements
- Email us
- Feedback
- Information Libraries
- Integrated Systems
- Networking
- Servers
- Storage
- Other HPE Sites
- Support Center
- Aruba Airheads Community
- Enterprise.nxt
- HPE Dev Community
- Cloud28+ Community
- Marketplace
-
Forums
-
Blogs
-
Information
-
English
- 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
- Email to a Friend
- 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
- Email to a Friend
- 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
- Email to a Friend
- 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.
Hewlett Packard Enterprise International
- Communities
- HPE Blogs and Forum
© Copyright 2021 Hewlett Packard Enterprise Development LP