Eman is struggling to get email functionality working on their self-hosted Discourse instance (www.learn.theterrain.io) using SendGrid. Despite setting up a DigitalOcean Droplet, configuring SendGrid API, Reverse DNS, verified sender identity, and authenticated domain — and even switching to port 2525 — emails for admin registration aren’t being delivered. Discourse-Doctor shows no obvious issues, and mail-tester.com also fails to receive test emails. TELNET confirms the API key and port 2525 are working, but a 550 error persists. merefield suggests DNS verification might be the culprit, but Eman confirms DNS is correctly set up per SendGrid support. omarfilip notices a potential domain mix-up involving terrain.io and Mailgun SPF records, but Eman clarifies it was a typo and not the root cause. Ultimately, Eman resolves the issue by manually setting the notification_email via Rails console to a new, dedicated email (forum@domain.com) that’s properly configured in SendGrid. This fix successfully enables email delivery. The issue appears to stem from Discourse using an incorrect or unverified “From” email address, not a SendGrid or DNS configuration error.
Hi! I’ve been trying to get Discourse up and running (armed only with Google and no real knowledge of Ubuntu or anything else). The page is up and running, but when I try and register as the admin, I don’t receive the email.
So far, I’ve:
Created a Droplet on Digital Ocean
Set up Discourse via the Droplet Console
Created a Sendgrid API and Reverse DNS
Verified Sender Identity and Authenticated Domain
I should also say:
I’m running on 2525 because I read that it fixed the problem for a lot of people. It hasn’t in my case, so I’m assuming I’m missing something simple.
Username is “apikey”, so it’s not that error either
Despite all of the above, SendGrid isn’t sending out emails. I ran Discourse-Doctor, and this is what I got:
I also tested with having the emails delivered to a mail-tester address as suggested, but no luck with that either.
TELNET did indicate that the 2525 port is open and that my API key is valid, but I keep getting a 550 error. My hunch is that this is caused by the same underlying issue affecting the Discourse email. But I literally know nothing about this, so I could be way off.
Yeah, their support has been pretty useless so far. They had no idea why it was acting up either. I’ll try following up via email, maybe that might be more effective than chat.
Ah, good eye! But that was a typo, but unfortunately fixing that doesn’t fix the problem as the issue is with the From email by the looks of it. I don’t own terrain.io either.