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.
/usr/local/bin/AddMX
-z|--zone
-d|--mxDomain
-s|--mailServer
-p|--pref
where
-z, --zone is a zone name (mandatory)-d, --mxDomain is a mail domain. Default value is equal to zone name-s, --mailServer is a mail server (mandatory)-p, --pref is a precedence. Default value is 10Note: Arguments mandatory for long options are mandatory for short options too.
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