Deploy Mailflare (w/ admin login)
Email, calendar and drive on your own domain. Your own admin login.
Mailflare
Just deployed
/data
Deploy and Host Mailflare (w/ admin login) on Railway
Mailflare gives you mailboxes, calendar, contacts, drive and booking pages on your own domain, as a self-hosted alternative to Google Workspace. This template creates your admin mailbox from the deploy form, so nobody can claim the setup page first, and it generates a unique secret for incoming mail on every deploy.

About Hosting Mailflare (w/ admin login)
It runs Mailflare 0.5.5 with its database, mail and files on one volume. Mail arrives through Cloudflare Email Routing, Amazon SES or Resend, and leaves through Amazon SES, Resend or Cloudflare. Deploy, then sign in as your mailbox address (the user and domain from the deploy form) with the password you chose there.
Common Use Cases
- Business email on your domain
- Shared calendar and booking pages
- Team drive without Google Workspace
Dependencies for Mailflare (w/ admin login) Hosting
- Mailflare
- Volume (SQLite, mail and files)
Deployment Dependencies
Implementation Details

Idles at about 0.15 GB, so it fits the Free plan. Back up the volume: it holds every mailbox, attachment and file. Railway can't receive mail on port 25, and outgoing SMTP needs a Pro plan, so all mail travels over HTTPS through the providers above, on every plan.
Receive and send mail
- With your domain's DNS on Cloudflare (the free plan is enough), turn on Email Routing for it.
- Deploy Mailflare's
deploy/cloudflare-email-relayWorker with two secrets:MAILFLARE_URL(this service's public URL) andINBOUND_WEBHOOK_SECRET(copy it from this service's variables). - In Cloudflare, Email Routing → Routing rules, send the catch-all address to the
mailflare-email-relayWorker. - Without Cloudflare DNS, open Admin → Domains in Mailflare, expand your domain and set up receiving with Amazon SES or Resend instead.
- In the same place, choose a sending provider. For Amazon SES, fill the deploy form's AWS fields with an IAM key, then add the three DKIM records the domain page lists.
Why Deploy Mailflare (w/ admin login) on Railway?
Railway is a singular platform to deploy your infrastructure stack. Railway will host your infrastructure so you don't have to deal with configuration, while allowing you to vertically and horizontally scale it.
By deploying Mailflare (w/ admin login) on Railway, you are one step closer to supporting a complete full-stack application with minimal burden. Host your servers, databases, AI agents, and more on Railway.
Updated 2026-11-17: First release, Mailflare 0.5.5.
Template Content
Mailflare
mikedepo/mailflareMAILFLARE_DOMAIN
Your email domain, such as example.com. Your first mailbox is on it, and it is the admin account.
MAILFLARE_ADMIN_PASSWORD
Choose your Mailflare password, at least 8 characters. Used once, at the first start, to create your admin mailbox; change it later in Settings.
MAILFLARE_RECOVERY_EMAIL
An email address outside your domain (Gmail, for example), where Mailflare sends password-reset links.
