configuration.yml
development:
email_delivery:
delivery_method: :smtp
smtp_settings:
#tls: true
#enable_starttls_auto: true
openssl_verify_mode: 'none'
address: "domain name"
port: 25
authentication: :login
domain: 'mail domail name'
user_name: 'mail id'
password: 'pwd'
此代码用于发生以下错误
发送邮件时出错:
SSL_connect returned=1 errno=0 state=SSLv2/v3 read server hello A: unknown protocol
development:
email_delivery:
delivery_method: :smtp
smtp_settings:
tls: true
enable_starttls_auto: true
openssl_verify_mode: 'none'
address: "domain name"
port: 587
authentication: :login
domain: 'mail domail name'
user_name: 'mail id'
password: 'pwd'
此代码用于发生以下错误
发送邮件时出错:
No connection could be made because the target machine actively refused it. - connect(2)
development:
email_delivery:
delivery_method: :async_smtp
smtp_settings:
tls: true
enable_starttls_auto: true
openssl_verify_mode: 'none'
address: "domain name"
port: 25
authentication: :login
domain: 'mail domail name'
user_name: 'mail id'
password: 'pwd'
development:
email_delivery:
delivery_method: :smtp
smtp_settings:
tls: true
enable_starttls_auto: true
openssl_verify_mode: 'none'
address: "domain name"
port: 25
authentication: :login
domain: 'mail domail name'
user_name: 'mail id'
password: 'pwd'
此代码使用redmine 2.2.3版本来使用精细的工作。但版本2.3.0现在使用不起作用。
答案 0 :(得分:6)
在与这个问题斗争了好几个小时之后,这就是我想出来的(适合我)
email_delivery:
delivery_method: smtp
smtp_settings:
openssl_verify_mode: none
tls: false
enable_starttls_auto: true
address: smtp.xxx.xx
port: 587
domain: xxx.xx
authentication: login
user_name: "xxx@xxx.xx"
password: xxx
确保地址与域匹配,并且可以解析
答案 1 :(得分:-1)
我也遇到了这个错误,试图强迫tls而不是使用25 SSL端口,但587一个,似乎是出于某种原因尝试SSLv3而不是tls ..
OpenSSL :: SSL :: SSLError(SSL_connect返回= 1 errno = 0状态= SSLv2 / v3读取服务器问候A:未知协议):
app / services / parent_communicator.rb:261:在send_new_enrollment_invite'
app/services/parent_communicator.rb:403:in
块中的initial_invite'
app / services / parent_communicator.rb:393:在initial_invite'
app/services/parent_communicator.rb:104:in
evaluate_enrollment_for_invite'
app / controllers / programs_controller.rb:115:在`signup_reminder'