title: Configure MX for SendGrid Inbound Parse and G Suite (Google Apps) on multiple environments
body: <p>I have an app that runs on staging at <code>stg.mydomain.com</code> and production on <code>mydomain.com</code>. The core of the app is the ability for people to run surveys via email, where people can reply to the email with their answers. This is handled via SendGrid's Inbound Parse.</p>
  
  <p>What I now want to do is configure Mailchimp so I can email my customers from something like <code>benjamin@mydomain.com</code>, and get their replies there too. So I'm looking into setting up G Suite (formerly Google Apps) to do this.</p>
  
  <p>I understand what I probably need to do is move Inbound Parse to a subdomain like <code>mail.mydomain.com</code> – but I'm not sure how this would work with the staging environment. Would it be <code>mail.stg.mydomain.com</code>?</p>
  
  <p>Basically I need emails to <code>benjamin@mydomain.com</code> to come to my inbox, but emails to <code>uuid@mydomain.com</code> or <code>uuid@mail.mydomain.com</code> to go to my app via SendGrid.</p>
  
  <p>How do I configure my CNAME and MX records to make this work?</p>