All templates

Deploy Docker Mailserver on your own server.

Docker Mailserver logo

A fullstack but simple mail server (SMTP, IMAP, LDAP, Antispam, Antivirus, etc.) running inside a container. It provides a complete email solution with features like spam filtering, virus scanning, and secure email delivery.

Your infrastructureAutomatic HTTPSNo lock-in

Setup time

A few minutes

Deployment

Your own server

Services

1 connected service

Why Docker Mailserver

Everything you need, running where you choose.

Get the full Docker Mailserver experience with Easypanel handling the repetitive infrastructure work around it.

SMTP and IMAP Support
Full support for SMTP (port 25), IMAP (port 143), Submission (port 587), and IMAPS (port 993) protocols, making it compatible with all standard email clients.
Antivirus and Spam Protection
Integrated ClamAV antivirus and SpamAssassin spam filtering provide comprehensive protection against malicious content and unwanted emails.
Security Features
Includes Fail2ban protection against brute force attacks and Postgrey greylisting to reduce spam. Supports Let's Encrypt for SSL certificates.
LDAP Integration
Built-in LDAP support allows for easy integration with existing directory services and user management systems.
Customizable Configuration
Extensive configuration options through environment variables allow you to customize the server to your specific needs.
Persistent Storage
Uses Docker volumes for persistent storage of mail data, logs, and SSL certificates, ensuring data is preserved across container restarts.
How it works

From template to live app in three steps.

Easypanel turns the template into real services, storage, and domains on the server you already control.

Already have Easypanel? Open your dashboard at the URL or IP of your own installation.

Installation guide
1
Open your dashboard
Visit the URL or IP of your Easypanel installation and choose the target project.
2
Choose Docker Mailserver
Open Templates, select Docker Mailserver, then review its service names and configuration.
3
Deploy and open your app
Easypanel starts every service and provisions an HTTPS domain for you.
Installation options
The template asks for these values before creating your services.
OptionDefaultRequired

App Service Name

mailserverRequired

App Service Image

docker.io/mailserver/docker-mailserver:v15.1.0Required

Hostname

mail.example.comRequired

Relay Host

smtp.example.comRequired

Relay Port

587Required

Relay User

userRequired

Relay Password

Set during installRequired
Resources
Project documentation and source code.
Latest template update
May 6, 2026

Version bumped to v15.1.0

Questions

Deploy with confidence.

The template handles the application setup while Easypanel keeps the infrastructure understandable and under your control.

Keep exploring

Related templates

Browse all
Stalwart logo
Stalwart
Stalwart is a modern, all-in-one mail and collaboration server written in Rust for security and performance. It bundles SMTP, IMAP, JMAP, POP3, CalDAV, CardDAV, and WebDAV into a single binary with a unified configuration. Features include a built-in spam and phishing filter with LLM-driven analysis, DMARC/DKIM/SPF/ARC authentication, encryption at rest with S/MIME or OpenPGP, automatic TLS via ACME, full-text search in 17 languages, Sieve scripting, and a web-based admin dashboard. It supports pluggable storage backends (RocksDB, FoundationDB, PostgreSQL, MySQL, SQLite, S3, Redis) and scales from a single instance to thousands of nodes with built-in clustering, load balancing, and fault tolerance.
View template
Poste logo
Poste
Poste is a self-hosted mail server solution that provides a complete and secure email hosting platform. It offers built-in features such as spam filtering, DKIM signing, and webmail access to ensure a reliable email experience. This app is a Docker containerized version of Poste, making it easy to deploy and manage across various environments.
View template
MailCrab logo
MailCrab
MailCrab is an email test server designed for development purposes. It is an accept-all SMTP server that provides a web interface for viewing and inspecting all incoming emails. You can view formatted mail, download attachments, view headers, or view the complete raw mail contents. The app runs on all amd64 and arm64 platforms using docker. The backend server and the frontend of the app are both written in Rust. The backend receives email over an unencrypted connection on a configurable port, and all email is stored in memory while the application is running. The frontend initially performs a call to receive all existing email metadata and then subscribes for new messages using the websocket connection. When opening a message, the endpoint is used to retrieve the complete message body and raw email. The backend also accepts a few commands over the websocket, to mark a message as opened, to delete a single message or delete all messages.
View template
Docker Mailserver logo
Ready to deploy Docker Mailserver?
Open your own Easypanel dashboard, choose Docker Mailserver from Templates, and review the deployment options.