Go to main content

Managing sendmail Services in Oracle® Solaris 11.3

Exit Print View

Updated: April 2020
 
 

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.

Name
Type
Description
mail
File
A user agent.
mailcompat
File
A filter to store mail in SunOS 4.1 mailbox format.
mailq
File
A program that lists the content of the mail queue.
mailstats
File
A program that is used to read mail statistics that are stored in the /etc/mail/statistics file (if present).
mailx
File
A user agent.
mconnect
File
A program that connects to the mailer for address verification and debugging.
praliases
File
A command to "uncompile" the alias database. For more information, see the praliases(1) man page.
rmail
Symbolic Link
A symbolic link to the /usr/bin/mail command that is often used to permit only the sending of mail.
vacation
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.

Name
Type
Description
Mail.rc
File
Default settings for the mailx user agent.
aliases
File
Mail-forwarding information.
aliases.db
File
Default binary form of mail-forwarding information that is created by running newaliases.
aliases.dir
File
Binary form of mail-forwarding information that is created by running newaliases. Is not used by default starting with the Solaris 9 release.
aliases.pag
File
Binary form of mail-forwarding information that is created by running newaliases. Is not used by default starting with the Solaris 9 release.
mailx.rc
File
Default settings for the mailx user agent.
main.cf
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.
relay-domains
File
List of all domains for which relaying is allowed. By default, relaying is allowed only for the local domain.
sendmail.cf
File
Configuration file for mail routing.
submit.cf
File
New configuration file for the mail submission program. For more information, see submit.cf Configuration File From Version 8.12 of sendmail.
local-host-names
File
Optional file that you create if the number of aliases for the mail host is too long.
helpfile
File
Help file that is used by the SMTP HELP command.
sendmail.pid
File
File that lists the PID of the listening daemon and is present in /system/volatile.
statistics
File
The sendmail program statistics file. The sendmail program logs the amount of traffic through each mailer. Previously, this file was called sendmail.st.
subsidiary.cf
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.
trusted-users
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.

Name
Type
Description
README
File
Describes the configuration files.
cf/main.cf
Symbolic Link
The file name is linked to cf/sendmail.cf. The file used to be the main configuration file.
cf/main.mc
Symbolic Link
The file name is linked to cf/sendmail.mc. The file was used to create the main configuration file.
cf/Makefile
File
Provides rules for building new configuration files.
cf/submit.cf
File
The configuration file for the mail submission program, which is used to submit messages.
cf/submit.mc
File
The file used to build the submit.cf file. The file defines m4 macros for the mail submission program.
cf/sendmail.cf
File
The main configuration file for sendmail.
cf/sendmail.mc
File
Contains the m4 macros that are used to generate the sendmail.cf file.
cf/subsidiary.cf
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.
cf/subsidiary.mc
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.
domain
Directory
Provides site-dependent subdomain descriptions.
domain/generic.m4
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.
feature
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.
m4
Directory
Contains site-independent include files.
mailer
Directory
Contains definitions of mailers, which include local, smtp, and uucp.
ostype
Directory
Describes various OS environments.
ostype/solaris2.m4
File
Defines the default local mailer as mail.local.
ostype/solaris2.ml.m4
File
Defines the default local mailer as mail.local.
ostype/solaris2.pre5.m4
File
Defines the local mailer as mail.
ostype/solaris8.m4
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.
ostype/solaris8.m4
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.

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. 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
A symbolic link pointing to the/etc/mail/cf directory. For more information, see Contents of the /etc/mail/cf Directory.