This repository sets up a local mail server with SMTP, IMAP, and Roundcube webmail using Docker.
The mail server domain is artemis.space and is intended for local network or lab use.
- Mailserver: Uses docker-mailserver (Postfix + Dovecot)
- Webmail: Roundcube (webmail client)
- Docker: Services run as Docker containers managed with
docker-compose
| Host Port | Service | Purpose | Notes |
|---|---|---|---|
| 25 | SMTP | Receiving emails from other mail servers | May be blocked by ISP/firewall |
| 587 | SMTP Submission | Sending emails with authentication | Use for authenticated email sending |
| 143 | IMAP | Mail retrieval (unencrypted) | Used by mail clients |
| 993 | IMAP (SSL/TLS) | Secure mail retrieval | Use for secure mail clients |
| 8080 | Roundcube Webmail UI | Access webmail in a browser | Default web UI port |
- Edit your hosts file (on your Windows machine):
Add this line to C:\Windows\System32\drivers\etc\hosts (run editor as Administrator):
127.0.0.1 mail.artemis.space- Start the mail server:
docker-compose up -d- Create a mail user:
docker exec -it mailserver setup email add <user>@artemis.space <password>- Access Roundcube webmail:
Open a browser and navigate to:
http://mail.artemis.space:8080Log in using your created email and password.