15.7 Storing Mail

15.8 Mail Administrator's Reference

This section provides a quick reference to the various mail commands, files, and directories.

15.8.1 List of Mail Commands

This list includes commands for using and managing the mail program.

Prints the contents of the mail queue.
Displays statistics about mail traffic.
Builds a new copy of the alias database from the /etc/aliases file.
Routes mail for local or network delivery.
Cleans up the sendmail queue for periodic housekeeping.

15.8.2 List of Mail Files and Directories

This list of files and directories is arranged by function. Using the Mail Program

Enables the user to change the local system defaults for the mail program.
Stores processed mail for the individual user.
/usr/bin/mail, and
Specifies three names linked to the same program. The mail program is one of the user interfaces to the mail system.
Specifies the default mail drop directory. By default, all mail is delivered to the /var/spool/mail/UserName file.
Contains the log file and temporary files associated with the messages in the mail queue. Using the Sendmail Command

The sendmail command.
Links to the /usr/sbin/sendmail. Using mailq is equivalent to using the /usr/sbin/sendmail -bp command.
Links to the /usr/sbin/sendmail file. Using newaliases is equivalent to using the /usr/sbin/sendmail -bi command.
Formats and prints the sendmail statistics as found in the /etc/sendmail.st file, if it exists. The /etc/sendmail.st file is the default, but you can specify an alternative file.
Describes a text version of the aliases file for the sendmail command. You can edit this file to create, modify, or delete aliases for your system.
Contains the sendmail configuration information in text form. Edit the file to change this information.
Contains the processed version of the /etc/sendmail.cf configuration file. This file is created from the /etc/sendmail.cf file when you run the /usr/sbin/sendmail -bz command.
Contains the sendmail National Language Support (NLS) configuration information in text form. Edit the file to change this information.
Specifies a shell file that runs the mail queue and maintains the sendmail log files in the /var/spool/mqueue directory.
Collects statistics about mail traffic. This file does not grow. Use the /usr/sbin/mailstats command to display the contents of this file.
Describes a directory containing the temporary files associated with each message in the queue. The directory can contain the log file.

15.9 Quiz