Description
This function traces the route to an email address.
Warning:
We strongly recommend that you use UAPI instead of cPanel API 2. However, no equivalent UAPI function exists.
Examples
Note:
Use cPanel's API Shell interface (Home >> Advanced >> API Shell) to directly test cPanel API calls.
Parameters
Return |
Type |
Description |
Possible values |
Example |
address |
string |
Required The destination email address. |
A valid email address. |
president@whitehouse.gov |
Returns
Return |
Type |
Description |
Possible values |
Example |
startaddress |
string |
The destination email address. |
A valid email address. |
president@whitehouse.gov |
route |
hash |
A hash for each mail delivery router. |
This hash includes theresult and routerreturns. |
|
result |
string |
The router that delivers mail to the address. The function returns this value in the route hash. |
The hostname of the mail server, its IP address, and priority. |
mail3.eop.gov [198.137.241.20] MX=105 |
router |
string |
The method that the system uses to deliver mail to the specified address. The function returns this value in the route hash. |
lookuphost is the only possible value. |
lookuphost |
reason |
string |
A reason for failure. Note: This function onlyreturns a reason value if it failed. |
A string that describes the error. |
This is an error message. |
result |
Boolean |
Whether the function succeeded. |
|
1 |