# Receive email

> Let your app receive email at inbound.<your domain>, route it to a webhook or keep it, and read it by API.

Source: https://daster.io/docs/messaging/receive-email/ · Last updated: 2026-11-21

**Receiving** lets your app get email sent to addresses at `inbound.<your domain>`, such as `support@inbound.example.com`. Amazon SES receives the mail in Mumbai. Mail to people's own mailboxes is Business email, not this. Mail to your existing addresses at `example.com` keeps going to your current provider.

## Turn on receiving for a domain

1. Add an email domain and publish its sending records (see [App email](https://daster.io/docs/messaging/app-email/)).
2. Add the MX record below at your DNS provider. The domain's page shows it too.
3. On the domain's page choose **Check records**, then turn **Receiving** on. It turns on only once the MX record is found. DASTER never changes your DNS.

| Type | Name                    | Value                                      |
| ---- | ----------------------- | ------------------------------------------ |
| MX   | `inbound.<your domain>` | `10 inbound-smtp.ap-south-1.amazonaws.com` |

## Routes

On **App email › Receiving** choose **Add route**:

- **Address**: the part before `@`, such as `support`, or `*` for any address at that domain. An exact address wins over `*`.
- **Then**: **Send to a webhook endpoint** (an existing one or a new one; a new endpoint's signing secret is shown once), or **Store only**.

A route can be turned off. Mail to an address without a route, to a route that is off, or over the size limit is **not kept**: DASTER only counts it, and never bounces it to the sender.

## Received email

Received email is kept for 30 days. Its page shows the sender, the text, the HTML as escaped source, the headers, the spam check and the webhook result. Attachments are listed by name, type and size only; DASTER does not keep their contents. You can **Replay to webhook** and **Delete email**.

## Virus and spam checks

Amazon SES scans every received message for viruses. Only a message that SES marked clean is processed. A message that failed the scan, or that SES could not scan, is dropped and never reaches your routes or your webhook.

The spam check uses the SPF and DKIM results, SES's own spam verdict, and blocks program and script attachments. Spam is kept but not sent to your webhook unless you replay it.

## The email.received event

A webhook route sends a signed `email.received` event, like the delivery events. It carries the sender, the address it was sent to, the subject, the first 16 KB of the text, the attachment list and the spam verdict. Check the `X-Daster-Webhook-Signature` header with the endpoint's signing secret.

```json
{
  "type": "email.received",
  "data": {
    "receivedEmailId": "…",
    "to": "support@inbound.example.com",
    "from": "customer@example.net",
    "subject": "Question about my order",
    "attachments": [{ "filename": "photo.jpg", "contentType": "image/jpeg", "sizeBytes": 412000 }],
    "spam": { "verdict": "not_spam" }
  }
}
```

## Read received email by API

Use a key with the `email:receiving` scope:

```http
GET /communications/v1/projects/{projectId}/email/receiving/messages?limit=50
Authorization: Bearer daster_sk_dev_…
```

The answer has `items` and a `nextCursor` for the next page. `GET …/receiving/messages/{id}` returns one email, `POST …/receiving/messages/{id}/replay` sends it to its endpoint again, and `…/receiving/routes` lists and changes routes.

## Limits

| Limit              | Value      |
| ------------------ | ---------- |
| Message size       | 1 MB       |
| Text and HTML kept | 64 KB each |
| Routes per project | 50         |
| Kept for           | 30 days    |
