This function lists Mail Exchanger (MX) records.
Important:
When you disable the DNS role, the system disables this function.
uapi --output=jsonpretty \ --user=username \ Email \ list_mxs
{- "apiversion": 3,
- "func": "list_mxs",
- "module": "Email",
- "result": {
- "data": [
- {
- "alwaysaccept": 1,
- "detected": "local",
- "domain": "example.com",
- "entries": [
- {
- "domain": "example.com",
- "entrycount": 1,
- "mx": "mx.example.com",
- "priority": 5,
- "row": "odd"
}
], - "local": 1,
- "mx": "mx.example.com",
- "mxcheck": "auto",
- "remote": 0,
- "secondary": 0,
- "status": 1,
- "statusmsg": "Fetched MX List"
}
], - "errors": null,
- "messages": null,
- "metadata": {
- "transformed": 1
}, - "status": 1,
- "warnings": null
}
}