Mail System

The Mail System project is a Dockerized solution for running a secure, self-hosted email server with centralized user authentication. Built for teams needing full control over email and identity in one stack.

About The Email System

This project combines a full containerized mail server setup with custom integrated OpenLDAP to create a unified environment for email and user management. Mail accounts could be managed through custom TypeScript utility library - built specifically for LDAP and IMAP tasks like mailbox syncing, quota checks, and message manipulation.

Mail System Project

Core Features

Secure, flexible, and extensible email infrastructure

The Mail System is designed with security, scalability, and observability in mind. It provides a complete email solution that can be deployed as a single stack.

Secure Execution Icon

All-in-One Stack

Combines Postfix, Dovecot, Rspamd, and ClamAV out of the box, with DKIM, SPF, and DMARC support for secure delivery.

Secure Execution Icon

LDAP & IMAP Utils

Custom-built TypeScript utilities for managing LDAP users, aliases, IMAP syncs, flags, quotas, and sending emails. Full CLI and Node.js API support included.

Secure Execution Icon

Modular Architecture

Services like docker-mailserver, OpenLDAP, phpLDAPadmin, and monitoring tools can be deployed separately or as a stack.

Secure Execution Icon

Monitoring & Deployment

Integrated with Grafana and Prometheus for metrics and alerts. Easily deploy via Docker Compose with built-in SSL and DNS record generation tools (MX, DKIM, SPF).

Services

Fully-integrated, containerized email components

The stack bundles all core services required for a secure, production-ready mail system - MTA/MDA, spam & AV, domain authentication, centralized identity, observability, and deployment helpers.

Secure Execution Icon

Postfix

Primary MTA for sending/receiving mail with TLS, SASL, and virtual domains/mailboxes.

Secure Execution Icon

Dovecot

IMAP/POP3 server providing authentication, mailbox indexing, and quota enforcement.

Secure Execution Icon

Rspamd

High-performance spam filtering with rules, reputation, and policy integration.

Secure Execution Icon

ClamAV

Antivirus scanning for inbound and outbound messages to block known threats.

Secure Execution Icon

OpenDKIM

DKIM key management and signing to authenticate your domain's outbound mail.

Secure Execution Icon

OpenDMARC

DMARC policy checking and reporting to strengthen delivery and prevent spoofing.

Secure Execution Icon

OpenLDAP

Central directory for users, groups, and aliases with secure authentication.

Secure Execution Icon

phpLDAPadmin

Web UI to manage LDAP entries: users, domains, aliases, and schema objects.

Secure Execution Icon

Prometheus

Metrics collection via exporters for mail traffic, queues, spam scores, and system health.

Secure Execution Icon

Grafana

Dashboards and alerts for end‑to‑end visibility across the mail and directory services.

Secure Execution Icon

DNS & SSL Tools

Assistants for MX, SPF, DKIM, and DMARC records plus automated TLS certificates (Let's Encrypt).

Secure Execution Icon

Docker Compose Orchestration

Pre-configured docker-compose.yml file for easy deployment and management of all components. Supports single or multi-host setups with persistent storage.

Utility Library Capabilities

Developed to simplify email and directory operations

Our utility handles common and advanced tasks like syncing mailboxes, managing flags, sending emails, and retrieving quotas.

Secure Execution Icon

LDAP Actions

Easily create users, aliases, or search for entries with built-in logic for domain-wide group syncing and user authentication.

Secure Execution Icon

IMAP Operations

Perform message flagging, mailbox synchronization, drafts, search, delete, quota checks, and real-time monitoring using our streamlined Node.js APIs.

Secure Execution Icon

SMTP Integration

Send emails using nodemailer with support for multiple recipients, BCC, attachments, and customizable transport configuration.

Secure Execution Icon

Mailbox Sync

Easily sync inboxes between two IMAP servers with adjustable batch sizes and delay controls to handle large migrations or backups.

Key Features & Benefits

Reliable and scalable by design

The Mail System is built to provide a secure, extensible, and easy-to-manage email solution for teams of all sizes. It combines the best open-source components with custom tooling to deliver a complete package that’s production-ready, highly customizable, and easy to deploy.

Secure Execution Icon

Secure Delivery

Out-of-the-box support for modern email security standards like TLS, DKIM, SPF, and DMARC ensures trusted and encrypted communication.

Secure Execution Icon

DNS Assistant

Auto-generate DNS records (MX, DKIM, SPF, DMARC) to streamline domain setup and reduce configuration errors.

Secure Execution Icon

Rapid Deployment

Deploy in minutes using Docker Compose. Minimal configuration required.

Secure Execution Icon

LDAP Integration

Centralized authentication via OpenLDAP makes user management scalable across multiple mail domains and services.

Secure Execution Icon

Monitoring Ready

Native Prometheus exporters and Grafana dashboards give insight into mail flow, spam activity, storage usage, and system health.

Secure Execution Icon

Backup Friendly

Maildir-based storage and modular service volumes make it easy to integrate backups with tools like Borg, Restic, or rsync.

Need a solution?

Drop us a message, and we will get back to you shortly.

Contact Us