1. 程式人生 > >OpenSSL::SSL::SSLError: SSL_connect returned=1 errno=0 state=SSLv2/v3 read server hello A: unknown protocol

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