简体   繁体   English

在 Gerrit v3.2 中配置的 SMTP 服务器无法发送电子邮件

[英]Emails Not Getting sent with SMTP Server Configured in Gerrit v3.2

I have edited gerrits config file with the required SMTP details:我已经使用所需的 SMTP 详细信息编辑了 gerrits 配置文件:

 [sendemail]
 enable = true
 smtpServer = smtp.server.com
 smtpServerPort = 25 

But the thing is, the details somehow don't work upon gerrit but the same values do work upon Jenkins.但问题是,细节不知何故不适用于gerrit,但相同的值确实适用于Jenkins。

There really isnt helpful documentation out there wrt to Gerrit. Gerrit 那里真的没有有用的文档。 I even tried to configure the server side of settings for projects config file with:我什至尝试使用以下命令配置项目配置文件的服务器端设置:

[access]
    inheritFrom = All-Projects
[submit]
    action = inherit
[access "refs/*"]
    owner = blah blah blah
[notify "Administrators"]
    email = blah@blahblahblah.com

I tried looking into error logs as well but NOTHING.我也尝试查看错误日志,但没有。 Any pointers would be really helpful for me.任何指示都会对我很有帮助。

Issue Resolved问题解决了

The configuration at the gerrit.conf side is just the server side of it. gerrit.conf 端的配置只是它的服务器端。

For the client side, go to Settings -> Notifications.对于客户端,go 到Settings -> Notifications.

Set notifications for设置通知

-> Project Name: <whichever project you have access to> -> Project Name: <whichever project you have access to>

-> Branch: master or any other branch of your choice. -> Branch: master或您选择的任何其他分支。

-> Save Changes -> Save Changes

Once you have configured the notifications, the subscribed events would be sent to you in the form of emails via Gerrit.配置通知后,订阅的事件将通过 Gerrit 以电子邮件的形式发送给您。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM