Its all about Ruby On Rails
ActionMailer
ActionMailer Error: hostname was not match with the server certificate
Jan 28th
You guys may have stuck with following error while using ActionMailer with Rails 2.2.2 .
OpenSSL::SSL::SSLError (hostname was not match with the server certificate):
/usr/lib/ruby/1.8/openssl/ssl.rb:123:in `post_connection_check'
/usr/lib/ruby/1.8/net/smtp.rb:582:in `tlsconnect'
/usr/lib/ruby/1.8/net/smtp.rb:562:in `do_start'
/usr/lib/ruby/1.8/net/smtp.rb:525:in `start'
/vendor/rails/actionmailer/lib/action_mailer/base.rb:671:in `perform_delivery_smtp'
/vendor/rails/actionmailer/lib/action_mailer/base.rb:526:in `__send__'
/vendor/rails/actionmailer/lib/action_mailer/base.rb:526:in `deliver!'
/vendor/rails/actionmailer/lib/action_mailer/base.rb:392:in `method_missing'
/app/controllers/users_controller.rb:40:in `send_email_to_confirm_user'
If you use postfix, then you fix it quickly by disabling tls by setting “smtpd_use_tls=no” in /etc/postfix/main.cf .
Remember to restart postfix and rails app server.