Follow these easy steps to add your domain. We'll use examples to make it clear!
Enter details above and click Update to customize the guide and credentials.
This is where you tell the internet how to find your new email setup. Go to your DNS provider (like Cloudflare) and add these records.
76.13.209.253 (your server IP).Wait 5-30 minutes for changes to take effect. Test by typing dig mx example.com in a terminal.
Connect to your server (VPS) using SSH. Run this to add the email user—the domain gets supported automatically.
cd /opt/docker-mailserver
sudo docker exec -it mailserver setup email add noreply@example.com YourStrongPassword123
A strong password has letters, numbers, and symbols (e.g., Pass123!@).
Run this to get a special code. Add it to your DNS.
sudo docker exec -it mailserver setup config dkim domain example.com
The output will give you a TXT record. Add it in DNS as Name = mail._domainkey, Value = the long string.
Restart to apply all changes. This takes a few seconds.
sudo docker compose down && sudo docker compose up -d
Add this to DNS to verify your server can send emails.
v=spf1 a:mail.example.com mx ip4:76.13.209.253 ~all
Name = @, Type = TXT.
Go to Xsender settings and enter these details. Then send a test email to yourself.
If it doesn't work, check your inbox/spam or ask for help.
Use these in Xsender or any email app to send mails from your new domain.
| Setting | Value |
|---|---|
| Host | postal.pitech.com.bd (or mail.example.com) |
| Port | 587 |
| Encryption | STARTTLS |
| Username | noreply@example.com |
| Password | YourStrongPassword123 |
Note: Change password if needed with: sudo docker exec -it mailserver setup email update-password noreply@example.com newpassword
docker logs mailserver to see errors.