Issue with Discourse not send emails and hostname server certificate

Please fill out the fields below so we can help you better.

My subdomain is: discourse.ashesofcreation.es

I ran this command:

It produced this output:

My web server is (include version):

The operating system my web server runs on is (include version): Ubuntu 16.04.064

My hosting provider, if applicable, is: Clouding.io

I can login to a root shell on my machine (yes or no, or I don’t know): yes

I’m using a control panel to manage my site (no, or provide the name and version of the control panel): Plesk Onyx 17

Hi

I have an issue with an new discourse installation don’t send emails. I look in log and said me this:

Configs tested

With Port 465:

DISCOURSE_SMTP_ADDRESS: ashesofcreation.es
DISCOURSE_DEVELOPER_EMAILS: 'admin@ashesofcreation.es'
DISCOURSE_SMTP_ADDRESS: ashesofcreation.es
DISCOURSE_SMTP_PORT: 465
DISCOURSE_SMTP_USER_NAME: admin@ashesofcreation.es
DISCOURSE_SMTP_PASSWORD: (deleted for this post)

LOG:

Sent mail to admin@ashesofcreation.es (95.1ms) Job exception: hostname "ashesofcreation.es" does not match the server certificate

With Port 587:

DISCOURSE_SMTP_ADDRESS: ashesofcreation.es
DISCOURSE_DEVELOPER_EMAILS: 'admin@ashesofcreation.es'
DISCOURSE_SMTP_ADDRESS: ashesofcreation.es
DISCOURSE_SMTP_PORT: 587
DISCOURSE_SMTP_USER_NAME: admin@ashesofcreation.es
DISCOURSE_SMTP_PASSWORD: (deleted for this post)

LOG:

Sent mail to admin@ashesofcreation.es (80.2ms) Job exception: hostname "ashesofcreation.es" does not match the server certificate

With Port 587 and TLS activated:

DISCOURSE_SMTP_ADDRESS: ashesofcreation.es
DISCOURSE_DEVELOPER_EMAILS: 'admin@ashesofcreation.es'
DISCOURSE_SMTP_ADDRESS: ashesofcreation.es
DISCOURSE_SMTP_PORT: 587
DISCOURSE_SMTP_USER_NAME: admin@ashesofcreation.es
DISCOURSE_SMTP_PASSWORD: (deleted for this post)
DISCOURSE_SMTP_ENABLE_START_TLS: true

LOG:

Sent mail to admin@ashesofcreation.es (95.5ms) Job exception: hostname "ashesofcreation.es" does not match the server certificate

I think that the problem is clear… hostname, but how I see what is this hostname?
Please, somebody could help me? Thanks

Regards, JaPeMo

Hi @JaPeMo,

The submission server on port 587 of ashesofcreation.es does not send any certificate at all. That is the reason for this error.

You do have a Let’s Encrypt certificate that covers that name

https://crt.sh/?Identity=%ashesofcreation.es&iCAID=16418

but it appears that it’s not configured in your software on that server. On port 465, on the other hand, the SMTPS service sends an invalid Plesk-related certificate which is also not your Let’s Encrypt certificate.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.