Gitlab安装成功有,注册邮件一直接收不到也是很生气,修改了 /etc/gitlab/gitlab.rb文件
gitlab_rails[‘smtp_enable‘] = true
gitlab_rails[‘smtp_address‘] = "smtp.163.com"
gitlab_rails[‘smtp_port‘] = 25
gitlab_rails[‘smtp_user_name‘] = "1511****[email protected]"
gitlab_rails[‘smtp_password‘] = "********"
gitlab_rails[‘smtp_domain‘] = "smtp.163.com"
gitlab_rails[‘smtp_authentication‘] = "login"
gitlab_rails[‘smtp_enable_starttls_auto‘] = true
gitlab_rails[‘smtp_tls‘] = flase
user[‘git_user_email‘]="[email protected]"
以及修改 /home/git/gitlab/gitlab.yml 文件
email_from: 15110****[email protected]
修改之后 也是终于收到邮件 不过报错
said: 550 SPF check failed. http://service.mail.qq.com/cgi-bin/help?subtype=1&&id=20022&&no=1001445. (in reply to end of DATA command))
SPF记录
我的是阿里云服务器 在后台域名解析添加了 一条 txt记录 貌似没有生效
TXT @ 默认 v=spf1 a mx ~all