OpenSSL::SSL::SSLError: SSL_connect returned=1 errno=0 state=SSLv2/v3 read server hello A: unknown protocol

gitlab版本为社区版:

gitlab-ce_11.5.4-ce.0_amd64.deb

目录:/var/cache/apt/archives

配置邮箱的主要参数:

user['git_user_email'] = "[email protected]"

gitlab_rails['smtp_enable'] = true
gitlab_rails['smtp_address'] = "smtps.zhaopin.com.cn"
gitlab_rails['smtp_port'] = 465
gitlab_rails['smtp_user_name'] = "[email protected]"
gitlab_rails['smtp_password'] = "你的密码"
gitlab_rails['smtp_domain'] = "zhaopin.com.cn"
gitlab_rails['smtp_authentication'] = "login"
gitlab_rails['smtp_enable_starttls_auto'] = true
gitlab_rails['smtp_tls'] = true

###! **Can be: 'none', 'peer', 'client_once', 'fail_if_no_peer_cert'**
###! Docs: http://api.rubyonrails.org/classes/ActionMailer/Base.html
gitlab_rails['smtp_openssl_verify_mode'] = 'none'

注意:请不再使用163邮箱,测试:

否则会报如下错误:

OpenSSL::SSL::SSLError: SSL_connect returned=1 errno=0 state=SSLv2/v3 read server hello A: unknown protocol

猜你喜欢

转载自www.cnblogs.com/qxyy/p/10135597.html