Zimbra和Postfix:configuration一个全面的邮箱/域

我对Postfix并不陌生,但是对Zimbra来说是新的。 我已经看到了关于更改Postfix参数的这个答案 ,以及关于如何在Postfix中configuration一个catch-all域的文章。

我需要find的是如何在Zimbra(7.1.1)中进行Postfixconfiguration。 我检查了Zimbrapipe理页面,没有看到任何可以允许虚拟域的东西(邮件到*@some.domain.example)。 前面提到的“答案”列出了一大堆Zimbra命令,至今我还不明白。

我怎么把这些放在一起? 什么是最好的地方了解可用于Zimbra的shell命令?

PS:这些都是很好的答案,看起来他们会做我所需要的。 但是,我应该提到,目前的域设置是(消毒):1)mailhost.main.example(域); 2)mail.example(域别名,MX在别处); 3)newmail.main.example(不在zimbra,CatchAll Domain)。

我是否必须添加新的域名(newmail.main.example)作为域名别名才能使用? 我假设如此。

更新:我添加域作为别名,并使用此命令来处理通讯组列表而不是用户:

zmprov modifyDistributionList [email protected] zimbraMailCatchAllAddress @some.domain.example 

不幸的是,现在我收到邮件时收到这个消息:

 Your message WAS SUCCESSFULLY RELAYED to: <[email protected]> The message WAS NOT relayed to: <""@other.domain.example>: [127.0.0.1] said: 501 5.1.3 Failed, id=12509-18, from MTA([127.0.0.1]:10025): 501 5.1.3 Bad recipient address syntax This delivery report was generated by the program amavisd-new at host other.domain.example. Our internal reference code for your message is 11304-14/3aX6PrCFUxBz 

检查邮件列表,我没有看到任何不寻常的会员资格。

我有同样的问题,试图configuration一个帐户充当多个域的捕获所有地址,并发现这个有价值的论坛条目: catch all not working:多值语法命令

 zmprov modifyAccount [email protected] zimbraMailCatchAllAddress @mydomain.com 

将账户[email protected]的zimbraMailCatchAllAddress属性设置为值@ mydomain.com。 如果您尝试使用相同的命令为该帐户als catchall地址设置其他域

 zmprov modifyAccount [email protected] zimbraMailCatchAllAddress @otherdomain.com 

这个值将被覆盖。 幸运的是,该模型允许写入多个值。 诀窍是使用多值的语法(使用“+”符号)而不是其他域:

 zmprov modifyAccount [email protected] +zimbraMailCatchAllAddress @otherdomain.com 

http://wiki.zimbra.com/wiki/Managing_Domains#Domain_Catchall

 su - zimbra zmprov modifyAccount [email protected] zimbraMailCatchAllAddress @domain.com 

警告:当我运行Zimbra时,我没有testing过这个,而且源代码也不是很官方的文档。

最好在Zimbra中改变这个configuration,而不是直接修改后缀。 我不认为有什么办法从pipe理界面做到这一点。 但是有一个zmprov命令可以设置一个非常简单的catchall地址。

从pipe理员gui创build您的catchall用户

login到您的zimbra服务器控制台

切换到zimbra用户: sudo su - zimbra

发出zmprov命令来修改您在上面创build的用户: zmprov modifyAccount [email protected] zimbraMailCatchAllAddress @yourdomain.com