GCP, Namecheap, not receiving admin registration email

סיכום מבוסס בינה מלאכותית

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.

My VM is on GCP, with Ubuntu 18.04. Domain and DNS setup with Namecheap. My email is also with Namecheap.

Just got ./discourse-setup to run through.
discourse is at discourse.solarnauts.net.

i’ve setup email according to the Namecheap info with:

Email: blah@solarnauts.net (blah is fake here)
smtp address : mail.privateemail.com
smtp port: 587
smtp username: blah@solarnauts.net

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).

Any idea?

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

After I change it, am I supposed to run again ./discourse-setup?

Use ./launcher rebuild app to apply the change and restart the forum.

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.

Check the logs at the mall service.

I decided to use Mailgun instead, which was better documented, I should have done that to begin with. Everything is working now. Thanks!