Hi guys, I’m a noob, but I just got Discourse (running on Digital Ocean) to use Dreamhost SMTP for sending mail and what I figured out SHOULD help you guys with things beyond Dreamhost.
You got to figure out your homie server, instead of putting mail.yourdomain.com you have to put
one of the homie servers such as:
sub3.mail.dreamhost.com
sub4.mail.dreamhost.com
sub5.mail.dreamhost.com
homie.mail.dreamhost.com
To figure out which one of these servers are your homies, check out:
http://wiki.dreamhost.com/Certificate_Domain_Mismatch_Error
See, when I check webmail at my domain I get this:
What that means, is that there’s a conflict between the SSL certificate because the dreamhost doesn’t assign individual certificates for your specific website, but instead uses their certificate from dreamhost.com
In the admin panel for discourse it shows up like this:
Argument: {“type”=>“signup”, “user_id”=>1, “email_token”=>“9067a99d7782276fb747e3c5041ca6e0”, “current_site_id”=>“default”}
Error: Jobs::HandledExceptionWrapper: Wrapped OpenSSL::SSL::SSLError: hostname “mailyourdomainhere.com” does not match the server certificate
To fix this, configure your discourse app.yml like this
Since the bottom level domain is now dreahost, the SSL certificate checks out and your e-mails will start going through!
Things I also tried that probably didn’t matter:
I changed the notification e-mail in discourse to noreply@mydomain.org
I created a noreply@mydomain.org on dreamhost
I hope someone found this helpful and it will likely fix other SMTP issues with other sites! Feel free to correct anything I said, I just started using linux yesterday to get this all to work and have literally had to google how to move around in putty/linux.