
Deploy iRedMail on Your Own Server
iRedMail - Open Source Mail Server, built in one container
Want to deploy iRedMail on your server faster? Try Senate with one-command setup, automatic HTTPS and monitoring.
What is iRedMail?
iRedMail is a free, open-source and full-featured mail server that allows you to host your own mail server at no cost. SMTP + IMAP + POP3 + Antispam & Antivirus + Web administration. **Requirements**: At least 4GB of ram and 5GB of rom. Recommended: Use 'mail' as the App Name.
Self-Host iRedMail
Follow these steps to deploy on your own server.
Install Docker
Skip this step if Docker is already installed on your server.
curl -fsSL https://get.docker.com | sh
Configure
Customize the settings below. Defaults work for most cases.
Deploy
Copy the configuration and run it on your server.
services:
iredmail:
environment:
ADMIN_VERSION: NoChange
FIRST_MAIL_DOMAIN: your-domain.com
FIRST_MAIL_DOMAIN_ADMIN_PASSWORD: 73684d74
HOSTNAME: iredmail.your-domain.com
MLMMJADMIN_API_TOKEN: 46775b9f6c10b844b8714871167d28df
ROUNDCUBE_DES_KEY: a5c8ea7130ef35b97f55cd18
VERSION: stable
volumes:
- /etc/localtime:/etc/localtime
- iredmail-data-backup-mysql:/var/vmail/backup/mysql
- iredmail-data-mailboxes:/var/vmail/vmail1
- iredmail-data-mlmmj:/var/vmail/mlmmj
- iredmail-data-mlmmj-archive:/var/vmail/mlmmj-archive
- iredmail-data-imapsieve-copy:/var/vmail/imapsieve_copy
- iredmail-data-custom:/opt/iredmail/custom
- iredmail-data-ssl:/opt/iredmail/ssl
- iredmail-data-mysql:/var/lib/mysql
- iredmail-data-clamav:/var/lib/clamav
- iredmail-data-sa-rules:/var/lib/spamassassin
- iredmail-data-postfix-queue:/var/spool/postfix
ports:
- 25:25
- 110:110
- 143:143
- 465:465
- 587:587
- 993:993
- 995:995
volumes:
iredmail-data-backup-mysql: {}
iredmail-data-mailboxes: {}
iredmail-data-mlmmj: {}
iredmail-data-mlmmj-archive: {}
iredmail-data-imapsieve-copy: {}
iredmail-data-custom: {}
iredmail-data-ssl: {}
iredmail-data-mysql: {}
iredmail-data-clamav: {}
iredmail-data-sa-rules: {}
iredmail-data-postfix-queue: {}
Then run:
docker compose up -d
Access
Once started, access your app at http://localhost:80
Why Self-Host iRedMail?
Full Data Ownership
Your data stays on your servers. No third-party access.
No Monthly Fees
Pay only for your server. No per-seat or usage charges.
Complete Control
Customize, backup, and scale on your own terms.
Privacy & Compliance
Meet GDPR, HIPAA, or internal security requirements.
Technical Details
Want to go faster?
Try Senate! Senate handles Docker, HTTPS, updates, and monitoring for you. Deploy any of our 300+ apps with a single command.
Install on any Linux server:
sh -c "$(curl -sSL https://get.senate.sh)"