新しいガイド:評判を損なわずに専用IPをウォームアップする方法。 続きを読む →
MigoSMTP
受信メール

受信メールの受け取りと処理

返信や受信メッセージを、アプリケーションが処理できる構造化イベントに変換します。

AIによる意図分類が、返信、不在通知、苦情を自動で仕分けします。

受信ドメイン
種別
名前
値
MX
replies
mx.migosmtp.com
TXT
replies
v=spf1 include:migosmtp.com ~all
CNAME
_verify.replies
verify.migosmtp.com
DNSを待機中
MXレコード
任意のサブドメイン
MXをMigoSMTPに向けるreplies.example.comなどのサブドメインにMXレコードを追加すると、そのサブドメイン宛てのメールがMigoSMTPに届くようになります。
顧客
mx.migosmtp
差出人
件名
添付ファイル
{
"from": "[email protected]",
"subject": "Help",
"text": "Hi team…",
"attachments": 1
}
webhookへPOST
構造化
添付ファイル
すべてのメッセージがデータに生のメールは、送信者、件名、テキスト、HTML、添付ファイルに分解され、整ったJSONで返されます。
受信ヘッダー
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
スパム · スコア 0.4低リスク
認証 · SPFとDKIMがパス信頼済み
サイズ · [n] KB上限内
SPFパス
DKIMパス
DMARCパス
スパムスコア
認証結果
届く前にスクリーニングスパムスコアとSPF・DKIMの結果が各メッセージに付随するため、コード側で何を信頼するか判断できます。
受信メール
署名付きPOST
/inbound
200 OK
ヘルプデスク
200 OK
ワークフロー
30秒後に再試行
Webhook
リトライ
エンドポイントにPOST解析されたメッセージはリトライ付きでwebhookにPOSTされるため、チケット、返信、ワークフローが即座に始まります。
GET /v1/inbound/msg_[id]
GET /v1/inbound/msg_[id]
Accept: application/json
レスポンス
200 OK
{ "attachments": [
{ "url": "…" } ] }
有効期間の短いリンク
添付ファイルの準備完了
プルモデル
署名付きURL
添付ファイルを必要なときに取得大きな添付ファイルは、リクエストするまでストレージに保管されるため、webhookのペイロードは小さく高速なままです。
受信分類器
AI
「注文はどこですか?」サポート依頼
サポート
「請求書を添付します」請求
経理
「配信を停止してください」オプトアウト
抑止
「来四半期かもしれません…」不明
人が対応
意図検出
人による対応へ切り替え
AIが返信を読み取り、振り分けます受信メッセージはそれぞれ意図で分類され、適切なキューまたはwebhookに送られます。確信度の低いものは、推測せずに担当者へ回されます。
MXを設定
解析
スクリーニング
配信
取得
AIルーター
SMTPリレーREST APIWebhook専用IPDKIM署名インバウンドパーステンプレート分析抑止リスト評判モニタリングメール検証チームロールと監査ログSMTPリレーREST APIWebhook専用IPDKIM署名インバウンドパーステンプレート分析抑止リスト評判モニタリングメール検証チームロールと監査ログ
機能

返信を他のイベントと同じように処理

受信ドメイン

選択したサブドメインのMXレコードをMigoSMTPに向けます。

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.

  • 専用のサブドメインを使う
  • No change to your primary mail
  • Verify DNS from the dashboard

JSONに解析

ヘッダー、本文、添付ファイルが整った構造で届きます。

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

添付ファイルの処理

ご自身で設定できるサイズ上限付きでファイルを受信します。

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

スパム・ウイルスチェック

受信メールをアプリに届く前にスクリーニングします。

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

署名付き配信

各ペイロードが当社から送られたものであることを検証できます。

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

仕組み

送信者誰かが、返信用サブドメイン上のアドレスにメールを送ります。
MigoSMTP受信処理メッセージを受け取り、スクリーニングし、JSONに解析して、ルートに照合します。
お客様のアプリケーションヘッダー、本文、添付ファイルの詳細を含む署名付きwebhookを受け取ります。
ステップ1

受信ドメインを追加

サブドメインのMXレコードを公開します。

ステップ2

ルートを作成

アドレスパターンを指定し、webhookを選びます。

ステップ3

ペイロードを処理

アプリが各メッセージをJSONで受け取ります。

実際の動作を見る

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/inboundサンプルデータ
ドメイン
reply.example.com
MX
検証済み
モード
解析
Sample activityReceive
dnsMX record found
verifydomain verified
acceptinbound enabled
testtest mail received
形式
JSON
Parts
Text + HTML
Files
掲載
Sample activity解析
headersextracted
textplain and HTML
attachmentinvoice.pdf
payloadready to deliver
ルール
3
Default
要確認
Match
By address
Sample activityルーティング
support@to helpdesk
invoices@to finance
catch-allto review queue
rulechange without code
Spam
確認済み
Virus
確認済み
署名付き
はい
Sample activity保護
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

数分で送信を始めましょう。

アカウントを作成し、ドメインを追加して、最初のメールを送信します。

無料で始める 営業に相談