System Administration Guide, Volume 3

Planning Your Mail System

This section describes four basic types of mail configurations and briefly outlines the tasks required to set up each configuration. You might find this section useful if you need to set up a new mail system or if you are expanding an existing one. The configurations start with the most basic case (mail completely local, no connection to the outside world) and increase in complexity to a two-domain configuration with a mail gateway. The first decision you should make is which one of these configurations you would like to employ. The following configurations are covered:

As system administrator, you should decide on a policy for updating aliases and for forwarding mail messages. You might set up an aliases mailbox as a place for users to send requests for mail forwarding and for changes to their default mail alias. If your system uses NIS or NIS+, you can administer forwarding rather than forcing users to manage it themselves.

Local Mail Only

The simplest mail configuration, shown in Figure 34-1, is one mail host with two or more workstations connected to it. Mail is completely local. All the clients store mail on their local disks and act as mail servers. Mail addresses are parsed using the /etc/mail/aliases files.

Figure 34-1 Local Mail Configuration

Graphic

To set up this kind of mail configuration, you need:

Local Mail in Remote Mode

In this configuration, each mail client mounts its mail from one mail server that provides mail spooling for client mailboxes. This server can also be the mail host. This configuration assists the backup of the mailboxes for each client.

To set up this kind of mail configuration, you need:

Local Mail and a Remote Connection

The most common mail configuration in a small network is shown in Figure 34-2. One system is the mail server, the mail host, and the mail gateway to the outside world. Mail is distributed using the /etc/mail/aliases files. No name service is required.

Figure 34-2 Local Mail Configuration With a UUCP Connection

Graphic

To set up this kind of a mail configuration, assuming that the mail clients mount their mail files from /var/mail on the mail host, you need:

Two Domains and a Gateway

The mail configuration shown in Figure 34-3 has two domains and a mail gateway. In this configuration, the mail server, the mail host, and the mail gateway (or gateways) for each domain are likely to be different systems. To assist the process of administering and distributing mail, a name service is used.

Figure 34-3 Two Domains and a Gateway

Graphic

To set up this kind of a mail configuration, assuming that the mail clients mount their mail files from /var/mail on the mail host, you need: