Inbound Mail Server Set Up

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

  1. Navigate to Email-> Configuration → Outgoing Mail Servers

  2. Click on the domain you wish to receive emails on

  3. Click on Edit and Navigate to the “Routes” section



  4. Click “Add a line” and enter the following based on your functionality requirements:

    1. Route Name

    2. Expression: example: match_recipient('info@mgdemo.tasksuite.com')
      This means all emails that will go to “info@mgdemo.tasksuite.com”

    3. Add one of the following actions:

      1. Forward: will forward the email to another email address

         

      2. 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

      3. 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.

         

  5. 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.