Hi, I have a problem with receiving the activation mail after Discourse was installed.
My process:
I currently have no mailserver so I wanted to run mailserver and Discourse on the same machine. I decided to use docker-mailserver. I’ve ordered a VPS from a German provider and I’m using a Namecheap domain I wasn’t using anymore.
Because I don’t want this domain to be public I switched it with “domain. com” below. I hope that’s ok.
-
Mailserver: I installed the mailserver, created some mail addresses with setup.sh, generated dkim and created a TXT record for it at my DNS provider. I tested the addresses with Thunderbird and I was able to send and receive mails without any problem. Telnet also returns 220 so everything seems to be ok.
Here is screenshot of the DNS records:
SSL-Tools result:
https://i.imgur.com/yqfp894.png -
Discourse I installed Discourse by following the Beginner Docker install guide .
I ran discourse-setup and entered the following data:Hostname : domain.com Email : dun@domain.com SMTP address : domain.com SMTP port : 587 SMTP username : discourse@domain.com SMTP password : ABCDEFG123 LETSENCRYPT_ACCOUNT_EMAIL: tls@domain.com
Then I proceeded to send the activation link to dun@domain. com but it never arrived.
dun@server:~$ tail /var/discourse/shared/standalone/log/rails/production.log
Sent mail to dun@domain.com (69.5ms)
Job exception: hostname "domain.com" does not match the server certificate
Sent mail to dun@domain.com (61.3ms)
Job exception: hostname "domain.com" does not match the server certificate
Sent mail to dun@domain.com (22.8ms)
Job exception: hostname "domain.com" does not match the server certificate
I don’t fully understand what this means because this is the first time I’m configuring TLS. I guess it’s because I’m using a different certificate for the mailserver. How could I use the same certificate for both containers?