Skip to content

Instantly share code, notes, and snippets.

@melvitax
Last active October 25, 2017 18:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save melvitax/13208368ee0c90d0ed4e74cefd847c1c to your computer and use it in GitHub Desktop.
Save melvitax/13208368ee0c90d0ed4e74cefd847c1c to your computer and use it in GitHub Desktop.
melvin@allforces.com
IN MAILGUN
1. Add the Domain to Mailgun
2. In the Domain Information section, select "Manage SMTP credentials", add an email address and choose a password.
IN GOOGLE DOMAINS
1. Ensure you do not have email forwarding set up under "Configure Mail"
2. Select domain and go to "Custom resource records" under "Configure DNS"
3. Add the MX record:
- NAME:
leave this blank, it will default to "@"
- TYPE:
MX
- VALUES:
mxa.mailgun.org
mxb.mailgun.org
Once entered the values will be translated to "10 mxa.mailgun.org." and "10 mxb.mailgun.org."
4. Add the SPF Record
- NAME:
leave this blank, it will default to "@"
- TYPE:
TXT
- VALUE:
v=spf1 include:mailgun.org ~all
5. Add the Domain Key Record
- NAME:
smtp._domainkey or whatever subdomain is specified by Mailgun in the domain page under "Domain Verification & DNS"
- TYPE:
TXT
- VALUE:
paste the key provided by Mailgun, it looks like this "k=rsa; p=MIGfKLJFJSHKSDHFKHJFS..."
and it's in the Mailgun domain page under "Domain Verification & DNS"
IN MAILGUN
1. Verify that the DNS was set up properly by slecting "Check DNS Records" under "Domain Verification & DNS".
If you get an error, ensure that the expected value is the same as indicated.
You might need to wait a few minutes for the Google DNS changes to take affect.
IN GMAIL
1. Go to Accounts > Import in GMail settings and select "Add another email ddress" under "Send email as".
2. Enter the email, keep the alias button checked
3. Enter the SMTP Credentials
- SERVER
smtp.mailgun.org
- USERNAME
the email address
- PASSWORD
the password you enetered in Mailgun's SMTP credentials
4. Save and verify
5. Check your GMail for the email verification code swent by GMail
DONE!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment