New guide: how to warm up a dedicated IP without hurting your reputation. Read now →
Log in
MigoSMTP
Inbound Email

Receive and process incoming email

Turn replies and incoming messages into structured events your application can act on.

AI intent classification sorts replies, out-of-office notes and complaints for you.

Inbound domain
TYPE
NAME
VALUE
MX
replies
mx.migosmtp.com
TXT
replies
v=spf1 include:migosmtp.com ~all
CNAME
_verify.replies
verify.migosmtp.com
Waiting for DNS
MX record
Any subdomain
Point your MX at usAdd an MX record for a subdomain, such as replies.example.com, and mail to it now arrives at MigoSMTP.
Customer
mx.migosmtp
From
Subject
Attachment
{
"from": "[email protected]",
"subject": "Help",
"text": "Hi team…",
"attachments": 1
}
POST to your webhook
Structured
Attachments
Every message becomes dataThe raw email is split into sender, subject, text, HTML and attachments, and returned as clean JSON.
Inbound headers
Received: from mx.gmail
X-Spam-Score: 0.4
Authentication-Results:
spf=pass dkim=pass
dmarc=pass
Return-Path: <[email protected]>
Content-Type: multipart
Subject: Help
Spam · score 0.4Low risk
Auth · SPF and DKIM passTrusted
Size · [n] KBWithin limit
SPF pass
DKIM pass
DMARC pass
Spam score
Auth results
Screened before it reaches youSpam score, SPF and DKIM results travel with each message so your code can decide what to trust.
Inbound mail
Signed POST
/inbound
200 OK
Helpdesk
200 OK
Workflow
Retry in 30s
Webhook
Retries
Posted to your endpointParsed messages are POSTed to your webhook with retries, so tickets, replies and workflows start instantly.
GET /v1/inbound/msg_[id]
GET /v1/inbound/msg_[id]
Accept: application/json
Response
200 OK
{ "attachments": [
{ "url": "…" } ] }
Short-lived links
Attachment ready
Pull model
Signed URLs
Fetch attachments on demandLarge attachments stay in storage until you ask, keeping webhook payloads small and fast.
Inbound classifier
AI
“Where is my order?”Support request
Support
“Invoice attached”Billing
Finance
“Please unsubscribe me”Opt-out
Suppress
“Maybe next quarter…”Unclear
Human
Intent detection
Human fallback
AI reads replies and routes themEach inbound message is classified by intent, then sent to the right queue or webhook. Low-confidence ones go to a human instead of guessing.
Point MX
Parse
Screen
Deliver
Fetch
AI router
SMTP relayREST APIWebhooksDedicated IPsDKIM signingInbound parseTemplatesAnalyticsSuppression listsReputation monitoringEmail validationTeam roles and audit logSMTP relayREST APIWebhooksDedicated IPsDKIM signingInbound parseTemplatesAnalyticsSuppression listsReputation monitoringEmail validationTeam roles and audit log
Capabilities

Handle replies like any other event

Inbound domains

Point an MX record at MigoSMTP for a subdomain you choose.

Point the MX record of a subdomain you choose, such as reply.example.com, at MigoSMTP and we accept mail for that domain on your behalf. Your main mailbox provider is untouched. This is the usual setup for support inboxes, reply tracking and email-to-ticket workflows.

  • Use a dedicated subdomain
  • No change to your primary mail
  • Verify DNS from the dashboard

Parsed to JSON

Headers, body and attachments arrive in a clean structure.

Raw MIME is hard to work with. We parse each message into a clean structure with headers, plain text, HTML, sender, recipients and attachments, so your application reads fields instead of writing a parser.

  • Headers, text and HTML separated
  • Attachments listed with metadata
  • JSON delivered to your endpoint

Routing rules

Send different addresses to different endpoints.

Routing rules decide where each address goes. Send support@ to your helpdesk, invoices@ to finance automation and a catch-all to a review queue, all from one inbound domain.

  • Route by address or pattern
  • Multiple endpoints per domain
  • Change rules without code

Attachment handling

Receive files with size limits you control.

Accept files up to limits you set, so a large attachment cannot overwhelm your endpoint. Attachments arrive alongside the parsed message and are available for your workflow to store or process.

  • Size limits you control
  • Attachment metadata included
  • Fits document and receipt workflows

Spam and virus checks

Screen incoming mail before it reaches your app.

Screen incoming mail before it reaches your application. Spam and virus checks remove obvious abuse so your downstream systems only see mail worth processing.

  • Checks run before delivery
  • Reduces junk in support queues
  • Keeps downstream systems cleaner

Signed delivery

Verify each payload came from us.

Each delivery to your endpoint is signed, so your application can confirm that a payload really came from MigoSMTP and was not forged or altered in transit.

  • Verify the signature on every request
  • Reject unsigned traffic
  • Retries if your endpoint is unavailable

How it works

SenderAnyone emails an address on your reply subdomain.
MigoSMTP inboundReceives the message, screens it, parses it to JSON and matches it to a route.
Your applicationReceives a signed webhook with headers, body and attachment details.
STEP 1

Add an inbound domain

Publish the MX record for a subdomain.

STEP 2

Create a route

Match an address pattern and choose a webhook.

STEP 3

Handle the payload

Your app receives each message as JSON.

See it in action

Inbound email in action

Each stage plays automatically. Select one to pause on it. Illustrative interface: all figures and addresses shown are sample data.

app.migosmtp.com/inboundSample data
Domain
reply.example.com
MX
Verified
Mode
Parse
Sample activityReceive
dnsMX record found
verifydomain verified
acceptinbound enabled
testtest mail received
Format
JSON
Parts
Text + HTML
Files
Listed
Sample activityParse
headersextracted
textplain and HTML
attachmentinvoice.pdf
payloadready to deliver
Rules
3
Default
Review
Match
By address
Sample activityRoute
support@to helpdesk
invoices@to finance
catch-allto review queue
rulechange without code
Spam
Checked
Virus
Checked
Signed
Yes
Sample activityProtect
screenspam check passed
scanattachment scanned
signpayload signed
deliver200 from endpoint
Reply handling

Support inboxes, reply tracking and email-to-app flows

Use inbound routes to capture replies to transactional email, create tickets or feed workflows.

  • Per-route webhook endpoints
  • Retry on failure with backoff
  • Searchable inbound logs
  • Size and type limits
At a glance01 / 04
SetupMX record on a subdomain
DeliverySigned webhook
FormatJSON with parsed fields
LimitsMessage and attachment size set per route
Overview

What is inbound email?

Inbound email parsing is the process of receiving email sent to your domain and converting it into structured data your application can use. With MigoSMTP, you publish an MX record for a subdomain, create routes that match address patterns, and each message arrives at your webhook as JSON with headers, text, HTML and attachment information already parsed. It works much like our other event features, so existing webhook handling code can often be reused.

It is meant for developers who need to act on replies and incoming mail without running a mail server. Typical flows include support inboxes that create tickets, reply tracking for transactional mail, and email-to-app features such as uploading documents by email. Routing rules send different addresses to different endpoints, and each delivery is signed so you can verify its origin. Searchable inbound logs let you find a message, inspect the payload sent to your endpoint and replay it if processing failed.

Handling replies matters for deliverability because genuine replies are a strong engagement signal, and unread bounces or complaints sent to a no-reply address are lost. Capturing them lets you act quickly. AI intent classification can sort inbound messages into replies, out-of-office notices, unsubscribe requests and complaints, so your systems respond appropriately. Replies also show which addresses are active, which helps keep lists clean over time and gives you a record of what recipients said. Combined with webhooks and logs, inbound routes close the loop between what you send and what comes back.

Use cases

Common inbound email use cases

Support inbox to ticket

Route support@ on a reply subdomain to your helpdesk endpoint. Each email becomes a ticket with sender, subject and attachments, without polling a mailbox.

Tracking replies to transactional mail

Set a reply-to on a reply subdomain with a token in the address. When someone responds, inbound email routing ties the reply to the right order or conversation.

Email-to-app uploads

Let users forward invoices or documents to a unique address. Parsed attachments arrive at your endpoint, ready to store or process, within the size limits you configure.

Handling auto-replies and unsubscribes

Capture out-of-office notices and unsubscribe requests sent by reply, then update contact status automatically so you stop mailing people who asked you to stop.

Document intake by email

Give each customer or project its own address on your reply subdomain. Forwarded contracts and invoices arrive as parsed attachments and can be filed automatically.

