OpenSend is open source.Star us on GitHub0
by
  • Features
  • Pricing
  • Self-host
  • AI
  • Docs
0Sign inGet started

Features

  • All features
  • Email API
  • Templates
  • Inbound
  • Webhooks
  • SMTP
  • Broadcasts
  • Audiences
  • Automations
  • Suppressions
  • Domains
  • API keys
  • Metrics
  • Logs

AI

  • Agents
  • Claude
  • Claude Code
  • Cursor
  • Codex
  • GitHub Copilot
  • Gemini CLI
  • v0
  • Bolt
  • Lovable
  • Replit
  • Ask anything

Docs

  • Getting started
  • Webhook guide
  • Sandbox
  • Template gallery
  • React Email
  • Changelog
  • API reference
  • SDK
  • CLI
  • MCP server

Help

  • Support
  • Status
  • Migrate from Resend

Company

  • About
  • Blog
  • Contact
  • Security

Self-host

  • Self-hosting
  • Source on GitHub
  • Nextmail
by
PricingTermsPrivacy
StatusChecking the API

© 2026 OpenSend. All rights reserved.

Self-host

Sending through Nextmail.

One key gives a copy you host its sending, the DNS records of its domains, delivery events and received mail. You pay Nextmail for what you send.

Get startedRead the docs

What you set

The key
NEXTMAIL_API_KEY
System mail
MAIL_FROM
One workspace only
PLATFORM_TENANCY
Another address
NEXTMAIL_API_URL
  • One key

    Set once, on the server.

  • 9 scopes

    What the key has to be allowed to do.

  • A workspace each

    Suppressions, limits and reputation stay apart.

  • Sealed

    A copy of the database alone cannot send.

What it does

Everything that leaves or arrives.

OpenSend keeps the data and the rules. Nextmail does the part that touches other mail servers.

  • Sending

    Each email is handed over with its own id as the key, so a retry cannot send it twice.
  • Domains

    A domain you add gets its DNS records from Nextmail, and is checked there.
  • Events

    Delivered, opened, bounced. Each event is signed, checked and counted once.
  • Receiving

    Mail for your domains comes in through a route Nextmail keeps.
The key

What the key must be allowed to do.

OpenSend gives each workspace a key of its own, and Nextmail lets a key hand out only what it holds. So the key you set needs all of these.

The scopes of the key
ScopeWhat it is used for
account:writeMakes a workspace at Nextmail for each workspace here, and removes it when one is closed.
keys:manageMakes and rotates the key of that workspace.
emails:sendSends sign-in codes, invitations and every email of a workspace.
domains:readReads domains and their inbound routes.
domains:writeAdds, checks and removes domains and their inbound routes.
webhooks:readReads the subscription to the events of a workspace.
webhooks:writeSubscribes your API to the events of a workspace.
settings:readReads the suppression list.
settings:writeChanges the suppression list.
Scope
account:write
What it is used for
Makes a workspace at Nextmail for each workspace here, and removes it when one is closed.
Scope
keys:manage
What it is used for
Makes and rotates the key of that workspace.
Scope
emails:send
What it is used for
Sends sign-in codes, invitations and every email of a workspace.
Scope
domains:read
What it is used for
Reads domains and their inbound routes.
Scope
domains:write
What it is used for
Adds, checks and removes domains and their inbound routes.
Scope
webhooks:read
What it is used for
Reads the subscription to the events of a workspace.
Scope
webhooks:write
What it is used for
Subscribes your API to the events of a workspace.
Scope
settings:read
What it is used for
Reads the suppression list.
Scope
settings:write
What it is used for
Changes the suppression list.
  • No expiry

    The key of each workspace would inherit it.

  • No allowlists

    No IP, address or domain allowlist, and no narrower role.

  • The owning account

    The key belongs to the account that will own the workspaces.

  • Only one workspace?

    Set PLATFORM_TENANCY to shared and the one key does everything itself.

The link

Linked the first time it is needed.

When a workspace first needs it, OpenSend makes its workspace at Nextmail, its key and a webhook back to your API. A retry still ends in one of each.

  • Stored sealed

    The key and the webhook secret are encrypted with a key derived from your secret.

  • A public address

    Events are not posted to a local address. Sending works, and events arrive once the API is public.

  • A refusal waits

    A broken setup is tried again no sooner than a minute later.

  • No key, no sending

    The console says sending is not connected, and nothing is sent.

Services of a new server

  • APIOperational
  • SendingOperational
  • ReceivingOperational
  • WebhooksOperational
  • PaymentsNot connected
  • AssistantNot connected
  • Image hostingNot connected
Later

Your own engine, on your own server.

The sending engine behind Nextmail will run on a server of your own, at an address you give your copy. Then you pay Nextmail nothing. It is not ready yet.

Soon
Questions

Questions.

What people ask before they set the key.

For what you send. Nothing goes to us for a copy you host.

No. Nextmail is what OpenSend sends through. Running its engine yourself comes later.

Events are posted to a public address. Sending works from a local one, and events arrive once your API is public.

Yes, in shared mode, but then they share suppressions, limits and reputation. It is meant for a copy with one workspace.

More in Self-host

  • Self-hostingThe API, the console and the MCP server, running on an account of your own.

Send your first email in a few minutes.

Create a key and send, or clone the repository and run it yourself.

Get startedStar on GitHub0