testingZimbra电子邮件路由

我是一个经验丰富的Exim用户,最近刚刚testing了Zimbra Open Source,我已经很喜欢它了。

然而,无论我testing本地用户,本地电子邮件地址和外部电子邮件地址的路由,每当我想testing电子邮件服务器中的电子邮件路由时,我都会习惯这个命令:

root@localhost# exim -bt [email protected] [email protected] <-- [email protected] router = localuser, transport = local_delivery root@localhost# exim -bt [email protected] [email protected] router = localuser, transport = local_delivery root@localhost# exim -bt [email protected] router = lookuphost, transport = remote_smtp host mail.remotehost.com [1.2.3.4] MX=0 

几年前从http://bradthemad.org/tech/notes/exim_cheatsheet.php获得了上面的cheatsheet。

我怎样才能用Zimbra / Postfix做到这一点? 我到处search如何做到这一点,但找不到任何。

谢谢!

试试这个命令

 /usr/sbin/sendmail -bv address. 

来自postfix的sendmail二进制文件有特殊的选项-bv

 -bv Do not collect or deliver a message. Instead, send an email report after verifying each recipient address. This is useful for testing address rewriting and routing configurations. 

这个命令也可以在postfix文档中find:

  • debugging您的地址操作 。
  • 从里面debuggingPostfix

摘自该页面

为了进行debugging,Postfix 2.1及更高版本可以生成邮件传递报告。 这些报告不仅显示了地址重写和别名扩展或转发后的发件人/收件人地址,还显示了有关邮件传递,传递到非Postfix命令,远程SMTP服务器响应等信息。

与标准输出结果中的exim不同的是,postfix会将报告发送给调用上述命令的用户。 另外,zimbra会将sendmail二进制文件放在其不寻常的目录中,因此您必须通过发出完整path命令来调用它。

 /opt/zimbra/postfix/sbin/sendmail -bv address 

Zimbra使用postfix将邮件传递到外部地址。 所以你可以使用http://www.postfix.org/DEBUG_README.html上的很多命&#x4EE4;

例如。 以zimbra用户身份login,并向您发送关于特定目的地的送达报告的命令为:

 sendmail -bv [email protected] 

结果将被发送到zimbra用户,因此您需要在系统中configurationzimbra @ mail地址,例如作为您自己帐户的别名。

您可以使用zimbra用户的telnetsendmail命令并不断检查日志输出( /var/log/mail.log )。