Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OpenSSL::SSL::SSLError on exception #70

Closed
kevinheneveld opened this issue Apr 24, 2012 · 6 comments
Closed

OpenSSL::SSL::SSLError on exception #70

kevinheneveld opened this issue Apr 24, 2012 · 6 comments

Comments

@kevinheneveld
Copy link

Simply adding this gem to my gemfile triggers

OpenSSL::SSL::SSLError (SSL_connect returned=1 errno=0 state=SSLv2/v3 read server hello A: unknown protocol)

error every time ANY email is sent. Removing this gem allows mail delivery to return to normal...

I'm using rails (3.0.11) and actionmailer (= 3.0.11)

@pduersteler
Copy link

+1, not the same, but I get OpenSSL::SSL::SSLError - hostname does not match the server certificate on random times. One time I got this because of a wrong intendation in a yml locale file, one time in a view when I've missed %> and another time in a view when I called .size on a recordset.

Removing the gem from the gemfile OR removing the middleware line from application.rb solves this.

MRI 1.9.3, RoR 3.2.3

@smartinez87
Copy link
Owner

Can you please try adding the following in the initializer and let me know if the error still occurs:

ActionMailer::Base.smtp_settings = {
:openssl_verify_mode => 'none'
}

@jgc94131
Copy link

I've got a similar issue, but I'm unable to send any emails, including exception notifications. Is there a way to configure exception_notifier to log all outgoing messages?

@smartinez87
Copy link
Owner

@jgc94131 so it is a more general issue for you? You can not send any email?

@jgc94131
Copy link

Yes, it's more general. I'd like to log the output of exception_notifier, in places where I have no outbound email service, or if the outbound email service is down.

I do have a specific case of a server being upgraded to postfix from qmail which seems to have broken action_mailer. (side note: even my hp printer can send emails after this change, but not the rails app!)

@smartinez87
Copy link
Owner

This seems to be more like a bug in your interaction between ruby and OpenSSL rather than a bug in ExceptionNotification.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants