Mail Administration Guide

How to Set Up a Mail Server

No special steps are required to set up a mail server that is only serving mail for local users. The user must have an entry in the password file or in the name space, and the user should have a local home directory (so that ~/.forward can be checked) for mail to be delivered. This is why home directory servers are often set up as the mail server.

The mail server can route all mail for many mail clients. The only resource requirement for this type of mail server is that it have adequate spooling space for client mailboxes. The /var/mail directory must be made available for remote mounting.

For this task, check the /etc/dfs/dfstab file to be sure the /var directory is exported.

  1. Type share and press Return.

    If the /var directory is shared, you do not need to do more. If the /var directory is not exported, continue with the next step.

  2. Type share -F nfs /var/mail and press Return.

  3. To permanently share the file system, edit /etc/dfs/dfstab and add the command line used in step 2.


Note -

The mail.local program automatically creates mailboxes in the /var/mail directory the first time a message is delivered. You do not need to create individual mailboxes for your mail clients.