RustMailerRustMailer
Newv1.6.0 adds IMAP, Gmail and Microsoft Graph supportRelease notes

Email infrastructure,
without the plumbing.

One Rust engine for IMAP, Gmail and Microsoft Graph — unified REST and gRPC APIs, event-driven sync, and zero external dependencies.

Sync thousands of mailboxes from a single ~60 MB binary that runs entirely on your own infrastructure.

14-day free trialNo credit cardDocker-ready
app.rustmailer.local
RustMailer dashboard

Connects to

GmailOutlookIMAPSMTPNATSPrometheus

Platform

A complete email backend, in one binary.

Stop stitching together IMAP clients, OAuth flows, queues and webhook plumbing. RustMailer gives you the whole stack as a single self-hosted service.

Unified REST & gRPC

One typed API surface for every provider. OpenAPI, Swagger, ReDoc and generated gRPC clients included.

Any mailbox

IMAP, Gmail API and Microsoft Graph behind a single account model — no per-provider protocol code.

Event-driven

New mail, flag changes and deletions delivered through webhooks or NATS with at-least-once semantics.

VRL transforms

Filter, reshape and enrich every event with Vector Remap Language before it leaves the engine.

OAuth2, handled

Token refresh, encrypted credential storage and per-provider client configuration out of the box.

Observable by default

Prometheus metrics for sync, sending, webhooks and task queues — plus a built-in webmail inspector.

3
mail protocols
~60 MB
single binary
0
external services

Developer experience

Two APIs. Zero protocol soup.

Call a mailbox like any other service. RustMailer hides MIME encoding, provider quirks, token refresh and mailbox state behind a predictable, typed interface.

  • REST with a complete OpenAPI 3 document
  • gRPC clients generated for every language
  • Consistent JSON shapes across IMAP, Gmail and Graph
Explore the API reference
Send a message
POST /api/v1/accounts/42/messages
Authorization: Bearer $RUSTMAILER_TOKEN
Content-Type: application/json

{
  "to": ["dev@example.com"],
  "subject": "Welcome to RustMailer",
  "template": "welcome"
}
201 Created42 ms

Self-hosted

Build reliable email systems with ease.

Powerful infrastructure for email-based apps.

Own your email infrastructure
Deploy RustMailer on your own servers or private cloud. No external dependencies, no third-party lock-in.
Full support for IMAP and SMTP
Send and receive emails reliably using standard protocols. Compatible with Gmail, Outlook, Apple Mail, and most email providers.
Flexible deployment
Cross-platform, Docker-friendly, and runs without external services — just a ~60MB Rust binary.
RustMailer product screenshot

Webmail

Built-in webmail client

Lightweight webmail UI for viewing synced emails and testing template deliveries.

Visualize synced mailboxes
Browse folders and messages in real time to verify sync behavior and folder state.
Inspect headers and metadata
Debug emails with detailed views of headers, flags, MIME structure, and threading info.
Preview test emails instantly
Send test messages from templates or MTAs and view the rendered results immediately within the webmail interface.
RustMailer product screenshot

API

Robust APIs for seamless email integration

Powerful REST & gRPC APIs with rich docs and flexible data handling.

Easy-to-use REST API
Standard JSON payloads hide IMAP and provider quirks—no need to deal with encodings or protocol edge cases.
Comprehensive API docs
Interactive documentation with OpenAPI, Swagger, ReDoc, Explorer, and Scalar—everything you need to get started fast.
Multi-language gRPC support
Generate client code automatically in multiple languages with gRPC—no manual data modeling required.
RustMailer product screenshot

Events

Flexible and reliable event delivery

Email events delivered via Webhook or NATS — new messages, flags, and more.

Multiple event delivery options
Deliver real-time email events via webhooks or NATS, giving you flexible integration choices.
Comprehensive event coverage
Receive event notifications for new emails, deletions, and flag changes — triggered by periodic mailbox checks.
Customizable event payloads
Tailor event content before delivery — filter, transform, or enrich data to suit your system’s needs.
RustMailer product screenshot

