From 0dbbc16c69652afe63d0b3dd49c06939351e3bc6 Mon Sep 17 00:00:00 2001 From: Alexander Mankuta Date: Mon, 10 Apr 2017 22:48:30 +0300 Subject: More SMTP customization (#1372) * Allow SMTP auth method customization * Add SMTP openssl_verify_mode option support Allows one use self-signed certs with their SMTP server. * Add SMTP enable_starttls_auto option support --- config/environments/production.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'config/environments/production.rb') diff --git a/config/environments/production.rb b/config/environments/production.rb index d299e4f4c..05cced67b 100644 --- a/config/environments/production.rb +++ b/config/environments/production.rb @@ -99,7 +99,9 @@ Rails.application.configure do :user_name => ENV['SMTP_LOGIN'], :password => ENV['SMTP_PASSWORD'], :domain => ENV['SMTP_DOMAIN'] || config.x.local_domain, - :authentication => :plain, + :authentication => ENV['SMTP_AUTH_METHOD'] || :plain, + :openssl_verify_mode => ENV['SMTP_OPENSSL_VERIFY_MODE'] || 'peer', + :enable_starttls_auto => ENV['SMTP_ENABLE_STARTTLS_AUTO'] || true, } config.action_mailer.delivery_method = :smtp -- cgit