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

It's not possible to run mail_room over SSL, even if the host is localhost #47

Closed
sixtyfive opened this issue Oct 3, 2015 · 8 comments

Comments

@sixtyfive
Copy link

/usr/local/lib/ruby/2.1.0/openssl/ssl.rb:240:in `post_connection_check': hostname "localhost" does not match the server certificate (OpenSSL::SSL::SSLError)
        from /usr/local/lib/ruby/2.1.0/net/imap.rb:1456:in `start_tls_session'
        from /usr/local/lib/ruby/2.1.0/net/imap.rb:1047:in `initialize'
        from /home/git/gitlab/vendor/bundle/ruby/2.1.0/gems/mail_room-0.5.2/lib/mail_room/mailbox_watcher.rb:20:in `new'
        from /home/git/gitlab/vendor/bundle/ruby/2.1.0/gems/mail_room-0.5.2/lib/mail_room/mailbox_watcher.rb:20:in `imap'
        from /home/git/gitlab/vendor/bundle/ruby/2.1.0/gems/mail_room-0.5.2/lib/mail_room/mailbox_watcher.rb:88:in `log_in'
        from /home/git/gitlab/vendor/bundle/ruby/2.1.0/gems/mail_room-0.5.2/lib/mail_room/mailbox_watcher.rb:69:in `setup'
        from /home/git/gitlab/vendor/bundle/ruby/2.1.0/gems/mail_room-0.5.2/lib/mail_room/mailbox_watcher.rb:132:in `run'
        from /home/git/gitlab/vendor/bundle/ruby/2.1.0/gems/mail_room-0.5.2/lib/mail_room/coordinator.rb:19:in `each'
        from /home/git/gitlab/vendor/bundle/ruby/2.1.0/gems/mail_room-0.5.2/lib/mail_room/coordinator.rb:19:in `run'
        from /home/git/gitlab/vendor/bundle/ruby/2.1.0/gems/mail_room-0.5.2/lib/mail_room/cli.rb:52:in `start'
        from /home/git/gitlab/vendor/bundle/ruby/2.1.0/gems/mail_room-0.5.2/bin/mail_room:5:in `<top (required)>'
        from /home/git/gitlab/vendor/bundle/ruby/2.1.0/bin/mail_room:23:in `load'
        from /home/git/gitlab/vendor/bundle/ruby/2.1.0/bin/mail_room:23:in `<main>'
@tpitale
Copy link
Owner

tpitale commented Oct 3, 2015

According to the error, your server certificate is not matching.

@sixtyfive
Copy link
Author

Because it's been made out for the public-facing domain of the server. One of the many reasons why it really needs to be possible to say "I know what I'm doing (or don't and don't care) and really want you to ignore any SSL certificate problems".

Thank you for the prompt answer btw!

@tpitale
Copy link
Owner

tpitale commented Oct 3, 2015

Do you want SSL? You can turn it off for the IMAP server.

@tpitale
Copy link
Owner

tpitale commented Oct 3, 2015

Do you basically want to use verify none?

@sixtyfive
Copy link
Author

Sorry if I came over aggressive in any way, that wasn't intended. In this case I don't really want SSL, but Dovecot is configured to only accept connections through SSL, even when they're from localhost. So basically, yes, I'd like to use verify none.

@tpitale
Copy link
Owner

tpitale commented Oct 3, 2015

Word, I'll add a setting.

@sixtyfive
Copy link
Author

Awesome, thank you! :-)

@tpitale
Copy link
Owner

tpitale commented Oct 8, 2015

@sixtyfive I added a PR, can you please test it?

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

2 participants