Self Help Documentation
< All Topics

email/setmailroute

Description

Updates the mail exchanger rule to use local or remote server for e-mail sending/receiving.

Parameters

Additional parameters:

FieldTypeRequiredDescription
tokenstringYesAuthorizing API token – check API Basics for more information.
accountuserstringYesThe SPanel user account that is being managed or viewed.
actionstringYesThe category and function being executed.
domainstringYesThe domain to apply the new settings.
exchangerstringYes‘localexchanger’ or ‘remoteexchanger’ depending on your preference.
mailserverarrayNoArray of mail servers. Required if ‘exchanger’ set to ‘remoteexchanger’.
priorityarrayNoArray of priorities corresponding to the mail servers. Required if ‘exchanger’ set to ‘remoteexchanger’.

Example

Output

Table of Contents