# Hostname does not match server certificate

**URL:** <https://meta.discourse.org/t/hostname-does-not-match-server-certificate/65350>\
**Category:** Self-hosting\
**Created:** [Juin 28, 2017, 7:53 UTC](https://meta.discourse.org/t/hostname-does-not-match-server-certificate/65350 "2017-06-28T19:53:10Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![elijah](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/elijah/32/104055_2.png) [@elijah](https://meta.discourse.org/u/elijah)\
**Post date:** [Juin 29, 2017, 5:49 UTC](https://meta.discourse.org/t/hostname-does-not-match-server-certificate/65350/5 "2017-06-29T17:49:57Z")

</div>

> [@Troubleshoot email on a new Discourse install](https://meta.discourse.org/t/troubleshoot-email-on-a-new-discourse-install/16326/242):
>
> Job exception: hostname “smtp.blockchainers.cat” does not match the server certificate
> 
> …
> 
> DISCOURSE\_SMTP\_ADDRESS: smtp.blockchainers.cat

That resolves to a single IP address for me (46.16.61.50) and the server there has a certificate for `srv.cat` and `*.srv.cat`, not for anything `blockchainers`. That’s why you are getting the error. On SMTP connection, the banner identifies the machine as `fnsib-smtp07.srv.cat`, but DNS lookups of that name don’t return that IP address (although it does return six others near by).

(BTW, I checked the cert with [https://ssl-tools.net/mailservers](https://ssl-tools.net/mailservers) in case other people want to test their servers.)

I think you need to get the \*.srv.cat name for that mail server.

---

_[View the full topic](https://meta.discourse.org/t/hostname-does-not-match-server-certificate/65350)._
