# rustmailer

> Self-hosted email middleware unifying IMAP, SMTP, Gmail and Graph APIs into REST/gRPC with web client, webhooks, NATS, OAuth2. Single binary, no external deps.

- **Category:** Email
- **Licence:** Other
- **Latest version:** 1.7.6
- **Open source:** source_available
- **Languages:** Typescript, Rust
- **Platforms:** Docker
- **Tags:** Email, Webhooks, REST API, Openapi, IMAP, Mail, SMTP, Outlook, Grpc, Email Client, Rust, Email integration, Self Hosted, Gmail, Nats, Email sync, Email sending, Email template, Selfhosted, Oauth2, Email Sender, Emailengine, Mailer, Gmail Api, Graph Api, Outlook 365

## Description

RustMailer is a self-hosted email middleware for developers who need to add email sync and sending to their applications. It connects to IMAP, SMTP, Gmail API, and Microsoft Graph API through a unified REST and gRPC interface. A built-in web client and admin dashboard let you inspect synced mailboxes, view headers, and test templates. Features include multi-account IMAP sync with incremental UID-based strategy, SMTP sending with connection pooling and Handlebars templates, OAuth2 flows for Gmail and Outlook with automatic token refresh, webhook and NATS event delivery with VRL scripting for payload transformation, open and click tracking, and Prometheus metrics. It runs as a single ~60MB Rust binary with no external dependencies like Redis or databases, deployable via Docker or direct binary. The code is source-available on GitHub but requires a paid license for production use after a 14-day free trial.

## Links

- [Homepage](https://github.com/rustmailer/rustmailer)
- [Website](http://rustmailer.com)
- [Docker](rustmailer/rustmailer)
- [Documentation](https://rustmailer.com/docs)
- [Discord Community](https://discord.gg/3R4scWCsxK)
- [GitHub Repository](https://github.com/rustmailer/rustmailer)
- [Pricing](https://rustmailer.com/pricing)
- [API Reference (ReDoc)](https://rustmailer.com/redoc)

---
Source: https://selfhost.directory/project/rustmailer