Defining mail exchanger records
Use the following procedure to define mail exchanger records.
- Edit the /usr/local/domain/named.abc.data file on your domain name server.
- 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.comshould be forwarded topost.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.comdomain to be forwarded topost.office.widget.Note: Wildcard MX records are not appropriate for use on the Internet. - The serial number in the SOA Resource Record must be incremented because the database has been modified.
- Refresh the name server database by typing the
refresh -s namedcommand. - Type the
refresh -s sendmailcommand to make the changes take effect.