博客园  :: 首页  :: 联系 :: 订阅 订阅  :: 管理

Phabricator实践(2):配置——邮件服务

Posted on 2013-04-15 00:05  Bruce Zhang  阅读(3580)  评论(1编辑  收藏  举报

1. 发邮件配置(Outbound Email)

  官方文档位置:http://www.phabricator.com/docs/phabricator/article/Configuring_Outbound_Email.html

  (1)SMTP发送邮件(使用公司的Exchange服务

    Step1:配置Mail Adapters为“PhabricatorMailImplementationPHPMailerAdapter”

Step2:配置PHPMailer

备注:

我首次也是尝试使用SMTP发送邮件,但是无法发送邮件(SMTP配置肯定没有问题)。

MetaMTA显示“Message has no valid recipients: all To/CC are disabled or configured not to receive this mail.

后来又尝试使用Sendmail方式发送邮件,经过一番配置CentOS上的sendmail,最后终于可以发送邮件了。(sendmail的邮件发送速度比较慢,估计需要做相应配置,因为时间原因没有尝试

 

后来,一次偶然的机会,重新切换成SMTP。这次竟然可以正常发送邮件。

所以我猜测,“PhabricatorMailImplementationPHPMailerAdapter”方式发邮件仍然和系统的sendMail有关,也需要对sendmail做相应配置。

因为时间原因,没有验证过这点猜想。(看到这篇Blog的朋友,如果有结论,顺便告诉我下:)

关于此问题的追踪,可以查看:https://github.com/facebook/phabricator/issues/300

 

2. 收邮件配置(Inbound Email)

  官方文档位置:http://www.phabricator.com/docs/phabricator/article/Configuring_Inbound_Email.html