Mailgun makes use of “Routes” to decide what happens with inbound emails when they receive it on their end. To make use of this functionality you will first need to follow the first two sections: Account Setup and Outbound Mail Server Set Up
Setting Up Routes
Navigate to Email-> Configuration → Outgoing Mail Servers
Click on the domain you wish to receive emails on
Click on Edit and Navigate to the “Routes” section
Click “Add a line” and enter the following based on your functionality requirements:
Route Name
Expression: example: match_recipient('info@mgdemo.tasksuite.com')
This means all emails that will go to “info@mgdemo.tasksuite.com”Add one of the following actions:
Forward: will forward the email to another email address
Store: Will store send the email to TaskFlow to be handled by an inbound email alias
NOTE: Make sure that you create an inbound alias to handle these records
Simply stops the priority waterfall so the subsequent routes will not be evaluated. Without a stop() action executed, all lower priority Routes will also be evaluated.
Once you are done you can click on “Sync Routes” to sync the routes up with mailgun and enable them. Should you wish to clear the route you can simply delete it.
Add Comment