Use system SSL certs for SMTP

This commit is contained in:
Kegan Myers 2017-04-15 23:40:44 -05:00
parent d2ba7c1152
commit e6f7043542

View file

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