gitlab不能正常传送电子邮件(gitlab can't deliver email no

2019-11-03 18:41发布

我已经安装在我的centos.It的gitlab-综合版本似乎一切OK.But当一个新的希望申请,他/她必须收到的comfirm enalbe从gitlab.I发送已配置在/ etc / gitlab /根据gitlab的办公文档gitlab.rb。 我检查我var/log/email ,我发现该消息如下:

Apr 22 15:05:39 iZ23syflhhzZ postfix/cleanup[5899]: 9789EC3907: message-id=<201504220705.t3M75dkU005893@iZ23syflhhzZ>
Apr 22 15:05:39 iZ23syflhhzZ sendmail[5893]: t3M75dkU005893: to=postmaster, delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=32576, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (Ok: queued as 9789EC3907)
Apr 22 15:05:39 iZ23syflhhzZ postfix/qmgr[5724]: 9789EC3907: from=<>, size=4301, nrcpt=1 (queue active)
Apr 22 15:05:39 iZ23syflhhzZ postfix/smtpd[5896]: disconnect from localhost[127.0.0.1]
Apr 22 15:05:39 iZ23syflhhzZ postfix/cleanup[5899]: A6D63C38FD: message-id=<201504220705.t3M75dkU005893@iZ23syflhhzZ>
Apr 22 15:05:39 iZ23syflhhzZ postfix/qmgr[5724]: A6D63C38FD: from=<>, size=4456, nrcpt=1 (queue active)
Apr 22 15:05:39 iZ23syflhhzZ postfix/local[5900]: 9789EC3907: to=<postmaster@iZ23syflhhzZ.localdomain>, orig_to=<postmaster@iZ23syflhhzZ>, relay=local, delay=0.1, delays=0.05/0.04/0/0.01, dsn=2.0.0, status=sent (forwarded as A6D63C38FD)
Apr 22 15:05:39 iZ23syflhhzZ postfix/qmgr[5724]: 9789EC3907: removed
Apr 22 15:05:40 iZ23syflhhzZ postfix/smtp[5902]: A6D63C38FD: to=<hiufan@qq.com>, orig_to=<postmaster@iZ23syflhhzZ>, relay=mx3.qq.com[113.108.16.62]:25, delay=0.73, delays=0.01/0.03/0.12/0.57, dsn=5.0.0, status=bounced (host mx3.qq.com[113.108.16.62] said: 550 Mail content denied. http://service.mail.qq.com/cgi-bin/help?subtype=1&&id=20022&&no=1000726 (in reply to end of DATA command))
Apr 22 15:05:40 iZ23syflhhzZ postfix/qmgr[5724]: A6D63C38FD: removed

这是很迷茫,我不叫设定的电子邮件hiufan@qq.com ,我只需设置066337@sina.com作为默认的发件人电子邮件。 这里是我的设置/etc/gitlab/gitlab.rb

gitlab_rails['smtp_enable'] = true
gitlab_rails['smtp_address'] = "smtp.sina.com"
gitlab_rails['smtp_port'] = 25
gitlab_rails['smtp_user_name'] = "066337@sina.com"
gitlab_rails['smtp_password'] = "xxxxxx"
gitlab_rails['smtp_domain'] = "sina.com"
gitlab_rails['smtp_authentication'] = "login"
gitlab_rails['smtp_enable_starttls_auto'] = true
gitlab_rails['smtp_tls'] = false

gitlab_rails['gitlab_email_from'] = "066337@sina.com"
user["git_user_email"] = "066337@sina.com"

谁能告诉我为什么会这样?非常感谢您。

Answer 1:

看看日志文件的倒数第二行

to=<hiufan@qq.com>, orig_to=<postmaster@iZ23syflhhzZ>, relay=mx3.qq.com[113.108.16.62]:25, delay=0.73, delays=0.01/0.03/0.12/0.57, dsn=5.0.0, status=bounced (host mx3.qq.com[113.108.16.62] said: 550 Mail content denied.   (in reply to end of DATA command))

如果hiufan@qq.com是用户登记的电子邮件地址,指示该消息是由gitlab机发送,但是拒绝接收邮件服务器(在qq.com ):

status=bounced (host mx3.qq.com[113.108.16.62] said: 550 Mail content denied

在给定链路展望(使用谷歌翻译) http://service.mail.qq.com/cgi-bin/help?subtype=1&&id=20022&&no=1000726似乎因为它被识别为垃圾邮件/群发电子邮件遭到拒绝。 (我想,如果你读中国的错误信息更有意义)

如果是这样,我不认为有什么可以在gitlab侧做。 你或许可以尝试编辑确认邮件模板,但和自动生成的电子邮件,总是有一个垃圾邮件过滤器识别它是这样的风险。



Answer 2:

Gitlab确认电子邮件很容易被识别为垃圾邮件。 而QQ邮箱是在识别和拒绝垃圾邮件真的很强大。

我的建议是改变Gitlab的配置,停止需要确认电子邮件报名。



文章来源: gitlab can't deliver email normally
标签: gitlab