# Problem Sending Activation Email

**URL:** <https://meta.discourse.org/t/problem-sending-activation-email/136997>\
**Category:** Self-hosting\
**Created:** [December 24, 2019, 9:14pm UTC](https://meta.discourse.org/t/problem-sending-activation-email/136997 "2019-12-24T21:14:44Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![nparab](https://avatars.discourse-cdn.com/v4/letter/n/a88e57/32.png) [@nparab](https://meta.discourse.org/u/nparab)\
**Post date:** [December 25, 2019, 11:44pm UTC](https://meta.discourse.org/t/problem-sending-activation-email/136997/5 "2019-12-25T23:44:00Z")

</div>

> [@pfaffman](#):
>
> That message is self explanatory and means that your mail server is misconfigured.

But if I connect via this command:

openssl s\_client -starttls smtp -crlf -connect [mail.mydomain.com:587](http://mail.mydomain.com:587)

it connects properly and I can even send emails. If the mail server was misconfigured then this command also shouldn’t work, right?

Update: On executing this command:

openssl s\_client -servername [mail.mydomain.com](http://mail.mydomain.com) -starttls smtp -crlf -connect [mail.mydomain.com:587](http://mail.mydomain.com:587)

it returns a certificate for [mydomain.com](http://mydomain.com) instead of the certificate for [mail.mydomain.com](http://mail.mydomain.com).

Is this the misconfiguration you were talking about?

For the moment, I have configured Discourse to use this [mydomain.com](http://mydomain.com) (instead of [mail.mydomain.com](http://mail.mydomain.com)) as the DISCOURSE\_SMTP\_ADDRESS in the app.yml file, so that the certificates match. Will this cause any problems?

---

_[View the full topic](https://meta.discourse.org/t/problem-sending-activation-email/136997)._
