![]() |
![]() |
| |
|
Figure 23-3 shows how sendmail uses aliases. Programs that read mail, such as /usr/bin/mailx, can have aliases of their own, which are expanded before the message reaches sendmail. The aliases for sendmail can originate from a number of name service sources, such as local files, NIS, or NIS+. The order of the lookup is determined by the nsswitch.conf file. Refer to the nsswitch.conf(4) man page. Figure 23-3 How sendmail Uses Aliases ![]() sendmail FeaturesThe sendmail program provides the following features.
Figure 23-4 shows how sendmail interacts with the other programs in the mail system. Figure 23-4 Interaction of sendmail With Other Mail Programs ![]() As shown in Figure 23-4, the user interacts with a mail-generating and mail-sending program. When the mail is submitted, the mail-generating program calls sendmail, which routes the message to the correct mailers. Because some of the senders might be network servers and some of the mailers might be network clients, you can use sendmail as an Internet mail gateway. See Interactions of Mail Programs for a more detailed description of the process. sendmail Configuration FileA 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.
The configuration file that you use on a system depends on the role of the system in your mail service.
The following list describes some configuration parameters that you can change, depending on the requirements of your site.
Mail Alias FilesYou can use any of the following files, maps, or tables to maintain aliases. Your method of maintaining aliases depends on who uses the alias and who needs to be able to change the alias. Each type of alias has unique format requirements. If you are looking for task information, refer to Administering Mail Alias Files (Task Map) in Chapter 22, Mail Services (Tasks). .mailrc AliasesAliases that are listed in a .mailrc file are accessible only by the user who owns the file. This restriction enables users to establish an alias file that they control and that is usable only by its owner. Aliases in a .mailrc file adhere to the following format.
aliasname is the name that the user uses when sending mail, and value is a valid email address. If a user establishes a personal alias for scott that does not match the email address for scott in the name service, mail is routed to the wrong person when people try to reply to mail that is generated by this user. The only workaround is to use any of the other aliasing mechanisms. | |
| |