</>

BunMail

Self-hosted email API for developers

Free alternative to SendGrid and Resend. Direct SMTP delivery with DKIM signing, email queue, and a built-in dashboard.

Send an email in one request

curl -X POST http://localhost:3000/api/v1/emails/send \
  -H "Authorization: Bearer bm_live_your_api_key" \
  -H "Content-Type: application/json" \
  -d '{
    "from": "hello@yourdomain.com",
    "to": "user@example.com",
    "subject": "Welcome to BunMail",
    "html": "

It works!

" }'

Features

Direct SMTP

No third-party email provider needed

DKIM / SPF / DMARC

Email authentication built in

Email Queue

Automatic retries (3 attempts)

API Key Auth

SHA-256 hashed, rate-limited

REST API

Simple JSON endpoints for everything

Dashboard

Server-rendered UI to manage it all

Quick Start

1

Clone the repo

git clone https://github.com/your-org/bunmail.git
2

Configure environment

cp .env.example .env
3

Start the server

bun install && bun run dev