From e7af0ad99b4dd7d45a6eb144ca22c9b9b145820d Mon Sep 17 00:00:00 2001 From: Florian Krauthan Date: Fri, 27 Mar 2026 06:41:59 -0700 Subject: [PATCH] Added ca_file option to use the SSL_CA_FILE specified file if present (#1302) * Added ca_file option to use the SSL_CA_FILE specified file if present * Per AI suggestion changed to reading env var directly` --- config/environments/production.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/config/environments/production.rb b/config/environments/production.rb index f03508436..fc7120a0a 100644 --- a/config/environments/production.rb +++ b/config/environments/production.rb @@ -83,7 +83,8 @@ Rails.application.configure do user_name: ENV["SMTP_USERNAME"], password: ENV["SMTP_PASSWORD"], tls: ENV["SMTP_TLS_ENABLED"] == "true", - openssl_verify_mode: ENV["SMTP_TLS_SKIP_VERIFY"] == "true" ? OpenSSL::SSL::VERIFY_NONE : OpenSSL::SSL::VERIFY_PEER + openssl_verify_mode: ENV["SMTP_TLS_SKIP_VERIFY"] == "true" ? OpenSSL::SSL::VERIFY_NONE : OpenSSL::SSL::VERIFY_PEER, + ca_file: ENV["SSL_CA_FILE"] } # Ignore bad email addresses and do not raise email delivery errors.