阿里云配置redmine邮件发送
2017-05-04 本文已影响647人
gimp
这里是redmine的邮件配置页面。
我之前用的是25端口,一切都很正常。
但最近,阿里云的服务器禁用了25端口。
阿里云平台的安全规则在这里
简单地说,别用25端口了,直接用465端口吧。
不能只是把25改成465,而要参考redmine那个页面的最下面的例子
default:
# Outgoing emails configuration (see examples above)
email_delivery:
delivery_method: :smtp
smtp_settings:
address: smtp.domain.com
port: 465
ssl: true
enable_starttls_auto: true
domain: domain.com
authentication: :login
user_name: redmine@domain.com
password: xxxx
增加了两个配置参数ssl
和enable_starttls_auto
一个便利的设置,最好把邮件发送设置成异步的,替换两行就可以
default:
# Outgoing emails configuration (see examples above)
email_delivery:
delivery_method: :async_smtp # 这一行
async_smtp_settings: #还有这一行
address: smtp.domain.com
port: 465
ssl: true
enable_starttls_auto: true
domain: domain.com
authentication: :login
user_name: redmine@domain.com
password: xxxx