Mail Administration Guide

Setting Up DNS to Work With sendmail

The DNS name service does not support aliases for individuals. It does support aliases for hosts or domains using mail exchange (MX) records and cname records. You can specify host names, domain names, or both in the DNS database. See the Solaris Naming Setup and Configuration Guide for more information about administering DNS.

How to Use DNS With sendmail

  1. Edit the /etc/nsswitch.conf file and make sure that the hosts entry includes the dns flag.

    The host entry must include the dns flag for the DNS host aliases to be used.

  2. Check for a mailhost and mailhost.domainname entry.

    Make sure there is an entry for mailhost and mailhost.domainname in the DNS database.