This function traces the email delivery route to an email account.
uapi --output=jsonpretty \ --user=username \ Email \ trace_delivery \ recipient='username@example.com'
{- "apiversion": 3,
- "func": "trace_delivery",
- "module": "Email",
- "result": {
- "data": {
- "address": "username@example.com",
- "destinations": [
- {
- "address": "username@example.com",
- "aliasfile": "/etc/valiases/example.com",
- "destinations": [
- {
- "mailbox": "username@example.com",
- "type": "local_delivery"
}
], - "type": "routed"
}
], - "type": "routed"
}, - "errors": null,
- "messages": null,
- "metadata": { },
- "status": 1,
- "warnings": null
}
}