Source: https://solidhooks.com/guides/load-test-email-ingestion

# How to load test an email ingestion pipeline

Send real email to the source address, give every message its own Message-ID, then compare what you sent with what was stored and delivered. Posting JSON at an HTTP ingest URL tests a different path, and with SolidHooks it fails outright.

Checked 16 Nov 2026.

## What you're testing

An email pipeline takes mail in, parses it, stores it, routes it and sends a signed webhook to your endpoint. With SolidHooks, a source with `provider: "email"` gets an address at `sdhk.events`, and your destination receives JSON over HTTP. It never speaks SMTP. Setup is covered in [email ingestion](https://solidhooks.com/docs/email-ingestion) and the [ingest webhooks via email](https://solidhooks.com/use-cases/ingest-webhooks-via-email) guide, so this page sticks to testing.

## Don't fake the input

A source takes email or HTTP webhooks, never both. An HTTP POST to an email source's ingest URL returns `400 BAD_REQUEST` and tells you to send email instead.

Two other shortcuts skew the numbers. Email sources deduplicate on `Message-ID`, so a thousand copies of one message with the same id give you one event and a test of dedupe. A message with no `Message-ID` is never deduplicated, so a batch with blank ids won't show you how real repeats behave.

## Run a small, honest test

Use a dedicated test source and destination, not production. Send a known batch:

- N messages, each with a unique Message-ID.
- One message that repeats an earlier Message-ID. SolidHooks should treat it as a duplicate and store no second event.
- One oversized message, to check trimming.

Then count. Your endpoint's own log, keyed by Message-ID, is the number to trust. Use the API to cross-check it.

bash

```
# Events stored from the test source (filter with from/to, page with cursor)
curl -s "$API/v1/events?sourceId=src_...&limit=100" -H "authorization: Bearer $SDHK_KEY"
# Deliveries waiting right now: { pending, throttled }
curl -s "$API/v1/deliveries/stats" -H "authorization: Bearer $SDHK_KEY"
# Deliveries used against your quota, and resetAt
curl -s "$API/v1/billing/usage" -H "authorization: Bearer $SDHK_KEY"
```

`GET /v1/stats/dashboard` has the historical outcome counts. Run the snapshot again after the queue empties.

## What trims, queues and costs

Size doesn't cause a rejection. Each source has a `maxPayloadSizeKb` budget (default 256, maximum 4,096), and the stored envelope is trimmed to fit. Text is sliced first, then HTML is dropped whole, then attachments keep their name, type and size but lose their data. Look for `bodyTruncated: true` on the envelope, and `truncated: true` on an attachment.

Attachment bytes never reach your endpoint. The delivered body is the mail server's original JSON with `attachments[].data` set to `null`, so test attachment handling by reading the stored envelope through the API.

Outbound pacing holds deliveries back without dropping them. Plan pacing (Hobby is 10 a second, burst 20) and any `rateLimit` you set on the destination queue deliveries as `throttled` with `throttledReason: "rate_limit"`, and no retry attempt is used. These limits cover sending to your endpoint. SolidHooks publishes no figure for how fast it accepts mail, so measure your own run and don't assume one.

Every routed event is a billable delivery, and a source fanned out to three connections counts three. Retries are free, replays are billed and duplicates aren't counted. Hobby is hard-capped at 10,000 deliveries a month, so size the batch to fit.

## Where SolidHooks fits

SolidHooks stores each message, routes it, retries failed deliveries and signs what it sends, so your endpoint can verify it came from SolidHooks ([delivery signatures](https://solidhooks.com/docs/delivery-signatures)). It doesn't check SPF, DKIM or DMARC on inbound mail, so treat the content as untrusted and route on `body.from` to accept only senders you expect.

It isn't a load-testing tool. There's no API to send test mail. You bring the mail sender and the measurements on your endpoint.

## FAQ

### How do I load test an email ingestion pipeline?

Send real messages to the source address, each with a unique Message-ID. Compare the number sent with events stored and deliveries made. Add one repeated Message-ID and one oversized message to check dedupe and trimming.

### Can I POST to the ingest URL instead of sending mail?

No. A source handles email or HTTP, never both. An HTTP POST to an email source's ingest URL returns 400.

### Will a large test email be rejected?

No. SolidHooks trims the stored envelope to the source's size budget, 256 KB by default. Text can be sliced, HTML dropped and attachment data left out, and the envelope is flagged as truncated.

## Get started

The Hobby plan is free for 10,000 deliveries a month. A load test uses billable deliveries, so run it on a dedicated test source. See [email ingestion](https://solidhooks.com/docs/email-ingestion).
