This project provides a simple, containerized mail server setup using Poste.io on AWS Lightsail.
- AWS Lightsail Instance: Recommended 2GB+ RAM (Ubuntu 22.04 LTS).
- Port 25: You MUST request AWS to unblock port 25 for your account/instance.
- Firewall: Open ports 25, 80, 110, 143, 443, 465, 587, 993, 995 in the Lightsail Networking tab.
-
Clone the repository:
git clone <your-repo-url> cd <repo-name>
-
Run the setup script: This installs Docker and prepares the data directory.
chmod +x setup.sh ./setup.sh
-
Start the mail server:
sudo docker compose up -d
-
Initialize: Go to
https://mail.gershell.devin your browser to set up the admin password.
To ensure email deliverability, configure these records in your DNS provider:
- MX Record:
@ IN MX 10 mail.gershell.dev. - A Record:
mail.gershell.dev IN A <Your-VPS-IP> - SPF (TXT):
v=spf1 mx ~all - DKIM/DMARC: Generate these inside the Poste.io admin panel after setup.