iRedMail automates the complex process of setting up a full mail server — it installs and configures Postfix, Dovecot, Roundcube webmail, Amavis anti-spam and a web-based admin panel.
Prerequisites
- Fresh Ubuntu 20.04 server
- Minimum 4GB RAM recommended
- FQDN hostname configured
- Ports 25, 80, 443, 465, 587, 993 open
Step 1 — Set Hostname
sudo hostnamectl set-hostname mail.yourdomain.com
echo "127.0.0.1 mail.yourdomain.com mail" | sudo tee -a /etc/hosts
Step 2 — Download iRedMail
cd /tmp
wget https://github.com/iredmail/iRedMail/archive/refs/tags/1.6.8.tar.gz
tar -xzf 1.6.8.tar.gz
cd iRedMail-1.6.8
Step 3 — Run Installer
sudo bash iRedMail.sh
The installer asks:
- Mail storage path: /var/vmail
- Web server: Nginx
- Database: MariaDB
- Your domain name
- Admin password
- Optional components: Roundcube, SOGo, iRedAdmin
Step 4 — Reboot
sudo reboot
Step 5 — Access Admin Panel
https://mail.yourdomain.com/iredadmin
# Default: [email protected] / your_password
Step 6 — Configure DNS
# iRedMail shows required DNS records after installation
# Check: /root/iRedMail.tips file
cat /root/iRedMail.tips
Step 7 — Verify Setup
# Check all services running
sudo systemctl status postfix dovecot nginx mariadb
# Test sending
echo "Test" | mail -s "iRedMail Test" [email protected]
# Check score at
https://www.mail-tester.com
Conclusion
iRedMail is the fastest way to deploy a production mail server. Our team provides complete iRedMail installation and management.
Comments