# How to set up an inbound route

## What is an inbound route?

Inbound email routing accepts and parses the contents and attachments of any emails sent to a unique email address that is provided to you by MailerSend, or any incoming email for a connected domain or subdomain. It then sends the parsed results to your chosen application's URL.

## How does it work?

Once an inbound route has been added to one of your verified domains, all emails sent to that domain will be logged in the **Inbound activity** section of your inbound route page. If configured to do so, the inbound email will be forwarded to a specified email address or posted to an endpoint URL.

You can choose the dedicated email address provided by MailerSend or your own subdomain email address to receive and process incoming emails.

## When to use an inbound route

You can set up an inbound route to allow users to converse within your application or website.

**For example:** If your web app has a messaging feature where users can reply to comments or messages via email, you can set up an inbound route to post the reply to an endpoint of your web app.

## How to set up an inbound route

You can set up multiple inbound routes per domain in your MailerSend account. To set up an inbound route:

1\. Navigate to the **Domains** page.

2\. Select the domain for which you want to add an inbound route by clicking on **Manage**.

3\. Scroll down to the **Inbound route** section and click **Add an inbound route**.

4\. In the **Name** field, add a name for your inbound route. This is simply for internal reference purposes.

5\. In the **Inbound address** field, you will find an inbound email address generated by MailerSend. You can use this default email address, or enter your own domain by enabling **Inbound domain forwarding**(optional).

If you are using the default inbound address generated by MailerSend, **skip to step 7**.

If you enable **Inbound domain forwarding**, you can edit your custom subdomain by clicking **Edit**. You will then need to add an MX record to your DNS management platform with the value matching your custom inbound address.

To find instructions for adding the MX record to your DNS zone, or check if your custom inbound address has been accepted, click **"How to fix it?"** followed by **Verify**.

6\. If you have **Inbound domain forwarding** enabled, you have the option to apply **Catch filters** to your inbound route.

These filters allow you to specify which inbound emails are accepted based on the email address recipients are sending **to**. You can choose from the following options:

- **Catch all** \- This option will **not** filter out any inbound emails sent to any email address on the account's inbound domain.

For example: If your inbound domain is _inbound.yourdomain.com_, all inbound emails sent to any address using the domain _@inbound.yourdomain.com_ will be detected, logged in MailerSend, and forwarded to any endpoint URLs/specified email addresses.

- **Catch recipient** \- This option allows you to exclusively capture replies sent to specific email addresses attached to the inbound domain.

For example: If you select **Catch recipient** and enter the email address _hello@inbound.yourdomain.com_ using the **Is** filter, only emails sent to _hello@inbound.yourdomain.com_ will be detected, logged in MailerSend and forwarded to any endpoint URLs/specified email addresses.

You can apply up to 5 email addresses/filters under **Catch recipient**.

7\. Now it’s time to **Filter emails**. The **Filter emails** stepallows you to specify which inbound emails are accepted based on the email address recipients are sending **from**. You can choose from the following options:

- **Match all** \- All emails sent to the inbound route email address will be logged in MailerSend and forwarded to any endpoint URLs/specified email addresses.

- **Match Sender** \- This filter can be used to catch replies only from specific sender email addresses. For example, if you only want to see responses from the sender _abc@specificdomain.com_, this could be configured here. You can apply up to 5 filters.

- **Match domain** \- This can be applied if you only want to catch inbound emails from email addresses on specific domains, for example, _mailersend.com_. This can also be achieved using the **Contains** filter under **Match sender**. You can apply up to 5 filters.

- **Match header** \- The **Match header** option can be used if you only want to catch inbound emails that match specific email headers, for example, subject line. You can apply up to 5 filters.

8\. Under **Route to** you can enter the endpoint URL or email address\* to which you want to route inbound email messages. You can route to up to 5 destinations.

That’s it! Once satisfied with your settings, click **Save route** to create your inbound route.

### Managing the routes with priorities

You can create multiple routes for a single sub-domain. The routes will be evaluated in the order of priority, with lower numbers having a higher priority, so you can create your custom flow to manage incoming emails and route them to the correct place.

**Note:**

Let's take an example: say we have a team of Sales people comprised of Ross, Jenny, and Marta. All incoming emails sent to \*@sales.domain.com have to be dispatched between the three. Any email addressed to Ross will be forwarded to him. Any email addressed to Jenny will be addressed to her, and the rest are to be sent to Marta.Ross's route has a priority of 10, Jenny's 15, and Marta's 20. The email will be tested against the route with the highest priority first, then the next one, etc... until it is forwarded or posted to an endpoint URL.

**Note:**

Priorities range from 0 (highest) to 100 (lowest) and must be unique per sub-domain.

## Where to find inbound emails

To find inbound emails:

1\. Navigate to the **Domains** page.

2\. Select the domain with the inbound route you wish to check by clicking **Manage**.

3\. Click on the inbound route you wish to monitor and scroll down to **Inbound activity**.

