cPanel UAPI mail routing get function?
Hi,
Using, ideally UAPI, how to I determine/get the mail routing setting? I don't want to change it, I just want to determine what it is for a domain account.
I did come across this page:
https://api.docs.cpanel.net/openapi/cpanel/operation/set_always_accept/
However there is no "see also" section on the page and the URL doesn't have a full hierarchy that I could derive. It would be nice to have a quick update on the pages for a "See also:" with related functions.
-
With this:
https://api.docs.cpanel.net/openapi/cpanel/operation/list_mxs/
you get email routing setting.1 -
Finn, thank you.
uapi --user=example1 Email list_mxs domain=example1.com
This returns the results for a single domain, omitting the domain parameter returns all of the domains.
Internal routing:
data:
-
alwaysaccept: 1
detected: local
local: 1
mx: mail.example.com
mxcheck: local
remote: 0External routing:
data:
-
alwaysaccept: 0
detected: remote
local: 0
mx: mail.example.com
mxcheck: remote
remote: 10
Please sign in to leave a comment.
Comments
2 comments