User related emails do not arrive after setting custom from address

Hi @jshaffstall,

This is quite a common problem where you configure an Anvil app to send from a custom domain (without Custom SMTP), but you also configure the DMARC DNS records for that domain to require emails to pass SPF or DKIM checks (as you have done with your domain). It is sensible to require those checks, so the correct fix here is to configure Anvil to DKIM-sign the emails coming from your app.

Setting up DKIM to work on a custom domain without custom SMTP requires some setup at our end, and some DNS configuration at your end. You should start by sending an email to support@anvil.works asking to have DKIM signing set up for a particular domain. We will update the necessary configuration, then you will receive an email containing instructions for setting up the necessary DNS entries on your domain. Once that is done, emails from your Anvil app should be correctly DKIM-signed and your deliverability issues should be resolved :slight_smile:

I hope that helps!


P.S. The reason your emails worked from your debug environment is that the custom domain was not considered a valid FROM address in that environment, so something@anvil.app was used instead. Emails from *.anvil.app are always correctly signed by Anvil, so your messages got through just fine.

6 Likes