- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- forcing sendmail to use /etc/hosts to lookup the S...
Operating System - HP-UX
1752268
Members
4576
Online
108786
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
Discussions
Discussions
Forums
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
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
тАО05-30-2001 10:18 PM
тАО05-30-2001 10:18 PM
forcing sendmail to use /etc/hosts to lookup the Smart Relay Host
Dear All
We have a HP-UX 10.20 system with sendmail, configured to use a relay host to deliver all the external mails. This is set by modifing DS entry in sendmail.cf file.
The relay host ip address is available in the
/etc/hosts file and pings as well by name. But when we try to send mails, it gives name server problem. This works fine after installing DNS and adding the relay host entry to DNS.
Can we force sendmail to use /etc/hosts instead of using DNS to lookup for relay host.
I have tried with /etc/nsswitch file also.
Is there any other procedure to make sendmail to deliver all the external mails to a relay host.
We have a HP-UX 10.20 system with sendmail, configured to use a relay host to deliver all the external mails. This is set by modifing DS entry in sendmail.cf file.
The relay host ip address is available in the
/etc/hosts file and pings as well by name. But when we try to send mails, it gives name server problem. This works fine after installing DNS and adding the relay host entry to DNS.
Can we force sendmail to use /etc/hosts instead of using DNS to lookup for relay host.
I have tried with /etc/nsswitch file also.
Is there any other procedure to make sendmail to deliver all the external mails to a relay host.
Be Dynamic
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-30-2001 11:33 PM
тАО05-30-2001 11:33 PM
Re: forcing sendmail to use /etc/hosts to lookup the Smart Relay Host
Try adding this line to your /etc/nsswitch.conf :
hosts: files dns
It works fine here.
hosts: files dns
It works fine here.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-30-2001 11:36 PM
тАО05-30-2001 11:36 PM
Re: forcing sendmail to use /etc/hosts to lookup the Smart Relay Host
Oops.. my last answer works on linux, not hpux... For hpux, you have to tell it to continue if host was not found :
hosts: files [NOTFOUND=continue] dns
hosts: files [NOTFOUND=continue] dns
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-18-2001 10:53 PM
тАО06-18-2001 10:53 PM
Re: forcing sendmail to use /etc/hosts to lookup the Smart Relay Host
To operate sendmail in topologies with /etc/hosts only (without DNS and
without NIS), make the changes listed below.
1. Change/enter the "hosts" entry in the file /etc/nsswitch.conf:
hosts: files
2. In the file /etc/mail/sendmail.cf, uncomment the following options:
O TryNullMXList
Prior to HP-UX 8.x sendmail, sendmail would try to connect to a host directly if there were no MX records for the destination. To revert to this behavior, you must uncomment the option TryNullMXList.
Uncomment and Define:
Dj$w.foo.bar
Replace foo.bar with what would be considered the domain part of your host name. For example:
Dj$w.cup.hp.com
Stop and start sendmail, it should work now
Kurt
without NIS), make the changes listed below.
1. Change/enter the "hosts" entry in the file /etc/nsswitch.conf:
hosts: files
2. In the file /etc/mail/sendmail.cf, uncomment the following options:
O TryNullMXList
Prior to HP-UX 8.x sendmail, sendmail would try to connect to a host directly if there were no MX records for the destination. To revert to this behavior, you must uncomment the option TryNullMXList.
Uncomment and Define:
Dj$w.foo.bar
Replace foo.bar with what would be considered the domain part of your host name. For example:
Dj$w.cup.hp.com
Stop and start sendmail, it should work now
Kurt
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.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP