Bug #309

imap ssl_connect fails due to missing sni extension

Added by Arie Bikker about 4 years ago. Updated 31 minutes ago.

Target version:
Start date:
Due date:
% Done:


Estimated time:


Our mail provider uses a load balancer in front of the real server. For this to work the connection needs to be made with an additional "server name identification" (SNI).
Otherwise the connection fails because the balancer/server does not know which certificate to use - and consequently does not send any.
I found a workaround by adding the sni info to the ssl context in the file libsylph/ssl.c with the patch as below.
I am no specialist at ssl-programming, but this works for me. Please review the suggested change and possibly commit.

--->8---- additional sni workaround patch based on 3.7 source
  • libsylph/ssl.c Thu Feb 2 09:02:49 2017
    --- /home/user/src/sylpheed/libsylph_ssl.c Fri Nov 22 10:28:00 2018
    • 239,244 **
      --- 239,245 ----
      return FALSE;
      sockinfo->ssl = SSL_new(ssl_ctx_SSLv23);
      + SSL_set_tlsext_host_name(sockinfo->ssl, sockinfo->hostname);
      case SSL_METHOD_TLSv1:
      if (!ssl_ctx_TLSv1) { *******
    • 246,251 ***
      --- 247,253 ----
      return FALSE;
      sockinfo->ssl = SSL_new(ssl_ctx_TLSv1);
      + SSL_set_tlsext_host_name(sockinfo->ssl, sockinfo->hostname);
      g_warning(_("Unknown SSL method *PROGRAM BUG

Updated by Antonio Ospite over 3 years ago

Duplicate of this can be closed


Updated by replica watches 9 months ago Louis Vuitton affirmed past as world leading brand industry. now of Timeless and prestigious, Replica Watches evolved and adapted become in The is not only but also piece art. Wearing it your clicking the eternal The Louis watch over the edition the exquisite fine work inside out. Each is made highest standard best quality spend less but enjoy more.


Updated by Tom Hiddleston about 1 month ago

I really like the information you share. Thanks to that, I know many more interesting and useful things.


Updated by seo mind about 1 hour ago

I was surfing net and fortunately came across this site and found very interesting stuff here. Its really fun to read. I enjoyed a lot. Thanks for sharing this wonderful information. 3 Useful Tools For More Sales


Updated by seo mind 43 minutes ago

I am very enjoyed for this blog. Its an informative topic. It help me very much to solve some problems. Its opportunity are so fantastic and working style so speedy. 15 Second Free Leads Review


Updated by seo mind 42 minutes ago

Admiring the time and effort you put into your blog and detailed information you offer!.. online marketing


Updated by seo mind 40 minutes ago

Welcome to the party of my life here you will learn everything about me. online marketing


Updated by seo mind 39 minutes ago

A great website with interesting and unique material what else would you need. 15 Second Free Leads Review


Updated by seo mind 37 minutes ago

Great Information sharing .. I am very happy to read this article .. thanks for giving us go through info.Fantastic nice. I appreciate this post. online marketing


Updated by seo mind 36 minutes ago

I was taking a gander at some of your posts on this site and I consider this site is truly informational! Keep setting up.. 15 Second Free Leads Review


Updated by seo mind 34 minutes ago

It has fully emerged to crown Singapore's southern shores and undoubtedly placed her on the global map of residential landmarks. I still scored the more points than I ever have in a season for GS. I think you would be hard pressed to find somebody with the same consistency I have had over the years so I am happy with that. Lead Generation


Updated by seo mind 31 minutes ago

Truly, this article is really one of the very best in the history of articles. I am a antique ’Article’ collector and I sometimes read some new articles if I find them interesting. And I found this one pretty fascinating and it should go into my collection. Very good work! Lead Generation


Updated by seo mind 31 minutes ago

You actually make it look so easy with your performance but I find this matter to be actually something which I think I would never comprehend. It seems too complicated and extremely broad for me. I'm looking forward for your next post, I’ll try to get the hang of it! Lead Generation

Also available in: Atom PDF