Under **Inbound activity**, you will first find the following 3 metrics:

- **Received** \- Displays the number of inbound emails that have been received but not yet processed

- **Forwarded** \- Displays the number of inbound emails that have been received and successfully processed

- **Errors** \- Displays the number of inbound emails that could not be processed due to an unforeseen error(s)

**Note:**

Each successfully received inbound email is counted under **Received** once, if you are routing to multiple destinations (e.g an endpoint URL as well as an email address\*) then the inbound email will be counted multiple times under **Forwarded**, once for each destination.

Below you will find a table containing all inbound activity, including the following information:

- **Event** \- Indicates whether the inbound email has been received, email forwarded, webhook forwarded, or contains an error

- **Sender** \- Displays the email address from which the inbound email was sent

- **Subject** \- Displays the inbound email subject line. Click the email subject to reveal the email header

- **Date** \- Displays the date and time the inbound email was sent

You can filter all incoming emails based on their activity or check all inbound emails sent to your inbound email address.

Inbound emails are free to receive but are counted towards your monthly usage when forwarded or posted to your endpoint URL. One forward is equivalent to one sent email. So you have a combination of 4 endpoint URLs and forwarding addresses, it will count as 4 emails towards your monthly usage.

## Need more info?

Feel free to reach out to support@mailersend.com. A member of our support team will gladly assist you.

- [Getting started: Sending your first email](/content/help/getting-started/index.html)  - [Navigating the app interface](/content/help/navigating-the-dashboard/index.html)
- [Email](/content/help/email/index.html)  - [Add and verify a sending domain](/content/help/how-to-verify-and-authenticate-a-sending-domain/index.html)
  - [How to merge multiple SPF records](/content/help/how-to-merge-spf-records/index.html)
  - [Start sending transactional emails](/content/help/how-to-start-sending-emails/index.html)
  - [SMTP relay](/content/help/smtp-relay/index.html)
  - [Testing email sending with blackhole recipients](/content/help/how-to-test-email-sending-in-mailersend/index.html)
  - [Email Activity](/content/help/activity/index.html)
  - [Analytics](/content/help/analytics/index.html)
  - [Bulk email sending](/content/help/schedule-bulk-emails-with-the-bulk-endpoint/index.html)
  - [Custom headers](/content/help/custom-headers/index.html)
  - [Custom unsubscribe headers](/content/help/how-to-add-a-custom-unsubscribe-header/index.html)
  - [Sending domains](/content/help/what-is-a-sending-domain/index.html)
  - [Domain reputation](/content/help/domain-reputation/index.html)
  - [Domain tracking options](/content/help/domain-tracking-options/index.html)
  - [Personalization in emails](/content/help/how-to-use-personalization/index.html)
  - [Sender identities](/content/help/send-email-on-behalf-of-clients/index.html)
  - [Split Testing](/content/help/a-b-split-testing/index.html)
  - [Surveys](/content/help/how-to-add-a-survey-to-your-emails/index.html)
  - [Tagging emails](/content/help/how-to-tag-emails/index.html)
  - [Templates](/content/help/how-to-create-a-template/index.html)
  - [How to translate email templates automatically](/content/help/template-translations/index.html)
  - [How to configure SMTP connections correctly (421: Service not available error)](/content/help/smtp-configuration-421-error/index.html)
  - [How to enable Google Email Actions & Highlights](/content/help/enable-google-email-actions/index.html)
  - [How transactional emails work](/content/help/how-transactional-emails-work/index.html)
  - [The difference between transactional emails and marketing emails](/content/help/transactional-email-vs-marketing-email/index.html)
- [SMS](/content/help/sms/index.html)  - [Purchase an SMS phone number](/content/help/how-to-purchase-an-sms-phone-number/index.html)
  - [Start sending SMS](/content/help/how-to-start-sending-sms/index.html)
  - [SMS: How to handle opt-in and opt-out](/content/help/sms-how-to-handle-opt-in-and-opt-out/index.html)
  - [SMS verification and usage limits](/content/help/sms-verification-and-limits/index.html)
- [WhatsApp](/content/help/whatsapp/index.html)  - [Getting started with WhatsApp](/content/help/getting-started-with-whatsapp/index.html)
  - [How to connect and use the WhatsApp sandbox](/content/help/whatsapp-sandbox/index.html)
  - [Managing WhatsApp Business phone numbers](/content/help/managing-whatsapp-business-phone-numbers/index.html)
  - [How to create and manage WhatsApp templates](/content/help/how-to-create-and-manage-whatsapp-templates/index.html)
  - [WhatsApp message activity](/content/help/whatsapp-message-activity/index.html)
  - [WhatsApp inbound messaging: How it works and how to set it up](/content/help/whatsapp-inbound-messaging/index.html)
