A development instance
A development instance runs on loopback. It sends mail for other domains to Mailpit, a mail catcher, so it never sends real mail.
You need Go, Node and Docker, and a checkout of robinmail.
1. Start the services
Section titled “1. Start the services”docker compose -f contrib/compose/compose.yaml up -dThis starts:
| Service | Port on 127.0.0.1 | For |
|---|---|---|
| Mailpit | 1025 (SMTP), 8025 (web) |
mail for other domains |
| Rspamd | 11333 |
the tests that scan mail |
The database is not a service. It is inside robinmail, in the instance’s data directory. Without these services the instance runs too; mail for other domains then waits in the queue.
2. Seed the instance
Section titled “2. Seed the instance”contrib/dev/seed.shThe script makes the instance in ./dev, which git ignores:
- a config,
dev/robinmail.json, fromcontrib/dev/robinmail.dev.json; - the database, in
dev/data/db; - a master key;
- a self-signed certificate for
localhost,127.0.0.1andmail.robinmail.test; - the domain
robinmail.test; - two users,
dev@robinmail.testwith some sample mail andother@robinmail.testwithout; dev/robinmail, a binary without the webmail.
The password of both users is in contrib/dev/seed.sh. Set ROBINMAIL_DEV_PASSWORD to use
another. Run the script again any time. It rebuilds the binary and leaves existing users,
mail and config alone.
3. Build with the webmail and run
Section titled “3. Build with the webmail and run”make./robinmail -config dev/robinmail.json servemake builds the Angular webmail and then ./robinmail with the webmail inside.
| What | Where |
|---|---|
| Webmail and JMAP | http://127.0.0.1:8080 |
| IMAP | 127.0.0.1:1993 (TLS), 127.0.0.1:1143 (STARTTLS) |
| Submission | 127.0.0.1:1465 (TLS), 127.0.0.1:1587 (STARTTLS) |
| Inbound SMTP | 127.0.0.1:2525 |
| CalDAV and CardDAV | http://127.0.0.1:8080/dav/ |
| Mail for other domains | Mailpit, http://127.0.0.1:8025 |
Log in as dev@robinmail.test.
What the instance does with mail
Section titled “What the instance does with mail”- Mail to
robinmail.testis delivered in the instance itself. - Mail to any other domain goes to Mailpit. The config routes every other domain there:
"outbound": {"routes": {"*": "127.0.0.1:1025"}}. Mailpit shows it and passes nothing on. - Without Mailpit running, such mail stays in the queue and bounces after five days.
- The development config names no Rspamd, so incoming mail is not scanned.
- A mail program such as Thunderbird.
- Calendar and contacts programs: Thunderbird, an iPhone.
- Live reload for work on the webmail.