*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->HP-UX 11i man pages -> service.switch (1m)              
Title
Content
Arch
Section
 

Contents


 service.switch(1M)                                       service.switch(1M)




 NAME    [Toc]    [Back]
      service.switch - indicate lookup sources and fallback mechanism

 SYNOPSIS    [Toc]    [Back]
      /etc/mail/service.switch

 DESCRIPTION    [Toc]    [Back]
      /etc/mail/service.switch is a sendmail(1M) service switch similar to
      /etc/nsswitch.conf (see switch(4)) that indicates the lookup source
      for hostnames 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, nis, or nisplus.  For aliases,
      one or more of the following can be listed: files (for
      /etc/mail/aliases), nis, or nisplus.

    Sample Configurations    [Toc]    [Back]
      1. The default configuration for service.switch is to use dns for
         hostname lookups and the aliases file for aliases. (Note that due
         to a bug, the hostname lookup will never fallback to a file lookup,
         so anything listed after dns will be ignored.)

              hosts     dns files
              aliases   files

      2. To work with a non-dns environment that uses file lookups
         (/etc/hosts), the following service.switch can be used:

              hosts     files
              aliases   files

      3. To work with a NIS environment that does not use DNS, the following
         service.switch can be used:

              hosts     nis files
              aliases   nis files

      4. To work with a NISPLUS environment that does not use DNS, the
         following service.switch can be used:

              hosts     nisplus files
              aliases   nisplus files

    Modifying SENDMAIL.CF    [Toc]    [Back]
      The 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:





 Hewlett-Packard Company            - 1 -   HP-UX 11i Version 2: August 2003






 service.switch(1M)                                       service.switch(1M)




           #O ServiceSwitchFile=/etc/mail/service.switch

 SEE ALSO    [Toc]    [Back]
      sendmail(1M).

 HISTORY    [Toc]    [Back]
      The service.switch file appeared in sendmail V8.


 Hewlett-Packard Company            - 2 -   HP-UX 11i Version 2: August 2003
[ Back ]
      
      
 Similar pages
Name OS Title
RCSsource IRIX directory of RCS sources
BCsource IRIX archive of bc and dc sources
apt-setup Linux add apt download sources
DIFFsource IRIX archive of DIFF sources
rcsfreeze IRIX freeze a configuration of sources checked in under RCS
rcsfreeze OpenBSD freeze a configuration of sources checked in under RCS
rcsfreeze FreeBSD freeze a configuration of sources checked in under RCS
rcsfreeze Tru64 freeze a configuration of sources checked in under RCS
xsetmon IRIX set video output format, sync sources and gamma correction values
apanel IRIX control panel for Audio Hardware: input and output levels, rates, sources and syncs
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service