Email for professionals and teams
★ 6,433⑂ 1,087👁 9⑃ 214● 100▤ 0
+238
Daily
6,433
stars
1,087
forks
9
watchers
214
prs
100
issues
0
releases
README
Mailflare
A self-hosted alternative to Google Workspace. Setup custom domain Emails, Calendar, Drive, Booking and built-in AI agents.
Run it on Cloudflare or Docker. Send and receive with Cloudflare, Resend or Amazon SES. Store files in R2, Backblaze B2 or AWS S3. Use D1, Postgres, MySQL or Turso for the database.
Screenshots
Inbox
Domains
Mailboxes
Calendar
Booking
Drive
Sponsors
Want to support Mailflare? Become a sponsor.
Features
Apps
- Email: Custom domain mailboxes, personal or shared, with access you control. Send and receive with Cloudflare Email, Resend or Amazon SES.
- Routing rules: Store, forward, reject or sort incoming mail.
- Calendar: Repeating events with time zones. Attendees get email invitations.
- Booking: Share a public link so anyone can book a free time on your calendar.
- Drive: Store and share files.
- AI agents: Search mail, draft replies and manage events. Connect other AI tools over MCP.
Technical
- Databases: Cloudflare D1 (default), PostgreSQL, MySQL, Turso / libSQL, or a local SQLite file. Set DATABASE_URL to switch. Works with Supabase, Neon, PlanetScale, TiDB and more. See Databases.
- File storage: Cloudflare R2, Backblaze B2 or AWS S3.
- Hosting: Cloudflare Workers or a single Docker container.
- Admin: Users, API keys, webhooks, audit logs and backups.
- Import: Bring in mail from IMAP, Gmail Takeout, .eml and .mbox files.
Mailflare currently supports 34 languages, including English, Português (Brasil), Português (Portugal), Español, Français, Deutsch, Italiano, Nederlands, Polski, Українська, Русский, Türkçe, 中文(简体), 日本語, 한국어, Bahasa Indonesia, Bahasa Melayu, Tiếng Việt, ไทย, हिन्दी, বাংলা, मराठी, తెలుగు, தமிழ், ગુજરાતી, ಕನ್ನಡ, മലയാളം, ਪੰਜਾਬੀ, සිංහල, Kiswahili, Hausa, plus العربية, اردو and فارسی (right-to-left).
Cost
You can receive and send mail for free.
- Receiving: Cloudflare Email Routing is free.
- Sending: Use the free tier of Resend (3,000 emails a month) or Amazon SES. Cloudflare's own sending needs the $5/month Paid Worker plan.
New Amazon SES accounts start in a sandbox. Ask AWS for production access to lift it. Prices change, so check Resend, Amazon SES and Cloudflare.
Deploy
1. Deploy the app. Click Deploy to Cloudflare. Keep the app name mailflare, or it will break.
2. Finish setup. Open the app at /setup and create your admin account.
3. Connect a domain. Add a domain from the same Cloudflare account, then create your first mailbox.
CF_TOKEN is required. Create a scoped Cloudflare API token with these permissions:
- All accounts: Email Sending:Edit, DNS Settings:Edit, Email Routing Addresses:Edit
- All zones: DNS Settings:Edit, Email Routing Rules:Edit, Zone Settings:Edit, DNS:Edit
More options: deployment guide.
Deploy with an AI agent
Paste this into an AI agent that has terminal access (Claude Code, Codex, Cursor and similar):
text
Install Mailflare for me from https://github.com/hieunc229/mailflare on my CTop issues
#232Feature Request: Native iOS and Android apps3 comments · 2026-10-31#102Feature request: Custom accent/theme color in Branding settings3 comments · 2026-10-10#294Proposal: a label on the conversation, not a folder2 comments · 2026-11-12#127Feature request: Official prebuilt Docker images and a simple NAS update workflow2 comments · 2026-10-13#77Feature request: IMAP client mode (use Mailflare as the web UI for an existing IMAP/SMTP mailbox)2 comments · 2026-10-06#302Feature request: opt-in scheduled updates for Cloudflare installations1 comments · 2026-11-13#271Feature request: Masked email addresses with “Send as” support1 comments · 2026-11-06#265Proposal: interoperable encrypted email, OpenPGP first, with a protocol-agnostic layer1 comments · 2026-11-05