- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- hostname is appended to domain with email
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
Forums
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
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
03-10-2006 04:10 AM
03-10-2006 04:10 AM
I have various monitoring scripts that send emails for events.
When the account "alert" sends email from those scripts it appends "python" to the domain so the address become alert@python.chicomhos.org
How do I prevent the server name from being included so the email just says alert@chicomhos.org?
My default domain is set correctly in /etc/resolv.conf.
One of my vendors cannot receive these emails because it cannot resolve the (nonexistent) domain of python.chicomhos.org
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-10-2006 04:17 AM
03-10-2006 04:17 AM
SolutionYou will need to do masquerading, with this all mails will go thru the server as chicomhos.org
Check this out
http://www.sendmail.org/m4/masquerading.html
Cheers
Vipul
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-10-2006 04:17 AM
03-10-2006 04:17 AM
Re: hostname is appended to domain with email
You can either use macros DM in /etc/mail/sendmail.cf or run
cat message| sendmail -f alert@chicomhos.org myvendor@someth.com
HTH
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-10-2006 04:43 AM
03-10-2006 04:43 AM
Re: hostname is appended to domain with email
Edit the file /etc/rc.config.d/mailservs:
SENDMAIL_SERVER=0
SENDMAIL_SERVER_NAME="domain.com"
Or change /etc/mail/sendmail.cf
# my official domain name
# ... define this only if sendmail cannot automatically determine your domain
#Dj$w.Foo.COM
Djdomain.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-13-2006 02:20 AM
03-13-2006 02:20 AM
Re: hostname is appended to domain with email
We kept encountering more and more companies that would not deliver our pages without being able to resolve the 'from' domain. (They were being adddressed exactly as Terrence described).
Scott
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-13-2006 02:30 AM
03-13-2006 02:30 AM
Re: hostname is appended to domain with email
I've had that very problem of not being able to send to beeper companies. Please clarify, you posted that we'd probably "have to make this change." Which of the "these changes" above do we have to make?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-13-2006 02:39 AM
03-13-2006 02:39 AM
Re: hostname is appended to domain with email
This is done via /etc/mail/sendmail.cf. Here is the piece I edited.
# who I masquerade as (null for no masquerading) (see also $=M)
DMchicomhos.org
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-13-2006 02:42 AM
03-13-2006 02:42 AM
Re: hostname is appended to domain with email
Here is the thread response to my questions:
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=685447