I am an experienced Exim user and just recently testing Zimbra Open Source, and I am loving it already.
However, I am used to this command whenever I wanted to test email routing in the email server, whether I am testing for the routing of local users, local email addresses and external email addresses:
root@localhost# exim -bt alias@localdomain.com
user@thishost.com
<-- alias@localdomain.com
router = localuser, transport = local_delivery
root@localhost# exim -bt user@thishost.com
user@thishost.com
router = localuser, transport = local_delivery
root@localhost# exim -bt user@remotehost.com
router = lookuphost, transport = remote_smtp
host mail.remotehost.com [1.2.3.4] MX=0
Got the above cheatsheet years ago from http://bradthemad.org/tech/notes/exim_cheatsheet.php.
How can I do this with Zimbra/Postfix? I am searching everywhere on how to do this, but couldn't found any.
Thanks!
Best Answer
Try this command
sendmail binary from postfix has special options
-bv
This command also can be found in postfix documentation:
Excerpt from the page
Unlike utility from exim which give result in the stdout, postfix will send the report to user who invoke above command. Also zimbra will place sendmail binary in its unusual directory, so you must invoke it by issuing the full path command.