The user, Wall-E, set up a Discourse instance on GCP with Ubuntu 18.04 and configured DNS and email via Namecheap. Despite following Namecheap’s setup guide and adding SPF and DKIM records, the admin registration email was not received. Support confirmed the records were added, but the issue persisted. pfaffman suggested changing the notification email in app.yml to use the user’s actual email address instead of noreply@discourse.solarnauts.net, as the provider might block emails from that address. riking clarified that ./launcher rebuild app should be used after the change. Wall-E applied the change and rebuilt the app, but still did not receive the email. Ultimately, Wall-E switched to Mailgun, which resolved the issue, noting that it was better documented and should have been used from the start. Wall-E thanked the community for the help.
I am not getting the admin registration email at my email address, although it does receive emails from e.g. my personal gmail account.
I contacted Namecheap support to let them now about discourse requirement for the email:
To ensure mail deliverability, you must add valid SPF and DKIM records in your DNS. See your mail provider instructions for specifics.
They said SPF records were already setup. And they added the DKIM record following that request. Said to wait 1 hour for things to propagate. But after one hour, the admin registration email still won’t reach me.
Here is a screenshot of what things look like on Namecheap (i’ve hidden the IP address of my VM).
Out of likely that Discourse is sending mail as noreply@discourse.solarnauts.net and your provider refuses to send from that address. See the comment at the end of the app.yml to change the notification email address
So, I uncommented the line in the app.yml file and replaced the address with my email blah@solarnauts.net like this: - exec: rails r "SiteSetting.notification_email='blah@solarnauts.net'"
Then I did ./launcher rebuild app
I did the Admin registration again. I still don’t get the email.