在Phabricator中,配置mailiers

分享于 

3分钟阅读

互联网

  繁體

问题:

使用bitnami镜像进行干净的安装后,我按照说明书设置邮件程序。

它看起来像这样:


[


 {


 "key": "stmp-mailer",


 "type": "smtp",


 "options": {


 "host": "server",


 "user": "user" ,


 "port": 587,


 "password": "passwd",


 "protocol": "tls"


 }


 }


]



在此之后,如果我尝试从测试应用程序发送邮件,我得到以下消息:


EXCEPTION: (RuntimeException) stream_socket_enable_crypto(): SSL operation failed with code 1. OpenSSL Error messages:


error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed at [<arcanist>/src/error/PhutilErrorHandler.php:263]


arcanist(head=stable, ref.stable=ac54d61d7af2), phabricator(head=stable, ref.stable=86ad69863930)



但我无法使用arcanist运行几乎内容,例子:


$ arc set-config https.blindly-trust-domains '["example.com"]'


[2020-12-14 18:48:55] EXCEPTION: (TypeError) Argument 1 passed to ArcanistBlindlyTrustHTTPEngineExtension::setDomains() must be of the type array, string given, called in /opt/bitnami/arcanist/scripts/arcanist.php on line 304 at [<arcanist>/src/configuration/ArcanistBlindlyTrustHTTPEngineExtension.php:10]


arcanist(head=stable, ref.stable=ac54d61d7af2)


 #0 ArcanistBlindlyTrustHTTPEngineExtension::setDomains(string) called at [<arcanist>/scripts/arcanist.php:304]



但如果运行get-config

这个崩溃是正常的还是错误配置?

Arcanist version : arcanist ac54d61d7af20f5d65ba889974f23a86bfb6cd57 (19 Oct 2020 )

以下命令:

openssl s_client -starttls smtp -connect MAIL_SERVER:587

从证书中产生两个错误


erify error:num=20:unable to get local issuer certificate


verify return:1


depth=0 CN = XXX


verify error:num=21:unable to verify the first certificate




答案1:

尝试测试各个组件,您可以直接使用openssl排除arcanist作为问题的根源:


openssl s_client -starttls smtp -connect example.com:587 -servername example.com



如果一切正常,在输出中查找:


Verify return code: 0 (ok)





相关文章