Technical data

SET MX_RECORD
SET MX_RECORD
For routing mail, adds routing information to the local Mail Exchanger (MX)
database.
Each entry contains a list of hosts that can accept mail for the specified
destination. The list is in order of routing preference.
The local MX information is stored in the routes database.
The MX entry is one of the record types in the BIND database. In addition, a
BIND server might provide an MX record.
SMTP is designed to determine where the sending system should try to relay
mail. It is also designed to identify where the sending system actually tries to
relay mail. To find a destination address, the MX routing lookup process follows
this sequence:
1. Local MX database
2. Remote MX database
3. BIND database
4. Local hosts database
Related command: SHOW MX_RECORD
Formats
SET MX_RECORD destination
/GATEWAY=host
/PREFERENCE=n
SET NOMX_RECORD destination
[ /GATEWAY=host ]
Restrictions
Requires read and write access to the routes database.
Parameters
destination
Required.
Host name or domain name to which mail will be sent.
Qualifiers
/GATEWAY=host
Required with SET MX_RECORD. Optional with SET NOMX_RECORD.
Gateway through which mail will be relayed. Must have an address in either the
local hosts database or the BIND database.
A destination can have multiple gateways, each with an associated preference
value.
/PREFERENCE=n
Required.
2–128 Command Descriptions