Configuring a domain mail server

Configuring a domain mail server provides users external to your organization a simple method for addressing mail to your users. That is, without a domain mail server, the mail address must specify a particular host in your organization.

For example, where is your organization's domain name, and orange is the host that sam uses. But with a domain mail server, users outside your organization can simply specify the user name and domain name, without having to know which host the user uses, for example,

To configure a domain mail server, use following procedure.

  1. Create a mail exchanger (MX) record and an address (A) record for the mail server           IN    MX     10           IN     A     IN     A
  2. Edit on the mail server ( to add the domain alias (the w class):
    Cw $w $?D$w.$D$.
  3. Mail clients must know where to send their non-local mail, so edit on each client to point to the mail server (the S macro):
  4. Use the NameServOpt option to configure the sendmail daemon so everyone can use the MX records defined in the name server
  5. Add aliases for users in the domain that do not have accounts on the mail server using the aliases file, for example:
    Note: Mailbox (MB) records can serve the same function.
  6. The serial number in the SOA Resource Record must be incremented because the database has been modified.
  7. Refresh the name server database by issuing the refresh -s named command.
  8. On the clients, run the refresh -s sendmail command to make the changes take effect.

There are other methods to configure a domain mail server. These procedures involve using mailbox (MB), mail rename (MR), and mail group (MG) records.