I hope the answer isn't that we can't do it at all. Email deliverability is something that I'd like to solve on staging as much as possible.
How do we handle spf records on staging sites?
The creation and management of the SPF and DKIM records on staging instances is done by the platformOS support team ( support@platformOS.com ).
As staging is a free environment, we lock down by default the sending of email and sms alerts, except for your designated support email for the staging test emails, noted here:
Because Staging sites do not allow a vanity URL / custom domain name, you don't have access to the DNS records to add SPF as you do on production sites (noted here: https://documentation.platformos.com/developer-guide/integrations/integrating-sendgrid-api-call-notifications#emails-getting-stuck-in-spam-folders-filters )
@AdamC - is there specific SPF / DKIM text records that you think need to be added to the Staging DNS record?
We can review and then add new defaults if they do not open us up to become a free SPAM email relay.
Adam CookThanks. Since we have a lot of emails from staging that end up in spam, I wanted to make sure these measures were either already taken automatically or I could do them myself.
Feb 05 2021 at 18:37
It looks like there is currently no way to manage dns records on staging environments. Even support can't do it right now. But JJ has submitted a ticket, and it sounds like this will be worked on.