Go to main content

Managing sendmail Services in Oracle® Solaris 11.4

Exit Print View

Updated: November 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 contents of the /usr/bin directory is used for mail services:

mail

A user agent.

mailq

A program that lists the content of the mail queue.

mailstats

A program that is used to read mail statistics that are stored in the /etc/mail/statistics file (if present).

mailx

A user agent.

mconnect

A program that connects to the mailer for address verification and debugging.

praliases

A command to "uncompile" the alias database. For more information, see the praliases(1) man page.

rmail

A symbolic link to the /usr/bin/mail command that is often used to permit only the sending of mail.

vacation

A command to set up an automatic reply to mail.

Contents of the /etc/mail Directory

The contents of the /etc/mail directory are:

Mail.rc

Default settings for the mailx user agent.

aliases

Mail-forwarding information.

aliases.db

Default binary form of mail-forwarding information that is created by running newaliases.

aliases.dir

Binary form of mail-forwarding information that is created by running newaliases. Is not used by default.

aliases.pag

Binary form of mail-forwarding information that is created by running newaliases. Is not used by default.

mailx.rc

Default settings for the mailx user agent.

main.cf

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

List of all domains for which relaying is allowed. By default, relaying is allowed only for the local domain.

sendmail.cf

Configuration file for mail routing.

submit.cf

New configuration file for the mail submission program. For more information, see submit.cf Configuration File in Version 8.12 of sendmail.

local-host-names

Optional file that you create if the number of aliases for the mail host is too long.

helpfile

Help file that is used by the SMTP HELP command.

sendmail.pid

File that lists the PID of the listening daemon and is present in /system/volatile.

statistics

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 from the sample configuration file for subsidiary systems. Points to sendmail.cf and is provided for backward compatibility. This file is not needed in version 8.13 of sendmail.

trusted-users

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 was 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 contents of the cf subdirectory are as follows:

README

Describes the configuration files.

cf/main.cf

Points to cf/sendmail.cf. This file used to be the main configuration file.

cf/main.mc

Points to cf/sendmail.mc. This file used to create the main configuration file.

cf/Makefile

File that provides rules for building new configuration files.

cf/submit.cf

Configuration file for the mail submission program, which is used to submit messages.

cf/submit.mc

File that is used to build the submit.cf file. This file defines m4 macros for the mail submission program.

cf/sendmail.cf

Main configuration file for sendmail.

cf/sendmail.mc

File that contains the m4 macros that are used to generate the sendmail.cf file.

cf/subsidiary.cf

Symbolic link that points 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 that points to to cf/sendmail.mc. This file used to contain the m4 macros that were used to generate the subsidiary.cf file.

domain

Directory that provides site-dependent subdomain descriptions.

domain/generic.m4

Generic domain file from Berkeley Software Distribution.

domain/solaris-antispam.m4

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

Default domain file that makes the current version of sendmail function like the previous versions of sendmail by making a few changes.

feature

Directory that 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 that contains site-independent include files.

mailer

Directory that contains definitions of mailers, which include local, smtp, and uucp.

ostype

Directory that contains descriptions of various OS environments.

ostype/solaris2.m4

File that defines the default local mailer as mail.local.

ostype/solaris2.ml.m4

File that defines the default local mailer as mail.local.

ostype/solaris2.pre5.m4

File that defines the local mailer as mail.

ostype/solaris8.m4

File that 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 that 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 files and symbolic link in the /usr/lib directory are used for mail services:

mail.local

Mailer that delivers mail to mailboxes.

sendmail

Routing program, also known as the mail transfer agent.

smrsh

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(8) man page. To enable this program, include the m4 command, FEATURE(`smrsh') in your mc file.

mail

Symbolic link. Points to the/etc/mail/cf directory. For more information, see Contents of the /etc/mail/cf Directory.