VRL

Advanced event control with VRL scripting

Leverage VRL to gain full control over email event data — from filtering to payload transformation.

Flexible event filtering
Use VRL to selectively deliver events based on account, folder, flags, or any field you define.
Powerful event transformation
Modify event payloads on the fly — rename fields, remove sensitive data, or reshape to match your schema.
Enrich events with custom logic
Add derived values, timestamps, tags, or lookup results using simple and expressive VRL scripts.
RustMailer product screenshot

OAuth2

Simplified OAuth2 integration

Connect Gmail, Outlook, and others without handling tokens or refresh logic.

OAuth2 provider support
Supports Gmail, Outlook, and other IMAP/SMTP providers using OAuth2. Configure your own client ID and secret.
Encrypted credential storage
Client secrets, access tokens, and refresh tokens are encrypted at rest to protect sensitive authentication data.
Automatic token refresh
RustMailer handles token expiration and refresh behind the scenes, so you don’t need to manage it manually.
RustMailer product screenshot

Sending

Powerful Email Sending

Built for flexibility and control

Template-driven email generation
Create personalized emails at scale using Handlebars templates, dynamic variables, and content from EML files or past messages.
Flexible sending via SMTP or MTA
Send through the original SMTP server or external MTAs — choose based on deliverability, speed, or policy.
Open & click tracking with webhooks
Monitor user interactions in real time. Get webhook notifications for opens and clicks to power automation and analytics.
RustMailer product screenshot

Observability

Comprehensive Metrics & Monitoring

Gain full insight with detailed, out-of-the-box Prometheus metrics across all system components.

Comprehensive Metrics & Monitoring
Built-in, fine-grained Prometheus metrics covering email sending, IMAP traffic, webhook dispatch, and system task performance — enabling deep visibility into every aspect of your email system.
RustMailer product screenshot

Customers

Trusted by teams who live in email.

Stop wrestling with protocols, provider APIs and webhook plumbing. Let RustMailer handle the infrastructure.

After struggling with other unified email middleware services — both paid and open-source — we were frustrated with scalability, forced sales calls and deceptive pricing. RustMailer was a breath of fresh air.

We initially hesitated to choose a relatively new middleware, but it met our requirements better than any established alternative. The team doesn't just respond to requests — they actively collaborate with us, ship the features we need, and make us feel like partners rather than another customer.

CK
Cees de Kort
Sleak Chat

Use cases

Built for teams that run on email.

From SaaS products to hosting providers, RustMailer removes months of email infrastructure work from the roadmap.

SaaS & CRM Solutions

Connect and manage users’ mailboxes to gain real-time insight into their communication flows.

Digital Agencies

Ship bespoke email features for clients — newsletters, campaign systems and tailored webmail.

Email Hosting Services

Deliver custom webmail experiences tightly integrated with your hosting platform.

Small & Medium Enterprises

Automate support and information mailboxes, reducing manual workload and response times.

Deliverability Specialists

Automate warmup across multiple accounts to improve sender reputation and inbox placement.

AI & ML Teams

Aggregate user email securely to fuel data-driven models and email-native intelligence.

Web Hosting Providers

Manage postmaster and abuse mailboxes for compliance and monitoring from one control plane.

Large Enterprises

Use RustMailer as a secure IMAP/SMTP gateway between legacy systems and modern providers.

Outreach & Sales Automation

Scale personalized campaigns with automated sending and reply handling for prospect engagement.

FAQ

Questions, answered.

Everything about licensing, self-hosting and how RustMailer fits into your stack.

Still curious? Talk to us.

Get started

Save months of email infrastructure work.

Deploy RustMailer on your own infrastructure and get a reliable email backend without the protocol plumbing.

Self-hosted · 14-day free trial · Cancel anytime