- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Sendmail and service switch
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
04-30-2001 04:01 AM
04-30-2001 04:01 AM
Sendmail and service switch
DNS is running. I can attest to personal experience on this as well.
Does any one have a fix for sendmail that will cause it
to fall back on the host file if DNS is unavailable or gives
a host unknown message?
Does any one have exp on the sendmail specific service switch file under HP-UX? All I have seen are warnings not to use it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-30-2001 07:21 AM
04-30-2001 07:21 AM
Re: Sendmail and service switch
set:
hosts: dns [NOTFOUND=continue] files
Is it?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-30-2001 07:47 AM
04-30-2001 07:47 AM
Re: Sendmail and service switch
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-01-2001 04:08 AM
05-01-2001 04:08 AM
Re: Sendmail and service switch
The doc says if nsswitch.conf is set for:
hosts: files [NOTFOUND=continue UNAVAIL=continue TRYAGAIN=continue] dns
NOTE: only DNS will be utilized for sendmail lookups (/etc/hosts will not be consulted).
Its a quote! and I can tell you it is true!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-01-2001 11:40 AM
05-01-2001 11:40 AM
Re: Sendmail and service switch
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-01-2001 11:48 AM
05-01-2001 11:48 AM
Re: Sendmail and service switch
I can set the relay through configmail on the Irix box, which may not be available on your version.
http://www.sendmail.org/faq/section3.html#3.22
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-01-2001 11:52 AM
05-01-2001 11:52 AM
Re: Sendmail and service switch
2.5The Service Switch
The implementation of certain system services such as host and user name lookup is controlled by the service switch. If
the host operating system supports such a switch sendmail will use the native version. Ultrix, Solaris, and DEC OSF/1 are
examples of such systems.
If the underlying operating system does not support a service switch (e.g., SunOS, HP-UX, BSD) then sendmail will
provide a stub implementation. The ServiceSwitchFile option points to the name of a file that has the service definitions Each
line has the name of a service and the possible implementations of that service. For example, the file:
hosts dns files nis
aliases files nis
will ask sendmail to look for hosts in the Domain Name System first. If the requested host name is not found, it tries local
files, and if that fails it tries NIS. Similarly, when looking for aliases it will try the local files first followed by NIS.
Service switches are not completely integrated. For example, despite the fact that the host entry listed in the above
example specifies to look in NIS, on SunOS this won't happen because the system implementation of gethostbyname(3)
doesn't understand this. If there is enough demand sendmail may reimplement gethostbyname(3), gethostbyaddr(3),
getpwent(3), and the other system routines that would be necessary to make this work seamlessly.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-01-2001 11:53 AM
05-01-2001 11:53 AM
Re: Sendmail and service switch
Try to use
/etc/mail/service.switch
file. Details you'll find by
man service.switch
Do not forget to edit sendmail.cf file.
Hope this helps.
Rgds.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-01-2001 11:57 AM
05-01-2001 11:57 AM
Re: Sendmail and service switch
# service switch file (ignored on HP-UX, Solaris, Ultrix, OSF/1, others)
#O ServiceSwitchFile=/etc/mail/service.switch
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-01-2001 12:22 PM
05-01-2001 12:22 PM
Re: Sendmail and service switch
Kevin is right. I've overlooked this.
Sorry.
Rgds.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-07-2001 09:49 AM
05-07-2001 09:49 AM
Re: Sendmail and service switch
Quote:
It is not the expected behaviour of Sendmail to mix MX record lookups with non-MX record lookups. As per RFC 1123, Section 5.3.5, a sender-SMTP MUST support the MX record scheme. (ie if dns is specified in /etc/nsswitch.conf in whatever order, sendmail MUST do a MX record lookup for the destination host). The latest internet RFC's define that DNS should be used whenever possible for host lookup. HP's Sendmail wants to be as close as possible to the internet wide agreed standards.
end quote: