System Administration Guide: Resource Management and Network Services

Contents of the /usr/lib Directory

Table 26-9 shows the contents of the /usr/lib directory, which is used for mail services.

Table 26-9 Contents of the /usr/lib Directory

Name 

Type 

Description 

mail.local

File 

Mailer that delivers mail to mailboxes. 

sendmail

File 

Routing program, also known as the mail transfer agent. 

smrsh

File 

Shell program (sendmail restricted shell) that uses the "|program" syntax of sendmail to restrict programs that sendmail can run to those programs listed in the /var/adm/sm.bin directory. Refer to the smrsh(1M) man page for recommendations on what to include in /var/adm/sm.bin. To enable, include this m4 command, FEATURE(`smrsh'), in your mc file.

Contents of the /usr/lib/mail Directory

Within the /usr/lib directory is a subdirectory, mail, that contains all of the necessary files to build a sendmail.cf file. The contents of mail are shown in Table 26-10.

Table 26-10 Contents of the /usr/lib/mail Directory Used for Mail Services

Name 

Type 

Description 

README

File 

Describes the configuration files. 

cf

Directory 

Provides site-dependent and site-independent descriptions of hosts. 

cf/main.mc

File 

Previously named cf/main-v7sun.mc. Is the main configuration file.

cf/makefile

File 

Provides rules for building new configuration files. 

cf/submit.mc

File 

Is the configuration file for the mail submission program (MSP), which is used to submit messages. 

cf/subsidiary.mc

File 

Previously named cf/subsidiary-v7sun.mc. Is the configuration file for hosts that NFS-mount /var/mail from another host.

domain

Directory 

Provides site-dependent subdomain descriptions. 

domain/generic.m4

File 

Is the generic domain file from Berkeley. 

domain/solaris-antispam.m4

File 

Is the domain file with changes that make sendmail function like previous Solaris versions. However, relaying is disabled completely, sender addresses with no host name are rejected, and unresolvable domains are rejected.

domain/solaris-generic.m4

File 

Is the default domain file with changes that make sendmail function like previous Solaris versions.

feature

Directory 

Contains definitions of specific features for particular hosts (see README for a full description of the features).

m4

Directory 

Contains site-independent include files. 

mailer

Directory 

Contains definitions of mailers, which include local, smtp, and uucp.

ostype

Directory 

Describes various operating system environments. 

ostype/solaris2.m4

File 

Defines default local mailer as mail.local.

ostype/solaris2.ml.m4

File 

Defines default local mailer as mail.local.

ostype/solaris2.pre5.m4

File 

Defines local mailer as mail.

ostype/solaris8.m4

File 

Defines local mailer as mail.local (in LMTP mode), enables IPv6, specifies /var/run as the directory for the sendmail.pid file.

sh

Directory 

Contains shell scripts that are used by the m4 build process and migration aids.

sh/check-permissions

File 

Checks permissions of :include: aliases and .forward files and their parent directory path for correct permissions.

sh/check-hostname

File 

Verifies that sendmail is able to determine the fully qualified host name.