Use system SSL certs for SMTP

This commit is contained in:
Kegan Myers 2017-04-15 23:40:44 -05:00
parent a8bb122c6a
commit 3d0a2fa31f

View file

@ -86,6 +86,7 @@ Rails.application.configure do
:openssl_verify_mode => ENV['SMTP_OPENSSL_VERIFY_MODE'],
:enable_starttls_auto => ENV['SMTP_ENABLE_STARTTLS_AUTO'] || true,
:tls => ENV['SMTP_TLS'].presence,
:ca_file => "/etc/ssl/certs/ca-certificates.crt"
}
config.action_mailer.delivery_method = ENV.fetch('SMTP_DELIVERY_METHOD', 'smtp').to_sym