|
|
HP-UX Reference > Sservice.switch(1M)HP-UX 11i Version 2: December 2007 Update |
|
NAMEservice.switch — indicate lookup sources and fallback mechanism DESCRIPTION/etc/mail/service.switch is a sendmail(1M) service switch similar to /etc/nsswitch.conf (see switch(4)) that indicates the lookup source for host names and aliases. It consists of two lines, one for hosts and one for aliases. The lookup sources are listed after the hosts or aliases name. For hosts, one or more of the following can be listed: files (for /etc/hosts) dns (for Domain Name Service) nis (for NIS) nisplus (for NIS+) For aliases, one or more of the following can be listed: files (for /etc/mail/aliases) nis (for NIS) nisplus (for NIS+) Sample Configurations
Modifying sendmail.cfThe sendmail.cf file must be modified to request the usage of the service.switch file. Otherwise, the default for sendmail.cf is to use DNS for host name lookups, and files for alias lookups. To use NIS, NISPLUS, or files, the following line must be uncommented in sendmail.cf: #O ServiceSwitchFile=/etc/mail/service.switch |
|