# 'hostname "mail.domain.tld" does not match the server certificate' :: SNI support? & how to query cert from Discourse container?

**URL:** <https://meta.discourse.org/t/hostname-mail-domain-tld-does-not-match-the-server-certificate-sni-support-how-to-query-cert-from-discourse-container/132002>\
**Category:** Product Support\
**Created:** [27 באוקטובר,‏ 2019,‏ 7:32pm UTC](https://meta.discourse.org/t/hostname-mail-domain-tld-does-not-match-the-server-certificate-sni-support-how-to-query-cert-from-discourse-container/132002 "2019-10-27T19:32:16Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![mreach](https://avatars.discourse-cdn.com/v4/letter/m/9d8465/32.png) [@mreach](https://meta.discourse.org/u/mreach)\
**Post date:** [28 באוקטובר,‏ 2019,‏ 10:52pm UTC](https://meta.discourse.org/t/hostname-mail-domain-tld-does-not-match-the-server-certificate-sni-support-how-to-query-cert-from-discourse-container/132002/2 "2019-10-28T22:52:57Z")

</div>

I did check in to see if SNI could be disabled on the sever and the reply was that it’s not possible. The sysadmin said:

> Please note that there is no supported mechanism for disabling mail SNI, so you will need to work with the Discourse developers to support it. These pages may be of assistance to you in doing that:
> 
> [https://stackoverflow.com/questions/30244745/opensslsslsslcontext-sni-servername-cb-not-working](https://stackoverflow.com/questions/30244745/opensslsslsslcontext-sni-servername-cb-not-working)  
> [https://stackoverflow.com/questions/30238304/opensslx509certificate-showing-certificate-for-wrong-domain](https://stackoverflow.com/questions/30238304/opensslx509certificate-showing-certificate-for-wrong-domain)

---

_[View the full topic](https://meta.discourse.org/t/hostname-mail-domain-tld-does-not-match-the-server-certificate-sni-support-how-to-query-cert-from-discourse-container/132002)._
