Home > Configuration > Domain Name Service > setdnsmxrec_pref

setdnsmxrec_pref

Use this method to set priority number to assign to the mail exchange server. A domain name can have multiple mail servers, with a priority number assigned to each server. The lower the priority number, the higher the mail server's priority. When other mail servers have to deliver mail to the specified domain, they begin with the mail server with the lowest priority number, and use other configured mail servers, in priority order, as backups.

Syntax



Parameters

domain

Domain of the MX record to be modified.
This is mandatory parameter.

mx

Host name of the mail exchange server to be modified.
This is mandatory parameter.

pref

Priority number to assign to the mail exchange server. A domain name can have multiple mail servers, with a priority number assigned to each server. The lower the priority number, the higher the mail server's priority. When other mail servers have to deliver mail to the specified domain, they begin with the mail server with the lowest priority number, and use other configured mail servers, in priority order, as backups.
Maximum value = 65535.

Return Value

Returns simpleResult

See Also