Understanding Inbound Email

The Vonage Email API supports inbound email as part of the Messages API. You can receive emails sent to Vonage-verified domains and subdomains and deliver them to your application through a webhook.

When an email reaches a verified domain, Vonage receives and processes it, identifies the Vonage Application linked to that domain, and sends a webhook event to the application's configured Inbound URL.

Prerequisites

Before configuring inbound email, make sure that you have:

  • A Vonage API account with Email channel access enabled.
  • At least one verified domain with SPF, DKIM, and DMARC configured.
  • A verified inbound subdomain.
  • A Vonage Application with the Messages capability enabled.
  • The inbound domain linked to a Vonage Application.
  • An inbound webhook URL configured on that application.

The domain link and Inbound URL are mandatory for application-level inbound delivery. See Webhook Routing Priority for what happens when only an account-level webhook is configured.

Required Steps

Inbound email requires additional onboarding and DNS configuration in addition to the SPF, DKIM, and DMARC records used to authenticate outbound email.

Inbound DNS Configuration

The record structure is as follows:

Purpose Type Host / Key Value Description
RECEIVE CNAME <subyourdomain> inbound-smtp.eu.msg.vonage.com Inbound CNAME record

The value shown is an EU example. DNS record values differ by region (EU, US, or APAC); use the exact value Vonage provides for your region. DNS propagation can take up to 72 hours.

Important: This is a mandatory prerequisite. Inbound email is not delivered unless the domain is linked to a Vonage Application with a configured Inbound URL.

In the Vonage API Dashboard:

  1. Go to Application and select Link Your Domain.
  2. Link your verified inbound domain.
  3. Open the application and confirm that the Messages capability is enabled.
  4. Set the Inbound URL under the Messages capability.

Vonage uses the Application ID to determine where to route inbound webhook events. The application-level Inbound URL takes precedence over an account-level inbound webhook. Multiple domains can be linked to one application, and each application receives inbound events only for the domains linked to it.

Inbound Onboarding

DNS Configuration at Onboarding Time

Provide your Account Manager with:

  • The inbound subdomain prefix, such as reply, inbound, or support.
  • The root verified domain.

Vonage generates the DNS record values for your region. Add the records to your DNS provider exactly as provided. Vonage verifies that the records have propagated before activating inbound receiving.

Domain Verification

The inbound domain must be verified before Vonage can route email to it. The verification status transitions are:

INITIATED -> PENDING_VERIFICATION -> VERIFIED
                              -> FAILED_VERIFICATION

If verification fails after 72 hours, contact your Account Manager or raise a support ticket.

Subdomain vs. Root Domain Recommendation

Recommended: Use a dedicated subdomain, such as reply.yourdomain.com or inbound.yourdomain.com, for inbound email.

Using the root domain, such as yourdomain.com, for inbound DNS records can override your existing inbound email configuration. All email sent to @yourdomain.com can then be routed to Vonage, including email intended for a corporate inbox hosted by Google Workspace, Microsoft 365, or another provider. This can break your existing inbound email setup. Recovery may require removing the DNS records and waiting for DNS propagation, during which inbound email can be lost.

A subdomain isolates the Vonage inbound path. For example, reply.yourdomain.com receives only messages sent to addresses at @reply.yourdomain.com; corporate email at @yourdomain.com remains unaffected. You can also use different subdomains for different use cases:

Use case Inbound address Subdomain
Reply tracking reply@reply.acme.com reply.acme.com
Support tickets support@help.acme.com help.acme.com
Notifications alerts@notify.acme.com notify.acme.com

Caution: Use the root domain for inbound email only when the domain is used exclusively for sending and no other service relies on it for receiving email.

Inbound Email Flow and Scenarios

How Inbound Works

The high-level flow is:

  1. A sender sends an email to support@reply.yourdomain.com.
  2. DNS routes the email to the Vonage inbound SMTP service.
  3. Vonage identifies the verified domain or subdomain.
  4. Vonage looks up the Application ID linked to that domain.
  5. Vonage sends a POST webhook event to the application's Inbound URL.

The examples below show representative webhook payloads. Fields such as cc, recipients, context, and reply_to are included when applicable to the email.

Fan-Out Multiple Recipients / Multiple Domains

Vonage fans out an inbound email once for each verified-domain recipient. For each split event:

  • The event has a different message_uuid and a separate CDR.
  • The event is routed to the application linked to that recipient's domain.
  • The recipients array contains all original recipients, preserving the full context.
  • CC addresses are preserved in every split event.
  • Non-Vonage addresses in the to or cc fields remain in recipients but do not generate additional events.

Scenario A: New Inbound Email (No Outbound Context)

For a new inbound email that is not a reply to an outbound email, Vonage checks the to domain against the verified domains, identifies the linked application, and sends the event to its Inbound URL.

{
  "channel": "email",
  "message_uuid": "aaaaaaaa-bbbb-4ccc-8ddd-0123456789ab",
  "to": "support@reply.xyz.com",
  "from": "abc@example1.com",
  "timestamp": "2025-02-03T12:14:25Z",
  "message_type": "text",
  "text": "Inbound message text.",
  "email": {
    "subject": "Email subject",
    "to_name": "support",
    "cc": [
      {
        "address": "audit@xyz.com",
        "name": "audit"
      }
    ]
  }
}

The cc field is optional. It is an array of recipient objects containing an address and, when available, a name.

