エラー: OpenSSL::SSL::SSLError (hostname does not match the server certificate)

環境はRuby 1.9.3 + Rails 3.1.3。tail -f pinzo.log:Rails3 のメール送信で "hostname was not match with the server certificate" というエラーが出た場合にはによると以下のエラーはRailsTLSを用いてメールを送ろうとしているために発生するとのこと。

OpenSSL::SSL::SSLError (hostname does not match the server certificate)

メールを送るのはproduction環境だけなので config/environments/production.rb に以下を追記した。

# To stop SMTP over SSL
config.action_mailer.smtp_settings = { :enable_starttls_auto => false }