Docs / Sarpius Mail

Sarpius Mail

Sarpius Mail sends transactional email for your apps: password resets, receipts, notifications. A mail resource belongs to a Project, gets a shared sender address straight away, and can send from your own domain once you add a few DNS records. Your app talks to it over SMTP or a small HTTP API, using credentials the platform injects into the app. It is for mail your app triggers about one person, not for newsletters or bulk marketing.

What a mail resource is

Create a mail resource in the Mail section of a Project (or with POST mail, scope mail:write). It is Active at once and sends as noreply@<name>.sarpiusmail.nl, a shared sender address derived from the resource name. The resource page has four tabs: Overview, Send log, Links and Domains.

  • Mail leaves from a dedicated relay run by the platform, not from your app container, and is signed with DKIM.
  • Send log: the status per recipient for the 50 most recent messages (accepting, queued, delivered, deferred, bounced, failed, unknown) and the route it came in by (SMTP, API or console). Message bodies are never stored or shown, and delivery records are kept for 30 days.
  • Paused and deleted: a paused resource cannot send (resource_paused); the platform pauses a resource for abuse reasons, see limits below. A deleted resource stops existing and its credentials stop working.
  • Send test mail: the console can send one message to an address you enter. It counts as a normal recipient.

Linking a resource to an app

Link a resource to a Component (and an environment; production by default) from the Project, or with POST mail/{id}/links. You need at least editor access on the Project. The platform creates a credential for that link, writes eight variables into the app's environment and redeploys it.

  • SMTP_HOST (smtp.sarpiusrelay.nl), SMTP_PORT (587), SMTP_SECURE (starttls), SMTP_USER and SMTP_PASS.
  • MAIL_FROM, set to the shared sender address.
  • MAIL_API_URL (https://api.sarpiusrelay.nl/v1/messages) and MAIL_API_KEY, the bearer key for the HTTP API.
  • Env prefix: an optional prefix, for example TX, which gives TX_SMTP_HOST and so on, so one app can link several resources.

Linking never overwrites a variable you set yourself: if the app already has one of the names, the request fails with 409 env_collision and lists them. A resource that is not active cannot be linked (resource_not_active), and the same resource cannot be linked twice to the same app, environment and prefix (already_linked).

Rotate credentials (POST mail/{id}/links/{app_id}/rotate) issues a new SMTP password and API key and rewrites the variables. Unlink revokes the credential first and then strips the variables from the app: the revocation is the guarantee, the cleanup is best effort. If the cleanup fails you get 500 env_strip_failed, and the credential is already dead; retry to clean the variables.

Sending

  • SMTP: connect to smtp.sarpiusrelay.nl on port 587 with STARTTLS (port 465 with direct TLS also exists), and authenticate with SMTP_USER and SMTP_PASS. Authentication is refused without TLS.
  • HTTP API: POST to MAIL_API_URL with the header Authorization: Bearer <MAIL_API_KEY>. A message needs to (an array of recipients), subject and text or html, and optionally from, cc, bcc, reply_to and attachments (filename, content_type, content_base64). Send an Idempotency-Key header so a retry cannot send the message twice; a request that is still being processed answers 409 in_progress.
  • Public API and MCP: GET mail/{id}/messages and POST mail/{id}/messages (scope mail:send) are in the public API, with the MCP tools send_mail, list_mail_messages and get_mail_message. The message is accepted with 202 and goes into a durable queue; delivery status shows up in the send log afterwards.
  • Size: the HTTP API refuses a message over 10 MB, a message sent through the console or the public API route over 2 MB.

The From address is checked on the message header as well as on the envelope. It has to be the shared noreply@<name>.sarpiusmail.nl address, or an address on a verified domain of the same resource. Anything else is refused with sender_not_allowed (SMTP 553).

Sending from your own domain

In the Domains tab (or with POST mail/{id}/domains) add a domain you own, for example example.com. The platform generates a 2048-bit DKIM key for it, usually within about 15 seconds, and shows the DNS records to create: their type, name and value, and whether each one has been found yet. Create them at your DNS provider (or have Sarpius DNS do it, see below) and press Check now.

  • Three ways to add a domain: type it, pick a domain that already points at one of your apps in Sarpius Router (ownership is then already proven), or pick a zone hosted on Sarpius DNS (the records are then set for you).
  • Status: pending, verified, unverified or lost. A new DNS record can take up to an hour to show up. Verification asks two public resolvers and both have to see the record; a resolver that fails is never counted as "record missing".
  • Ongoing check: verified domains are re-checked every hour. A domain becomes unverified only after two checks in a row with the records missing; from then on mail from it is refused with domain_unverified until you fix the records.
  • A domain you add must be a customer domain: platform domains and IP addresses are refused (invalid_domain), and the same domain cannot be added twice (domain_exists). A Sarpius DNS domain that already sends mail from another mail resource is refused (sarpidns_domain_in_use).
  • Removing a domain stops sending from it immediately.

Limits and refusals

  • Sending limits are per account, across all your mail resources, and grow with trust. Every account starts at 10 recipients per hour and 50 per day.
  • A verified account in good standing (identity check passed, or a settled iDEAL top-up of at least EUR 10) sending from a mail resource that is at least three days old gets 100 recipients per hour and 1,000 per day.
  • Trusted accounts (set by our team, and verified) get 1,000 recipients per hour and 10,000 per day. A suspended account cannot send.
  • Recipients in one message: at most 10 at the starting level and 50 above it. A message to more than that is split by the client; in SMTP the recipient past the limit is answered with too_many_recipients.
  • Your level is checked for every message. If it drops during an SMTP session, the message is answered with rate_limited and can be retried.
  • Free quota: the first 100 recipients each month are free.
  • Spam filtering and virus scanning happen before a message is accepted. A message the filter rejects is refused with rejected_spam.
  • Volume spike protection: a resource older than three days that suddenly sends at least 20 recipients in an hour and more than five times its own hourly average of the previous seven days is paused automatically. Before that, the fixed hourly limit holds a new resource back.
  • Restricted or not yet scored accounts: an account the platform treats as restricted cannot go past the free 100 even with a balance.

Refusal reasons you can see, with the HTTP status of the API: rate_limited (429, retry later), insufficient_balance (402), sender_not_allowed, domain_unverified, too_many_recipients, message_too_large, rejected_spam, recipient_rejected and public_id_conflict (all 422), resource_paused (423), credential_revoked (401), in_progress (409) and temporarily_unavailable (503, retry with the same Idempotency-Key). The console shows the code of the last refused message in the send log.

Pricing

The first 100 recipients each month are free. Above that, each recipient costs EUR 0.001, taken from your wallet balance.

Hinweis

Only money you topped up pays for mail. Promotional credit (referral, partner or coupon credit) does not. Without enough balance, a recipient beyond the free 100 in a month is refused with insufficient_balance.

What it does not do yet

  • No bulk or marketing mail, and no inbound mail: the relay does not receive mail for you.
  • No message bodies in the send log, and no log older than 30 days.
  • No separate higher sending limits for a verified domain: the same hourly and daily limits apply to the resource.
  • No metrics endpoint for the mail service itself yet.
Hinweis

Sarpius Mail is a product that staff can switch off per account or for everyone. The console keeps listing and metadata readable even then.

Sarpius ist ein Handelsname von Synthwave-technologies.nl · KvK 73239038 · USt-IdNr. NL002410192B67 · Apeldoorn, Niederlande

(c)2026 Sarpius. Alle Rechte vorbehalten.

Gehostet in der EU