4
votes

Right now I have dilemma with email part of my projects. I'm using Sendgrid to send and receive emails (via webhook). All email functionality is integrated in my web application and all the emails are stored in the database. I want to know is it possible to do next:

  1. Use Google Apps to receive inbound emails for [email protected]

  2. Use Google Apps to send outbound emails from [email protected]

  3. Use SendGrid or Mandrill to send outbound transactional and news emails from [email protected] and [email protected]

Current problem is in MX records. Both Google and SendGrid MX records are required to be set in my DNS, but as far as I understand only one of them will actually work.

What is the best solution to make it possible? Thank you.

2

2 Answers

4
votes

One possible solution:

  1. Point your MX records to google for your top level domain, domain.com.
  2. Create [email protected] email
  3. Next, create a subdomain (i.e: sub.domain.com) and point the mx records to sendgrid.
  4. Then, set up [email protected] to forward to [email protected]. This way those emails get sent to your application.

Nothing needs to changed for sending outgoing transactional emails with SendGrid. You can send emails from [email protected]. I also recommend to NOT USE [email protected], this hurts your deliverability(https://sendgrid.com/blog/why-you-should-not-use-noreplydomain-com-in-your-emails/)

1
votes

The easiest solution is probably to use a subdomain for either the inbound emails or the outbound emails, so that you can keep the MX records separate. Receive emails to domain.com, send from e.g. mail.domain.com