HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: SENDMAIL
Operating System - HP-UX
1836475
Members
2250
Online
110101
Solutions
Forums
Categories
Company
Local Language
back
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
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- 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
12-18-2006 01:24 AM
12-18-2006 01:24 AM
SENDMAIL
How do I change the destination of an email server on and HP9000 server (hp-ux11.0). I cannot find it in any of the usual comms file, /etc/hosts or in /etc/mail.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-18-2006 01:26 AM
12-18-2006 01:26 AM
Re: SENDMAIL
In /etc/mail/sendmail.cf
Set the DS macro (Smart Relay) to the server you want to route mail to/through.
If sendmail is running, then restart it after making the change.
Rgds...Geoff
Set the DS macro (Smart Relay) to the server you want to route mail to/through.
If sendmail is running, then restart it after making the change.
Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-18-2006 01:29 AM
12-18-2006 01:29 AM
Re: SENDMAIL
You want to modify the sendmail.cf file and change the mail relay (the line that begins with DS). Change that line to your new email server.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-20-2006 07:05 AM
12-20-2006 07:05 AM
Re: SENDMAIL
As pointed out by others, add the DS (Smart Relay) option to /etc/mail/sendmail.cf.
However, a warning, unless your HP-UX system has either no DNS or access to a full internet DNS resolver this won't work.
When sending email to an arbitrary address "someone@domain.com", sendmail will first try to do a DNS resolution on "domain.com" to decide if this is an actual host name or an MX mail record. If this DNS lookup fails then sendmail will queue the message without sending it, regardless of the status of the mail relay. After so many retries, sendmail will give up and never send the message. The only way that I've found to avoid this behavior is to disable DNS lookups in /etc/nsswitch.conf.
I discovered this because our HP servers are behind a firewall and only have access to internal DNS, which consists of servers and DHCP data, and does not resolve arbitrary internet A records or other types of data.
However, a warning, unless your HP-UX system has either no DNS or access to a full internet DNS resolver this won't work.
When sending email to an arbitrary address "someone@domain.com", sendmail will first try to do a DNS resolution on "domain.com" to decide if this is an actual host name or an MX mail record. If this DNS lookup fails then sendmail will queue the message without sending it, regardless of the status of the mail relay. After so many retries, sendmail will give up and never send the message. The only way that I've found to avoid this behavior is to disable DNS lookups in /etc/nsswitch.conf.
I discovered this because our HP servers are behind a firewall and only have access to internal DNS, which consists of servers and DHCP data, and does not resolve arbitrary internet A records or other types of data.
Trust me, I know what I'm doing
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP