我已经在我的centos.It中安装了gitlab-omnibus版本,似乎一切都是OK.But当一个新人想注册时,他/她必须收到gitlab发来的确认信息,我已经根据gitlab的办公文件配置了/etc/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"有人能告诉我为什么会这样吗?非常感谢。
发布于 2015-04-22 17:11:05
查看日志文件的倒数第二行
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方面可以做太多事情。您也许可以尝试编辑确认消息模板,但它是自动生成的电子邮件,并且始终存在垃圾邮件过滤器将其识别为确认邮件的风险。
发布于 2015-04-22 17:41:17
Gitlab确认电子邮件很容易被识别为垃圾邮件。而且QQMail在识别和拒绝垃圾邮件方面非常强大。
我的建议是更改Gitlab的配置,不再需要确认电子邮件进行注册。
https://stackoverflow.com/questions/29792303
复制相似问题