Docker 部署 配置文件如下,邮箱没问题,可以收信发信。
# [Email Server]
mailer_provider=smtp
mailer_sender=<user>@agileplus.cn
mailer_options.address=smtp.exmail.qq.com
mailer_options.port=465
mailer_options.domain=agileplus.cn
mailer_options.user_name=<user>@agileplus.cn
mailer_options.password=<ppp>
mailer_options.authentication=plain
mailer_options.enable_starttls_auto=true
sidekiq.log
2017-12-16T13:15:59.376Z 1 TID-ost0qa5u8 WARN: Net::ReadTimeout: Net::ReadTimeout
2017-12-16T13:15:59.376Z 1 TID-ost0qa5u8 WARN: /usr/local/lib/ruby/2.4.0/net/protocol.rb:176:in `rbuf_fill'
/usr/local/lib/ruby/2.4.0/net/protocol.rb:154:in `readuntil'
/usr/local/lib/ruby/2.4.0/net/protocol.rb:164:in `readline'
/usr/local/lib/ruby/2.4.0/net/smtp.rb:950:in `recv_response'
/usr/local/lib/ruby/2.4.0/net/smtp.rb:553:in `block in do_start'
/usr/local/lib/ruby/2.4.0/net/smtp.rb:960:in `critical'
/usr/local/lib/ruby/2.4.0/net/smtp.rb:553:in `do_start'
/usr/local/lib/ruby/2.4.0/net/smtp.rb:518:in `start'
/var/www/homeland/vendor/bundle/ruby/2.4.0/gems/mail-2.6.6/lib/mail/network/delivery_methods/smtp.rb:111:in `deliver!'