[Linux] Gitlab SMTP
迁移过 gitlab 以后发现 Outlook 的 SMTP 好像失效了,按照文档配置的步骤,通过 rail console 检查一下:
1 | # 启用 rail console |
发送消息发现类似于:
1 | ... xxx@outlook.com not allowed send as gitlab@xx.com.... |
Hmmm… 那么 Google 一下,发现漏了两个配置:
1 | # 文件位置 /etc/gitlab/gitlab.rb |
重新 gitlab-ctl reconfigure, 再试一次, 绿了就可以了。
1 | #<Mail::Message:379960, Multipart: false, Headers: <Date: Wed, 21 Feb 2024 18:23:56 +0800>, <From: GitLab <aojie654@outlook.com>> |
[Linux] Gitlab SMTP
https://www.aojie654.com/20240221_linux_gitlab_smtp/