Introduction: In this tutorial, you will learn how to set up your own mail server using Mailcow on an Ubuntu Server. Mailcow allows you to host your custom mail server with features like domain customization, contact synchronization, and calendar integration.
Prerequisites:
#include https://get.docker.com
(to install Docker).Your DNS configuration should resemble the following:
# Name Type Value
mail IN A <IPv4_address>
mail IN AAAA <IPv6_address>
autodiscover IN CNAME mail
autoconfig IN CNAME mail
@ IN MX 10 mail
Refer to Mailcow documentation for advanced DNS configurations.
apt update && apt upgrade -y
cd /opt
git clone https://github.com/mailcow/mailcow-dockerized
cd /opt/mailcow-dockerized
./generate_config.sh
When prompted, enter your domain name (e.g., mail.example.com).
Pull Docker images:
docker-compose pull
docker-compose up -d
Important: Change your password immediately for security.
Create manual backups:
Create automated backups:
crontab -e
to enter your cron task list.0 5 * * * MAILCOW_BACKUP_LOCATION=/opt/mailcow-backups /opt/mailcow-dockerized/helper-scripts/backup_and_restore.sh backup all --delete-days 7
./update.sh
.General Recommendations:
أفضل الأسعار, تخزين SSD سريع و دعم فني
24/7 حقيقي
إدارة موقعك من خلال CPanel بأحدث إصدار
ضمان وقت تشغيل بنسبة 99.8٪.
لذا ركز على عملك!
ليلاً أو نهارًا ، مطر أو شمس ،
فريقنا هنا من أجلك!
نسخ احتياطي يومي وأسبوعي.
ملفاتك آمنة!