Guides
Receive email
Receive mail on your domain, route it and reply in the same thread.
NuSend can receive email as well as send it. Mail sent to your inbound address goes straight to Amazon SES. NuSend stores it, scans it for spam and viruses, parses it and delivers it to the API, the dashboard inbox and your webhooks.
Set up receiving
- Open the domain and turn on Receive email.
- Choose an inbound subdomain, for example
inbound.yourdomain.com. - Add the MX record NuSend shows:
10 inbound-smtp.<region>.amazonaws.com. - Create a route for each address you want to accept.
Routes
| Action | What happens |
|---|---|
| Store only | Kept in the inbox and available through the API. |
| Webhook | Stored, and an email.received event is sent to your endpoint. |
| Forward | Stored and re-sent to another mailbox. The destination must be verified first. |
An address can be exact (support@), a catch-all (*@) or plus-tag aware (support+anything@). Mail to unknown addresses is dropped without a bounce, to avoid backscatter.
Spam and virus checks
Each message carries SPF, DKIM, DMARC, spam and virus verdicts. Per route you choose what happens when a check fails: accept, quarantine or drop. Quarantined mail is kept for review and never shows links or images.
The email.received event
{
"type": "email.received",
"data": {
"id": "in_1",
"thread_id": "thr_8k2p1x",
"from": "ada@acme.com",
"to": "support@inbound.yourdomain.com",
"subject": "Re: Question about invoice #1042",
"text": "Thanks, that makes sense.",
"verdicts": { "spf": "pass", "dkim": "pass", "dmarc": "pass", "spam_score": 0.2, "virus": "clean" },
"attachments": [{ "id": "att_1", "filename": "invoice-1042.pdf", "size_kb": 128 }]
}
}Read and reply
# List received mail
curl https://api.nusend.dev/inbound/emails -H "Authorization: Bearer $NUSEND_API_KEY"
# Reply in the same thread
curl -X POST https://api.nusend.dev/emails \
-H "Authorization: Bearer $NUSEND_API_KEY" \
-d '{ "from": "support@inbound.yourdomain.com", "to": ["ada@acme.com"],
"subject": "Re: Question about invoice #1042", "text": "Attached.",
"in_reply_to": "in_1" }'A reply keeps the thread: NuSend sets In-Reply-To and References and sends from the address the person wrote to.
Limits and retention
- Amazon SES receives messages up to 40 MB. NuSend accepts up to 25 MB by default.
- Dangerous attachment types such as
.exeand.jsare blocked, and every attachment is virus scanned. - Download links are signed and expire after 15 minutes.
- Messages are kept for 30 days by default. You can change retention in Inbox settings.