System Administration Guide: Resource Management and Network Services

sendmail Configuration File

A configuration file controls the way that sendmail performs its functions. The configuration file determines the choice of delivery agents, address rewriting rules, and the format of the mail header.

The sendmail program uses the information from the /etc/mail/sendmail.cf file to perform its functions. Each system has a default sendmail.cf file that is installed in the /etc/mail directory. You do not need to edit or change the default configuration file for mail servers or mail clients. The only systems that require a customized configuration file are mail hosts and mail gateways.

The Solaris operating environment provides three default configuration files in the /etc/mail directory.

  1. A configuration file that is named main.cf for the system (or systems) you designate as the mail host or a mail gateway

  2. A configuration file that is named subsidiary.cf, which is a duplicate copy of the default sendmail.cf file

  3. A configuration file that is named submit.cf, which is used to run sendmail in mail submission program mode, instead of daemon mode. For more information, refer to New Configuration File, submit.cf.

The configuration file you use on a system depends on the role of the system in your mail service.

The following list describes some configuration parameters you can change, depending on the requirements of your site.