Hi, I have a problem with receiving the activation mail after Discourse was installed.
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:
Discourse I installed Discourse by following the Beginner Docker install guide .
I ran discourse-setup and entered the following data:
Hostname : domain.com Email : email@example.com SMTP address : domain.com SMTP port : 587 SMTP username : firstname.lastname@example.org SMTP password : ABCDEFG123 LETSENCRYPT_ACCOUNT_EMAIL: email@example.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 firstname.lastname@example.org (69.5ms) Job exception: hostname "domain.com" does not match the server certificate Sent mail to email@example.com (61.3ms) Job exception: hostname "domain.com" does not match the server certificate Sent mail to firstname.lastname@example.org (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?