# Self-hosted Mailtrap alternatives on Cloudflare

> 2 open-source apps that replace Mailtrap and run on your own Cloudflare account.

Page: https://openflarestack.com/alternatives/mailtrap/. Updated 2026-12-05.

## 1. MailGate

Catch verification codes and magic links sent to your own domain without running an email server. Self-hosted alternative to Mailtrap.

- Repository: https://github.com/Dicka18/mailgate (MIT, 4 stars, last commit 2026-12-05)
- Creates: D1 database, Cron trigger
- Deploy: https://deploy.workers.cloudflare.com/?url=https://github.com/Dicka18/mailgate
- Details: https://openflarestack.com/apps/mailgate.md

## 2. flamemail

Disposable catch-all test inboxes for checking the transactional emails your app sends. Self-hosted alternative to Mailtrap.

- Repository: https://github.com/zllovesuki/flamemail (MIT, 6 stars, last commit 2026-05-13)
- Creates: D1 database, KV namespace, R2 bucket, Durable Objects, Cron trigger
- Deploy: https://deploy.workers.cloudflare.com/?url=https://github.com/zllovesuki/flamemail
- Details: https://openflarestack.com/apps/flamemail.md
