Skip to main content

cPanel UAPI mail routing get function?

Comments

2 comments

  • quietFinn

    With this:
    https://api.docs.cpanel.net/openapi/cpanel/operation/list_mxs/
    you get email routing setting.

     

    1
  • JAB Creations

    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: 0

    External routing:

      data:
        -
          alwaysaccept: 0
          detected: remote
          local: 0
          mx: mail.example.com
          mxcheck: remote
          remote: 1

     

    0

Please sign in to leave a comment.