我们目前正在运行使用 Omnibus 包安装的最新版本的 GitLab (v8.0.1),并尝试启用新的“回复”功能,但没有任何反应。
我们遵循了这些说明: http ://doc.gitlab.com/ce/incoming_email/README.html (特别是 Gmail 说明)。我们配置了一个安全性较低的新 Gmail 帐户,并且还使用了 SMTP 配置。
电子邮件在回复时被发送到 GMail 帐户,但从那里什么也没有发生。doco 似乎有点稀疏,但 GitLab 是否应该接收该电子邮件(通过 IMAP)并更新问题?如果是这样,什么都不会发生。
我们在 /etc/gitlab/gitlab.rb 中的设置(我不得不手动添加“incoming-mail”部分,因为它不存在)如下所示:
# SMTP setup
gitlab_rails['smtp_enable'] = true
gitlab_rails['smtp_address'] = "aws"
gitlab_rails['smtp_port'] = 587
gitlab_rails['smtp_user_name'] = "AWSUSER"
gitlab_rails['smtp_password'] = "AWSPASS"
gitlab_rails['smtp_domain'] = "git.ourdomain.com"
gitlab_rails['smtp_authentication'] = "login"
gitlab_rails['smtp_enable_starttls_auto'] = true
# gitlab_rails['smtp_tls'] = false
# gitlab_rails['smtp_openssl_verify_mode'] = 'none' # Can be: 'none', 'peer', 'client_once', 'fail_if_no_peer_cert', see http://api.rubyonrails.org/classes/ActionMailer/Base.html
# gitlab_rails['smtp_ca_path'] = "/etc/ssl/certs"
# gitlab_rails['smtp_ca_file'] = "/etc/ssl/certs/ca-certificates.crt"
# Configuration for Gmail / Google Apps, assumes mailbox gitlab-incoming@gmail.com
gitlab_rails['incoming_email_enabled'] = true
gitlab_rails['incoming_email_address'] = "gitlab+%{key}@ourdomain.com"
gitlab_rails['incoming_email_email'] = "gitlab@ourdomain.com"
gitlab_rails['incoming_email_password'] = "GLPASS"
gitlab_rails['incoming_email_host'] = "imap.gmail.com"
gitlab_rails['incoming_email_port'] = 993
gitlab_rails['incoming_email_ssl'] = true
gitlab_rails['incoming_email_start_tls'] = false
gitlab_rails['incoming_email_mailbox_name'] = "inbox"