Bounce and complaint mailboxes

Route replies sent to a no-reply or abuse address into your own workflow, so a genuine complaint is read by a person and not lost.

Choosing a method

Inbound parsing or running your own mailbox?

Both receive email. They differ in who maintains the plumbing.

MigoSMTP inboundYour own mailbox or server
How mail arrivesPushed to your webhook as JSONYou poll a mailbox or run a mail server
ParsingHeaders, text, HTML and attachments already structuredYou write and maintain a parser
RoutingRules per address patternYour own code or filters
FailuresRetries and replay from the logsDepends on what you build

Use a dedicated subdomain for inbound so your regular mailboxes are not affected.

AI features

AI-assisted inbound email

Classify

Intent classification

Each inbound message can be labelled as a genuine reply, out-of-office, unsubscribe request, complaint or sales enquiry. You map labels to routes, and low-confidence items go to a person.

Assist

Suggested reply drafts

For support routes, the assistant drafts a response from your knowledge base. A human reviews and sends it; nothing goes out automatically unless you configure that rule yourself.

Copilot

Thread summaries

Long reply chains are condensed into a short summary and a suggested next action, helping agents pick up conversations quickly. Original messages stay available in the logs.

Risk

Spam and abuse scoring

AI risk scoring complements spam and virus checks by rating suspicious inbound messages. You choose whether high-risk items are quarantined, flagged or still delivered.

AI features are assistive: classification and drafts support your workflow, and you decide the routing rules and what is sent.

Best practices

Best practices for inbound email

Use a dedicated subdomain

Put the MX record on a subdomain like reply.yourdomain.com so your normal mailboxes keep working and inbound traffic stays isolated.

Verify every signature

Check the signature header before processing a payload. Treat unsigned requests as untrusted, since anyone could post to a public URL.

Acknowledge fast, process later

Return a success response quickly and queue the work. Slow handlers trigger retries and duplicate deliveries.

Make handlers idempotent

Retries can deliver the same message twice. Deduplicate on message ID so replays from the logs never create duplicate tickets.

Set attachment limits deliberately

Decide maximum size and allowed file types per route. Rejecting oversized or unexpected files early protects downstream systems.

Log the message ID

Store the identifier from each payload next to your record. It makes replays, support lookups and de-duplication straightforward.

FAQs

Inbound email: frequently asked questions

Planning a support inbox or reply workflow? Our team can review the setup with you.

What is inbound email parsing?

Inbound email parsing receives email sent to an address you control and converts it into structured data, usually JSON with sender, subject, body and attachments. Your application gets it by webhook, so it can act on messages without running a mail server.

How do I receive email in my app with MigoSMTP?

Add an inbound domain, publish the MX record for a subdomain, create a route matching an address pattern, and point it at your HTTPS webhook. Each incoming message is posted to that endpoint as signed JSON.

Can I receive email on my main domain?

We recommend a dedicated subdomain so your regular mail is not affected. An MX record sends all mail for that name to the receiving service, so using the root domain would redirect your normal mailboxes.

What happens if my webhook endpoint is down?

Deliveries are retried, and you can replay them from the inbound logs once your endpoint recovers. Return a success response only after you have safely received the payload. Make your handler idempotent, so a replayed delivery changes nothing a second time.

Are attachments included in the payload?

The payload describes each attachment. Size and type limits are set per route, so you decide what your application accepts. Test with a few real files to see how your handler should treat them, and set strict limits for each route.

What is the difference between inbound email and webhooks?

Inbound email handles messages sent to you and posts them to your endpoint. Webhooks more broadly report events about messages you sent, such as delivered or bounced. Inbound uses webhooks as its delivery mechanism, so the same signature checks apply.

Does AI read my inbound email?

Only if you enable it. AI classification and summaries run on routes where you turn them on, and the results are suggestions you map to your own rules. A person can review any message.

Are inbound messages scanned for spam and viruses?

Yes. Incoming mail can be screened before it reaches your application, and you choose whether flagged messages are rejected, tagged or held for review. Every decision is recorded in the logs, so handling stays auditable.

From the blog

Latest analysis, trends and market data

Start sending in minutes.

Create an account, add your domain and send your first email.

Get started Talk to sales