- [Developer tools](/content/help/developer-tools/index.html)  - [Managing API tokens](/content/help/managing-api-tokens/index.html)
  - [Webhooks](/content/help/webhooks/index.html)
  - [API & SMTP request logs](/content/help/api-smtp-logs/index.html)
  - [REST API response codes](/content/help/rest-api-response-codes/index.html)
- [Deliverability](/content/help/deliverability/index.html)  - [Blocklist monitoring](/content/help/blocklist-monitoring/index.html)
  - [DMARC monitoring](/content/help/dmarc-monitoring/index.html)
  - [How to verify an email list](/content/help/how-to-verify-email-addresses/index.html)
  - [Deferred emails](/content/help/what-are-deferred-bounces/index.html)
  - [Suppressions](/content/help/suppression-list-managing/index.html)
  - [On Hold blocklist](/content/help/on-hold-blocklist/index.html)
  - [Spam complaints](/content/help/spam-complaints/index.html)
  - [403, 422, & 429 errors](/content/help/rate-limits-how-to-reduce-403-422-429-errors/index.html)
  - [What are hard and soft bounces?](/content/help/bounced-emails/index.html)
  - [Improve email deliverability](/content/help/improve-email-deliverability/index.html)
  - [Reduce unsubscribe rates](/content/help/reducing-unsubscribe-rates/index.html)
  - [Account reputation statuses](/content/help/account-reputation-statuses/index.html)
- [Account, billing & add-ons](/content/help/account-settings/index.html)  - [Plans, features and limits](/content/help/plans-features-and-limits/index.html)
  - [Plan add-ons](/content/help/plan-add-ons/index.html)
  - [User management](/content/help/user-management/index.html)
  - [Change password](/content/help/change-password/index.html)
  - [Two-factor authentication](/content/help/two-factor-authentication/index.html)
  - [Switch accounts](/content/help/switch-accounts/index.html)
  - [How to whitelist IPs](/content/help/how-to-whitelist-ips/index.html)
  - [How to add a domain space to your account](/content/help/how-to-add-a-domain-space-to-your-account/index.html)
  - [How to request a dedicated IP](/content/help/how-to-request-dedicated-ip/index.html)
  - [How to set a billing limit on your account](/content/help/how-to-set-a-billing-limit/index.html)
  - [How to change your payment method](/content/help/how-to-change-your-payment-method/index.html)
  - [How to change or cancel your plan](/content/help/how-to-change-or-cancel-your-plan/index.html)
  - [Delete account](/content/help/delete-account/index.html)
  - [VAT Collection for EU Customers](/content/help/vat-collection-eu/index.html)
  - [VAT Collection for UK Customers](/content/help/vat-collection-uk/index.html)
  - [GST Collection for Customers in India](/content/help/gst-collection-india/index.html)
  - [GST Collection for Customers in Canada](/content/help/gst-collection-canada/index.html)
  - [VAT (IVA) Collection for Customers in Chile](/content/help/vat-iva-collection-chile/index.html)
  - [Sandbox mode and the Professional trial](/content/help/sandbox-mode-and-the-professional-trial/index.html)
  - [Sales Tax Collection for Customers in New York](/content/help/sales-tax-collection-for-customers-in-new-york/index.html)
- [Integrations](/content/help/integrations/index.html)  - [How to integrate MailerSend with Zapier](/content/help/how-to-integrate-mailersend-with-zapier/index.html)
  - [How to integrate MailerSend with Supabase](/content/help/how-to-integrate-mailersend-with-supabase/index.html)
  - [How to integrate MailerSend with Airtable](/content/help/how-to-integrate-mailersend-with-airtable/index.html)
  - [How to integrate MailerSend with Slack for email event notifications](/content/help/how-to-integrate-mailersend-with-slack-for-email-event-notifications/index.html)
  - [WordPress](/content/help/how-to-integrate-mailersend-with-wordpress/index.html)
  - [WooCommerce](/content/help/how-to-integrate-mailersend-with-woocommerce/index.html)
  - [How to configure MailerSend on Google Cloud](/content/help/how-to-configure-mailersend-on-google-cloud/index.html)
  - [How to connect MailerSend's MCP with your AI tools](/content/help/how-to-connect-mailersends-mcp/index.html)
- [Agency guides](/content/help/agency-guides/index.html)  - [Creating sub-accounts for clients](/content/help/creating-sub-accounts/index.html)
  - [Sending emails for clients: domains vs. sender identities](/content/help/sender-identities-vs-domains/index.html)
- [API reference ↗](https://developers.mailersend.com/)

- [What is it?](/content/help/inbound-route/index.html#what-is-it)
- [How does it work?](/content/help/inbound-route/index.html#how-does-it-work)
- [When to use it](/content/help/inbound-route/index.html#when-to-use-it)
- [How to set it up](/content/help/inbound-route/index.html#how-to-set-it-up)
- [Managing the routes with priorities](/content/help/inbound-route/index.html#managing-the-routes-with-priorities)
- [Where to find inbound emails](/content/help/inbound-route/index.html#where-to-find-inbound-emails)