Scenario B: New Inbound Email to Multiple Recipients / Multiple Verified Domains (Fan-Out)

For example, assume that support@reply.xyz.com is linked to Application A and test@test.xyz.com is linked to Application B. An email addressed to both verified domains and copied to an external address produces equivalent recipient arrays but distinct events.

Webhook event sent to Application A:

{
  "channel": "email",
  "message_uuid": "aaaaaaaa-bbbb-4ccc-8ddd-0123456789ab",
  "to": "support@reply.xyz.com",
  "from": "abc@example1.com",
  "timestamp": "2025-02-03T12:14:25Z",
  "message_type": "text",
  "text": "Inbound message text.",
  "email": {
    "subject": "Email subject",
    "to_name": "support",
    "recipients": [
      {
        "address": "support@reply.xyz.com",
        "name": "support"
      },
      {
        "address": "test@test.xyz.com",
        "name": "test"
      },
      {
        "address": "external@example.net",
        "name": "external"
      },
      {
        "address": "audit@example.net",
        "name": "audit"
      }
    ],
    "cc": [
      {
        "address": "audit@example.net",
        "name": "audit"
      }
    ]
  }
}

Webhook event sent to Application B:

{
  "channel": "email",
  "message_uuid": "bbbbbbbb-cccc-4ddd-8eee-1234567890bc",
  "to": "test@test.xyz.com",
  "from": "abc@example1.com",
  "timestamp": "2025-02-03T12:14:25Z",
  "message_type": "text",
  "text": "Inbound message text.",
  "email": {
    "subject": "Email subject",
    "to_name": "test",
    "recipients": [
      {
        "address": "support@reply.xyz.com",
        "name": "support"
      },
      {
        "address": "test@test.xyz.com",
        "name": "test"
      },
      {
        "address": "external@example.net",
        "name": "external"
      },
      {
        "address": "audit@example.net",
        "name": "audit"
      }
    ],
    "cc": [
      {
        "address": "audit@example.net",
        "name": "audit"
      }
    ]
  }
}

Scenario C: Reply to an Outbound Email (With reply_to Header Set)

When the inbound email contains a reply_to header that identifies the outbound conversation, the event includes the original outbound message in context.

{
  "channel": "email",
  "message_uuid": "cccccccc-dddd-4eee-8fff-2345678901cd",
  "to": "support@reply.xyz.com",
  "from": "abc@example1.com",
  "timestamp": "2025-02-03T12:14:25Z",
  "message_type": "text",
  "text": "Thanks, I have a question about my order.",
  "context": {
    "message_uuid": "11111111-2222-4333-8444-555555555555",
    "message_from": "orders@example.com"
  },
  "email": {
    "subject": "Re: Order confirmation",
    "to_name": "support",
    "reply_to": "orders@example.com",
    "recipients": [
      {
        "address": "support@reply.xyz.com",
        "name": "support"
      }
    ]
  }
}

Scenario D: Reply to an Outbound Email (No reply_to Header Set)

If the reply does not include a reply_to header, Vonage inserts the verified-domain address into to and still links the original outbound email through context.

{
  "channel": "email",
  "message_uuid": "dddddddd-eeee-4fff-8000-3456789012de",
  "to": "support@reply.xyz.com",
  "from": "abc@example1.com",
  "timestamp": "2025-02-03T12:14:25Z",
  "message_type": "text",
  "text": "I am following up on this request.",
  "context": {
    "message_uuid": "66666666-7777-4888-8999-000000000000",
    "message_from": "orders@example.com"
  },
  "email": {
    "subject": "Re: Order confirmation",
    "to_name": "support"
  }
}

Scenario E: HTML Email with Attachments

For an HTML email or an email containing attachments, the event uses message_type: "content". The content array can contain text, html, and file entries. A file entry has a Vonage-hosted url and the original file name.

{
  "channel": "email",
  "message_uuid": "eeeeeeee-ffff-4000-8111-4567890123ef",
  "to": "support@reply.xyz.com",
  "from": "abc@example1.com",
  "timestamp": "2025-02-03T12:14:25Z",
  "message_type": "content",
  "content": [
    {
      "type": "text",
      "text": "Plain-text version of the message."
    },
    {
      "type": "html",
      "html": "<p>HTML version of the message.</p>"
    },
    {
      "type": "file",
      "url": "https://api.vonage.com/media/inbound/attachment-123",
      "name": "order-details.pdf"
    }
  ],
  "email": {
    "subject": "Order details",
    "to_name": "support"
  }
}

Customer users can send attachments up to 5 MB. Vonage uploads each attachment and provides a URL that is valid for 2 days.

Important Behaviors and Edge Cases

Webhook Routing Priority

Vonage routes inbound events using the following priority:

Configuration Destination
Domain linked to an application The application's Inbound URL. This takes precedence over an account-level webhook.
Domain not linked to an application The account-level Inbound webhook, if configured.
Neither configured Inbound events are dropped.

Size Limits

Payload limits and attachment size are separate limits:

Limit Maximum
Email body 100 KB
Total network-level payload 200 KB
Individual attachment 5 MB

The 100 KB body limit applies to the email body. The 200 KB limit applies to the total network-level payload; it is not an attachment limit. Attachments can be up to 5 MB because Vonage hosts them separately and provides URLs valid for 2 days.

Further Information