EDIT: This answer is no longer the best solution and may no longer work . See this answer , which is safer.
The certificate name must match the URL on which your application is running.
Not useful ... I get this error with dreamhost, where I have no way to change the ssl certificate. (well, yes, but it's worth it.)
One option is to disable tls. Hope you have something like this in your initializers:
ActionMailer::Base.smtp_settings = { :address => "mail.foo.com", :port => 587, :domain => "foo.com", :user_name => "addy@foo.com", :password => "foofoo", :authentication => "plain", :enable_starttls_auto => true }
Change the enable starttls auto parameter to false (or add it if it is missing).
Warning: this will disable encryption, which means that your username will go through the Internet in plain text
I do not see a better way to do this, so any answers would be interesting.
user208769 Feb 17 2018-11-11T00: 00Z
source share