Bring your own
Amazon SES.
An open-source email marketing app. It runs on your server and sends through your own AWS account.
Write it once. Each contact gets their own copy.
Pick a contact. The variables fill in, and the unsubscribe link is theirs.
Newsletter · Spring update
What you write
Subject: Hello {{ name }}, the spring update is here
<p>Hello {{ name }},</p>
<p>Three new features shipped this month.</p>
<p>{{ postal_address }}</p>
<a href="{{ unsubscribe_url }}">Unsubscribe</a> Default value of {{ name }}: "there"
What the contact gets
To: ana@example.comben@example.comchen@example.com
Hello AnaBenthere, the spring update is here
Hello AnaBenthere,
Three new features shipped this month.
Example Inc, 100 Example Street, Springfield
Unsubscribe
List-Unsubscribe-Post: List-Unsubscribe=One-Click
Example data. Legendsverse sends its email with BYOMailer.
Your AWS account does the sending
Each account connects its own AWS keys. Your contacts, your sender reputation and your AWS bill stay yours.
1
BYOMailer
On your server. It keeps the lists, the editor, the campaigns and the stats.
2
Amazon SES
In your AWS account. It sends each email from your verified domain.
3
Back to BYOMailer
SES events come back through SNS and SQS. Bounces and complaints stop future sends.
Connect your app, your agent or your server
The same API token works for the REST API and the MCP server.
Add a contact from your signup form
Send the email, a name and tags. Other fields become custom attributes.
curl -X POST https://mail.example.com/api/v1/lists/1/contacts \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-d '{
"email": "ana@example.com",
"name": "Ana",
"tags": ["customer"]
}'Let your AI agent draft the campaign
The agent reads stats and writes drafts. A change to a live campaign waits for your yes.
claude mcp add byomailer \
--transport http https://mail.example.com/mcp \
--header "Authorization: Bearer YOUR_API_TOKEN"Hear about each subscribe and send
Each request is a signed POST. Check the signature with your secret.
POST /hooks/byomailer HTTP/1.1
X-Byomailer-Event: contact.subscribed
X-Byomailer-Signature: sha256=SIGNATURE
{
"event": "contact.subscribed",
"occurred_at": "2026-11-17T10:00:00+00:00",
"contact": { "email": "ana@example.com", "name": "Ana" }
}Everything is in the open-source app
Every feature is in the code. Nothing is held back for a hosted version.
- Newsletters
- A block editor, saved segments and A/B tests.
- Sequences
- Drip emails with a delay and filters for each step.
- Automations
- Act when a contact joins a list, gets a tag or finishes a sequence.
- Contacts
- Lists, topics, tags and custom attributes. CSV import and export.
- Templates and blocks
- Reuse a layout. Fill it with variables for each contact.
- Deliverability
- Bounces and complaints stop future sends to that address.
- One-click unsubscribe
- RFC 8058 headers and a preference center for each contact.
- Teams
- Admin, editor and viewer roles. Two-factor sign-in.
Self-hosted or hosted? The honest trade.
A hosted email service is a good choice when you do not want to run a server or an AWS account.
| Topic | BYOMailer | Hosted email services |
|---|---|---|
| Where the app runs | On your server | On the servers of the vendor |
| Who sends the email | Amazon SES, in your own AWS account | The mail servers of the vendor |
| Cost | Your server and your AWS bill. No fee for each contact | A monthly fee that grows with your list |
| Contacts and reputation | In your database and on your sending domain | Stored by the vendor, on shared infrastructure |
| Source code | Open. Read it, change it, audit it | Closed |
| Uptime and support | Your job. One maintainer answers issues | The vendor runs it, with a support team |
Up and running with Docker Compose
- 1Clone the repository.
- 2Copy .env.example to .env and fill it in.
- 3Start the stack with Docker Compose.
- 4Open the setup URL from the log and create the owner account.
git clone https://github.com/amedina068/byomailer.git
cd byomailer
cp .env.example .env # then fill in .env
docker compose up -d --build
docker compose logs web # shows the setup URLYour list. Your server.
Open source, on GitHub. Read the code, run it, change it.