]> git.openstreetmap.org Git - rails.git/commitdiff
Default to allowing TLS for SMTP but without peer verification
authorTom Hughes <tom@compton.nu>
Thu, 17 Feb 2022 00:54:11 +0000 (00:54 +0000)
committerTom Hughes <tom@compton.nu>
Thu, 17 Feb 2022 00:54:11 +0000 (00:54 +0000)
config/initializers/action_mailer.rb
config/settings.yml

index 5cb4ce04e1fb60e43eb4013d02871312f341e590..3921912594d156f3e54b1b7ac139aa444b534c20 100644 (file)
@@ -7,10 +7,10 @@ ActionMailer::Base.smtp_settings = {
   :port => Settings.smtp_port,
   :domain => Settings.smtp_domain,
   :enable_starttls_auto => Settings.smtp_enable_starttls_auto,
+  :openssl_verify_mode => Settings.smtp_tls_verify_mode,
   :authentication => Settings.smtp_authentication,
   :user_name => Settings.smtp_user_name,
-  :password => Settings.smtp_password,
-  :openssl_verify_mode => OpenSSL::SSL::VERIFY_NONE
+  :password => Settings.smtp_password
 }
 
 # Set the host and protocol for all ActionMailer URLs
index 639910f4a001c5ef7b0e56d57767edf9312e2d64..ef46ae216ab66327ba5c2db32037bdd50cae9a33 100644 (file)
@@ -135,7 +135,8 @@ trace_icon_storage: "local"
 smtp_address: "localhost"
 smtp_port: 25
 smtp_domain: "localhost"
-smtp_enable_starttls_auto: false
+smtp_enable_starttls_auto: true
+smtp_tls_verify_mode: "none"
 smtp_authentication: null
 smtp_user_name: null
 smtp_password: null