gitlab邮箱配置 发表于 2018-06-26 更新于 2023-08-09 分类于 git 配置指南 ,这是有官方给的各种邮箱的配置示例。 阿里云企业邮箱123456789gitlab_rails['smtp_enable'] = truegitlab_rails['smtp_address'] = "smtp.qiye.aliyun.com"gitlab_rails['smtp_port'] = 465gitlab_rails['smtp_user_name'] = "username@your domain"gitlab_rails['smtp_password'] = "password"gitlab_rails['smtp_domain'] = "your domain"gitlab_rails['smtp_authentication'] = "login"gitlab_rails['smtp_enable_starttls_auto'] = falsegitlab_rails['smtp_tls'] = true 默认使用ssl,如果不用就要加入以下配置123456gitlab_rails['smtp_enable_starttls_auto'] = falsegitlab_rails['smtp_tls'] = falsegitlab_rails['smtp_openssl_verify_mode'] = 'none'gitlab_rails['smtp_ssl'] = false gitlab_rails['smtp_force_ssl'] = false 测试邮件功能12$ gitlab-rails consoleNotify.test_email('test@qq.com', 'Message Subject', 'Message Body').deliver_now