我的gitlab构建在数字信息上,无法将邮件发送给新用户



我试图在我的gitlab-instance中配置SMTP(遵循此指南)。但是不要使它起作用。

gitlab.rb

gitlab_rails['gitlab_email_from'] = "admin@example.com"
gitlab_rails['gitlab_support_email'] = "admin@example.com"
#nginx['redirect_http_to_https'] = false
#nginx['ssl_certificate'] = "/etc/gitlab/ssl/gitlab.crt"
#nginx['ssl_certificate_key'] = "/etc/gitlab/ssl/gitlab.key"
gitlab_rails['smtp_enable'] = true
gitlab_rails['smtp_address'] = 'smtp.exmail.qq.com'
gitlab_rails['smtp_port'] = 25
gitlab_rails['smtp_user_name'] = 'admin@example.com'
gitlab_rails['smtp_password'] = 'has been removed'
gitlab_rails['smtp_domain'] = 'smtp.qq.com'
gitlab_rails['smtp_authentication'] = :plain
gitlab_rails['smtp_enable_starttls_auto'] = true

production.log

Sent mail to i@example.com (8017.5ms)

mail.log

May  9 09:02:14 nday postfix/smtp[27203]: B16EF12019C: to=<i@example.com>, relay=none, delay=1049, delays=1017/0.04/32/0, dsn=4.4.3, status=deferred (Host or domain name not found. Name service error for name=mxbiz2.qq.com type=AAAA: Host not found, try again)s
May  9 09:02:14 nday postfix/smtp[27202]: 40274120CA7: to=<i@example.com>, relay=none, delay=988, delays=955/0.04/32/0, dsn=4.4.3, status=deferred (Host or domain name not found. Name service error for name=mxbiz2.qq.com type=AAAA: Host not found, try again)

btw:我已经更改了DNS和刷新。mail.log尚未记录我的操作。这是旧日志。

您的帐户是数字海洋上的新帐户吗?

如果是,您需要要求他们解锁sendmail功能。

此解锁是按帐户进行的,而不是液滴。您可以在此解锁后创建的所有其他液滴中使用SendMail。

最新更新