Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Mailgun to Gmail and reply

I have a website example.com and I want my customers to be able to send emails to [email protected]. I am used to using Gmail so I would like to receive all emails to my gmail account: [email protected] and reply to my customers using the Gmail interface.

I am trying to use Mailgun and Amazon's Route 53 to make this all happen. In one direction I would like to make this work:

[email protected] --> [email protected] --> Mailgun --> (transforms the sender address "[email protected]" to some "[email protected]") --> [email protected]

In other words, when the customer sends [email protected] an email, it reaches my Gmail inbox.

In the other direction, when I am replying to my customer using my Gmail web interface that I am familiar with:

[email protected] --> [email protected] --> Mailgun --> (transforms the sender address "[email protected]" to "[email protected]") --> [email protected]

In the second step, since I want to reply to the customer, I just reply to [email protected] and Mailgun will simply change my gmail address to [email protected] before forwarding it to my customer.

Can this be done? If so, how?

Thanks,

like image 372
platypus Avatar asked Nov 28 '13 03:11

platypus


1 Answers

A better way is to just let Gmail do the receiving by putting MX records in Route53 that points to Google's mail servers.

For the sending, put in a TXT record that lets both Gmail and Mailgun send out emails on behalf of your domain:

"v=spf1 include:_spf.google.com include:mailgun.org ~all"

Also you may want to enable DKIM for signing your emails.

like image 173
platypus Avatar answered Sep 28 '22 21:09

platypus