Go to main content

Managing sendmail Services in Oracle® Solaris 11.3

Exit Print View

Updated: April 2020
 
 

Setting Up Mail Services

You can set up a mail service if your site does not provide connections to email services outside your company or if your company is in a single domain.

Mail requires two types of components for local mail configuration : a mail host and mail clients. For communication with networks outside your domain, you also need a mail gateway and mail servers. For a graphical illustration of configurations for communication with networks outside your domain, see Electronic Mail Configuration in Components of Mail Services or Local Mail Configuration With a Remote Connection in Local Mail and a Remote Connection.

There are no special steps 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 namespace. For mail to be delivered, the user should also have a local home directory for checking the ~/.forward file. For this reason, home directory servers are often set up as the mail server. For more information, see Hardware Components for Mail Configurations.

You can combine components on the same system or provide components on separate systems. For example, if your mail host and mail server functions are on the same system, follow the instructions in this section to set up that system as the mail host. Then, follow the instructions in this section to set up the system as the mail server.

How to Verify Mailhost Entries in DNS

The DNS name service does not support aliases for individuals. The DNS name service supports aliases for hosts or domains that use Mail Exchanger (MX) records and CNAME records. You can specify host names, domain names, or both in the DNS database. For more information, see How sendmail Works With Name Services, or Working With Oracle Solaris 11.3 Directory and Naming Services: DNS and NIS.

  1. Become an administrator.

    For more information, see Using Your Assigned Administrative Rights in Securing Users and Processes in Oracle Solaris 11.3.

  2. Check for the mailhost and mailhost.domain entry in the /etc/hosts file.
  3. Use nslookup to ensure that an entry exists for mailhost and mailhost.domain in the DNS database.

    For more information, see the nslookup(1M) man page.