Teambox email setup – rails 3 – OpenSSL::SSL::SSLError (hostname was not match with the server certificate)

Dec 22 2011 Published by under News

add bypass_ssl_verification_for_open_uri.rb to config/initializers. Make sure the file has right owner/mod setup – I spent about couple of hours and later realize it was owner by root. You need to setup (under ubuntu – chown nobody:www-data bypass_ssl_verification_for_open_uri.rb).

Contents of bypass_ssl_verification_for_open_uri.rb
OpenSSL::SSL::VERIFY_PEER = OpenSSL::SSL::VERIFY_NONE

My configuration for email settings

address: mail.mydomain.com
port: 26
authentication: plain
user_name: name@mydomain.com
password: secret
domain: mydomain.com
enable_starttls_auto: false

No responses yet

Leave a Reply