Essential Directories for Mail Services
The directories that are used to manage and administer mail services are:
-
/usr/bin
-
/etc/mail
-
/etc/mail/cf
-
/usr/lib
Contents of the /usr/bin Directory
The following table shows the contents of the /usr/bin directory, which is used for mail services.
|
|
|
|
File
|
A user agent.
|
|
File
|
A filter to store mail in SunOS 4.1 mailbox format.
|
|
File
|
A program that lists the content of the mail queue.
|
|
File
|
A program that is used to read mail statistics that are stored in the /etc/mail/statistics file (if present).
|
|
File
|
A user agent.
|
|
File
|
A program that connects to the mailer for address verification and debugging.
|
|
File
|
A command to "uncompile" the alias database. For more information, see the praliases(1) man page.
|
|
Symbolic Link
|
A symbolic link to the /usr/bin/mail command that is often used to permit only the sending of mail.
|
|
File
|
A command to set up an automatic reply to mail.
|
|
Contents of the /etc/mail Directory
The following table shows the contents of the /etc/mail directory.
|
|
|
|
File
|
Default settings for the mailx user agent.
|
|
File
|
Mail-forwarding information.
|
|
File
|
Default binary form of mail-forwarding information that is created by running newaliases.
|
|
File
|
Binary form of mail-forwarding information that is created by running newaliases. Is not used by default starting with the Solaris 9 release.
|
|
File
|
Binary form of mail-forwarding information that is created by running newaliases. Is not used by default starting with the Solaris 9 release.
|
|
File
|
Default settings for the mailx user agent.
|
|
Symbolic link
|
A symbolic link from the sample configuration file for main systems. The file links to sendmail.cf and is provided for backward compatibility. This file is not needed in version 8.12 or later versions of sendmail.
|
|
File
|
List of all domains for which relaying is allowed. By default, relaying is allowed only for the local domain.
|
|
File
|
Configuration file for mail routing.
|
|
File
|
|
|
File
|
Optional file that you create if the number of aliases for the mail host is too long.
|
|
File
|
Help file that is used by the SMTP HELP command.
|
|
File
|
File that lists the PID of the listening daemon and is present in /system/volatile.
|
|
File
|
The sendmail program statistics file. The sendmail program logs the amount of traffic through each mailer. Previously, this file was called sendmail.st.
|
|
Symbolic link
|
A symbolic link from the sample configuration file for subsidiary systems. The file links to sendmail.cf and is provided for backward compatibility. This file is not needed in version 8.13 of sendmail.
|
|
File
|
File that lists the users (one user per line) who are trusted to perform certain mail operations. By default, only root is in this file. Certain mail operations, when performed by untrusted users, result in the following warning: X-Authentication-Warning: header being added to a message.
|
|
Contents of the /etc/mail/cf Directory
The /etc/mail directory consists of a subdirectory cf containing all the necessary files required to build a sendmail.cf file.
To support a read-only /usr file system, the content of the /usr/lib/mail directory has been moved to the /etc/mail/cf directory in Oracle Solaris 10. Note, however, that the shell scripts /usr/lib/mail/sh/check-hostname and /usr/lib/mail/sh/check-permissions were moved to /usr/sbin directory. For more information, see Additional Directories and Files Used for Mail Services. For backward compatibility, symbolic links point to each file's new location.
The following table shows the content of the cf subdirectory.
|
|
|
|
File
|
Describes the configuration files.
|
|
Symbolic Link
|
The file name is linked to cf/sendmail.cf. The file used to be the main configuration file.
|
|
Symbolic Link
|
The file name is linked to cf/sendmail.mc. The file was used to create the main configuration file.
|
|
File
|
Provides rules for building new configuration files.
|
|
File
|
The configuration file for the mail submission program, which is used to submit messages.
|
|
File
|
The file used to build the submit.cf file. The file defines m4 macros for the mail submission program.
|
|
File
|
The main configuration file for sendmail.
|
|
File
|
Contains the m4 macros that are used to generate the sendmail.cf file.
|
|
Symbolic Link
|
The file name is linked to cf/sendmail.cf. This file used to be the configuration file for hosts that NFS-mount /var/mail from another host.
|
|
Symbolic Link
|
The file name is linked to cf/sendmail.mc. The file used to contain the m4 macros that were used to generate the subsidiary.cf file.
|
|
Directory
|
Provides site-dependent subdomain descriptions.
|
|
File
|
The generic domain file from Berkeley Software Distribution.
|
domain/solaris-antispam.m4
|
File
|
The domain file that makes the current version of sendmail function like the previous versions of sendmail by making a few changes. However, note that relaying is disabled completely. Sender's addresses with no host name and unresolvable domains are rejected.
|
domain/solaris-generic.m4
|
File
|
The default domain file that makes the current version of sendmail function like the previous versions of sendmail by making a few changes.
|
|
Directory
|
Contains definitions of specific features for particular hosts. For a full description of the features, see the README file in the /etc/mail/cf directory.
|
|
Directory
|
Contains site-independent include files.
|
|
Directory
|
Contains definitions of mailers, which include local, smtp, and uucp.
|
|
Directory
|
Describes various OS environments.
|
|
File
|
Defines the default local mailer as mail.local.
|
|
File
|
Defines the default local mailer as mail.local.
|
|
File
|
Defines the local mailer as mail.
|
|
File
|
Defines the local mailer as mail.local (in LMTP mode), enables IPv6, and specifies /var/run as the directory for the sendmail.pid file.
|
|
File
|
Defines the local mailer as mail.local (in LMTP mode), enables IPv6, and specifies /system/volatile as the directory for the sendmail.pid file.
|
|
Contents of the /usr/lib Directory
The following table shows the contents of the /usr/lib directory, which is used for mail services.
|
|
|
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. For more information, see the smrsh(1M) man page. To enable this program, include the m4 command, FEATURE(`smrsh') in your mc file.
|
mail
|
symbolic link
|
|
|