Files for the mail service are located in three directories: /bin, /etc/mail, and /usr/lib. Users' mailboxes are located in the /var/mail directory. Table 7 lists the mail services programs.
Command or File | Description |
---|---|
$OPENWINHOME/bin/mailtool | MUA. |
.sendmailvars.org_dir | NIS+ version of sendmailvars table. |
/etc/default/sendmail | Store options used to start sendmail. This command is new in the Solaris 8 release. In previous releases, sendmail options were added to the init script. Because you no longer need to edit init scripts to add sendmail options, upgrading systems is easier. See Chapter 2, “Customizing sendmail Configuration Files” for more information. |
/etc/mail/aliases | Mail-forwarding information. |
/etc/mail/main.cf | Sample configuration file for main systems. |
/etc/mail/sendmail.cf | Configuration file for mail routing. |
/etc/mail/sendmail.subsidiary.cf | Sample configuration file for subsidiary systems. |
/etc/mail/sendmailvars | Table that stores macro and class definitions for lookup from sendmail.cf file. |
/usr/bin/mail | MUA. |
/usr/bin/mailq | Symbolic link to /usr/lib/sendmail that is used to print the headers of messages in the mail queue. |
/usr/bin/mailstats | File that stores mail statistics generated by sendmail into /etc/mail/sendmail.st (if present). |
/usr/bin/mailx | MUA. |
/usr/bin/mconnect | Connect to the mailer for address verification and debugging. |
/usr/bin/newaliases | Symbolic link to /usr/lib/sendmail that is used to rebuild the database for the mail aliases file. |
/usr/bin/praliases | Display aliases in the /etc/mail/aliases file as key:value pairs. You can also specify an argument on the command line to display a matching key:value pair. |
/usr/dt/bin/dtmail | CDE window-based MUA. |
/usr/dt/bin/dtmaillpr | CDE electronic mail messaged print filter. |
/usr/lib/mail.local | Delivery agent that delivers mail to mailboxes. |
/usr/lib/sendmail | MTA. |
/usr/lib/smrsh | Limit the number of commands that can be used to run the "|program" syntax of sendmail. This freeware sendmail restricted shell is new in the Solaris 8 release. |
/usr/sbin/in.comsat | Mail notification daemon. |
/usr/sbin/syslogd | Daemon that implements the UNIX logging subsystem. sendmail sends logging information to this subsystem. |
NOTE
Sites that used DNS with older releases of Solaris used the /usr/lib/sendmail.mx file to access mail exchange records. In the Solaris 8 release, this functionality is included in sendmail, and the /usr/lib/sendmail.mx file has been removed. You can configure the DNS nameservice with the /etc/nsswitch.conf file.
With sendmail version 8.9.3, you can use the /etc/mail directory to store tables that you activate with various m4 FEATURE macros.
You can create tables such as the following.
/etc/mail/genericstable
/etc/mail/mailertable
/etc/mail/virtusertable
/etc/mail/userdb
For example, to reference the /etc/mail/mailertable map, you include the following line in your .mc file.
FEATURE(`mailertable', `hash -o /etc/mail/mailertable')dnl
See http://www.sendmail.org/m4/cf-readme.txt and Chapter 2, “Customizing sendmail Configuration Files” for more information on the purpose of each of these files.
Table 8 shows the contents of the /usr/lib/mail directory. These subdirectories are used with sendmail version 8.9.3 to customize and “compile” the sendmail configuration file. Refer to Chapter 2, “Customizing sendmail Configuration Files” for more information.
Table 9 shows the contents of the /bin directory that are used for mail services.
Name | Type | Description |
---|---|---|
File | A mail user agent. | |
mailcompat | File | A filter to store mail in SunOS 4.x mailbox format. |
mailq | Link | Link to /usr/lib/sendmail. |
mailstats | File | Mail statistics generated by the /etc/mail/sendmail.st file (if present). |
mailx | File | A mail user agent. |
newaliases | Link | Link to /usr/lib/sendmail that is used to rebuild the database for the mail aliases file. |
Table 10 shows the contents of the /etc/mail directory.
Table 11 shows the mail files in the /usr/lib directory.
Name | Description |
---|---|
mail.local | Mailer that delivers mail to mailboxes. |
sendmail | The routing program, also known as the mail transport agent. |
Spooling directories for delivered mail are located in the /var/mail directory, as shown in Table 12. Mail that has not been delivered is stored in the /var/spool/mqueue directory.
Name | Type | Description |
---|---|---|
mailbox1 | File | Mailboxes for delivered mail. |
mailbox2 | File | Mailboxes for delivered mail. |
mailbox3 | File | Mailboxes for delivered mail. |
18.222.3.255