How to setup email forwarding for MailGun

When using MailGun you will want to setup an email forwarding known as “routing” which will allow any incoming email to @yourdomain.com to be forwarded to an existing email such as Gmail, Yahoo, Outlook etc.

Log into your MailGun account and click on the “Routes” tab. Now click on the “Create Route” button which you will now enter the following:

Priority:

1

Routes are evaluated in the order of priority from the lowest value to the highest value.

Filter Expression:

match_recipient("user@yourdomain.com")

This is what will match any emails that are sent to the above email which will trigger the fowarding to the bellow email.

If you want to use catchall replace the above with:

match_recipient(".*@yourdomain.com")

Actions:

forward("youremail@client.com")

This is where the email will be forwarded to. You can replace with any email at an external host such as Gmail.

Description:

Forwarding me my email

While you can type anything you want that will help you identify what this action does. I named mine the above.

Now you’re all set. You can add as many as you wish to have different users sent to different emails.

Date: Aug 29, 2014

Filed Under: Web Development

About the Author: Computer Repair, Freelancer, Blogger, Reviewer and all around nice guy!

Leave a Reply




Google PageRank