From: Tom Hughes Date: Fri, 3 Sep 2010 15:52:31 +0000 (+0100) Subject: Don't allow STARTTLS to be used when sending mail X-Git-Tag: live~6163 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/09e5528ecdcc2b5c8d28666dd09fe1af19afc6b2?ds=sidebyside Don't allow STARTTLS to be used when sending mail Ruby's mail library seems to be very picky about the certificate validity if STARTTLS is used, so disable it. --- diff --git a/config/initializers/action_mailer.rb b/config/initializers/action_mailer.rb index 5221ab22a..e6181072b 100644 --- a/config/initializers/action_mailer.rb +++ b/config/initializers/action_mailer.rb @@ -3,6 +3,7 @@ ActionMailer::Base.smtp_settings = { :address => 'localhost', :port => 25, :domain => 'localhost', + :enable_starttls_auto => false } # Monkey patch to allow sending of messages in specific locales