【问题标题】:Phabricator not sending outbound emailsPhabricator 不发送出站电子邮件
【发布时间】:2021-06-24 02:55:18
【问题描述】:

我已按照 this 指南在 phabricator 上设置了我的出站电子邮件。

但是,我的电子邮件没有收到。所有的电子邮件都在排队。当我转到 Phabricator UI 中的 daemons 时,我看到有几个任务失败了。都是这个样子的。

Task 448: PhabricatorMetaMTAWorker  
Task 448    
Task StatusQueuedTask ClassPhabricatorMetaMTAWorkerLease StatusLeasedLease Owner13195:1624502950:mail.icicbcoin.com:11Lease Expires1 h, 59 mDurationNot Completed 
Data phabricator/ $ ./bin/mail show-outbound --id 154
    Retries 
    Failure Count5Maximum Retries250Retries After1 m, 2 m, 4 m, 6 m, 8 m, 11 m, 14 m, 17 m, 20 m, 23 m, 27 m, ...

我很好奇这个数据部分。在我看来,phabricator 运行这个命令失败了,这很奇怪,因为如果我手动运行./bin/mail show-outbound --id 154,我会得到这个:

ID: 154
Status: queued
Related PHID: 
Message: fputs(): send of 28 bytes failed with errno=32 Broken pipe

 PARAMETERS 
sensitive: 1
mustEncrypt: 
subject: [Phabricator] Welcome to Phabricator
to: ["PHID-USER-qezqlvc7rxton2lshjue"]
force: 1

 HEADERS 

 TEXT BODY 
Welcome to Phabricator!

admin (John Doe) has created an account for you.

    Username: some.person

To log in to Phabricator, follow this link and set a password:

  http://phabricator.innolabsolutions.rs/login/once/welcome/9/b2jf7j6mg5xomwjhmcfcxbigs7474jyq/10/

After you have set a password, you can log in to Phabricator in the future by going here:

  http://phabricator.innolabsolutions.rs/

Love,
Phabricator

 HTML BODY 
(This message has no HTML body.)

【问题讨论】:

    标签: phabricator


    【解决方案1】:

    实际上,问题出在 SMTP 服务器配置上,尽管这个错误并没有告诉我。我将 SMTP 端口从 465 更改为 587,重新启动了守护进程,它工作了。

    【讨论】:

      【解决方案2】:

      我有两次同样的问题。 第二次,是因为我无法解析 smtp 服务器名:

      $ ping gandi.net
      ping: gandi.net: Temporary failure in name resolution
      

      然后我在/etc/resolv.conf添加了一个dns服务器

      nameserver 127.0.0.1
      nameserver 8.8.8.8 # <--- added
      search home
      

      并重启服务

      sudo service systemd-resolved restart
      

      Phabricator 随即自动发送所有排队的电子邮件。

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2011-09-16
        • 2012-01-12
        • 1970-01-01
        • 2015-03-09
        • 2014-08-17
        相关资源
        最近更新 更多