Did Not Receive Email After Admin Sign Up on New Discourse Installation Page

Problem: Did not receive the email for admin after signing up on the new Discourse successful installation page

Email did not show up in email inbox. Checking the transactional email provider log (e.g., SparkPost > Events) shows ‘Policy Rejection’

reason: 550 5.7.1 Unconfigured Sending Domain <subdomain.domain.com>

Solution: refer to Discourse official solution on uncommenting one line on the app.yml file and rebuild app

Is the email domain correct?

The default email from address is based on the install domain plus subdomain, so if your URL is discourse.example.com it will be:

noreply@discourse.example.com

But if your mail provider is expecting:

noreply@example.com

… you may have problems! To get around this, edit and uncomment this line in app.yml

## If you want to set the 'From' email address for your first registration, uncomment and change:
#- exec: rails r "SiteSetting.notification_email='noreply@example.com'"
## After getting the first signup email, re-comment the line. It only needs to run once.

You’ll need to issue a rebuild after uncommenting the above line and setting the from email address as required.

You can also change this from the command line, if needed:

./launcher enter app
rails r "SiteSetting.notification_email = 'discourse@yoursite.com'"
exit