Adding MX DNS Records

The AddMX utility adds MX record to a DNS zone /var/named/db.<zone> configuration file and dns_records table of the Parallels Pro CP database.

Before taking any actions, make sure domain is active and not suspended.

Syntax

/usr/local/bin/AddMX
-z|--zone
-d|--mxDomain
-s|--mailServer
-p|--pref

where

Note: Arguments mandatory for long options are mandatory for short options too.

Example

AddMX -z test1.com -d test1.com -s antispam1.com -p 10

or

AddMX --zone test1.com --mxDomain test1.com --mailServer antispam1.com --pref 10

or

AddMX --zone=test1.com --mxDomain=test1.com --mailServer=antispam1.com --pref=10

or

AddMX -z test1.com -s antispam.com

or

AddMX --zone test1.com --mxDomain 123.test1.com -s antispam1.com