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.
your organization's domain name, and
orange is the
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
To configure a domain mail server, use following procedure.
- Create a mail exchanger (MX) record and an address (A)
record for the mail server
widget.com IN MX 10 black.widget.com widget.com IN A 126.96.36.199 black.widget.com IN A 188.8.131.52
- Edit sendmail.cf on the mail server
black.widget.com) to add the domain alias (the w class):
Cw $w $?D$w.$D$. widget.com
- Mail clients must know where to send their non-local mail,
so edit sendmail.cf on each client to point to
the mail server (the S macro):
- Use the NameServOpt option to configure the sendmail daemon
so everyone can use the MX records defined in the name server
- Add aliases for users in the domain that do not have accounts
on the mail server using the aliases file, for example:
sam:email@example.com david:firstname.lastname@example.org judy:email@example.comNote: Mailbox (MB) records can serve the same function.
- The serial number in the SOA Resource Record must be incremented because the database has been modified.
- Refresh the name server database by issuing the
refresh -s namedcommand.
- On the clients, run the
refresh -s sendmailcommand 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.