Defining mail exchanger records

Use the following procedure to define mail exchanger records.

  1. Edit the /usr/local/domain/named.abc.data file on your domain name server.
  2. Add mail exchanger (MX) records for each machine not directly connected to your network to which you wish to forward mail.
    For example, if mail addressed to users on purple.widget.com should be forwarded to post.office.widget, the MX record looks similar to the following:
    purple.widget.com IN MX 0 post.office.widget.

    You must specify both host and machine names when using MX records. Enter each MG record on a line by itself. You can use wildcards, for example:

    *.widget.com IN MX 0 post.office.widget. 

    This example causes mail to an unknown host (a host without an explicit MX record) in the widget.com domain to be forwarded to post.office.widget.

    Note: Wildcard MX records are not appropriate for use on the Internet.
  3. The serial number in the SOA Resource Record must be incremented because the database has been modified.
  4. Refresh the name server database by typing the refresh -s named command.
  5. Type the refresh -s sendmail command to make the changes take effect.