First commit
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
# Incoming mail (IMAP)
|
||||
IMAP_HOST=imap.example.com
|
||||
IMAP_PORT=143
|
||||
|
||||
# Outgoing mail (SMTP with STARTTLS)
|
||||
SMTP_HOST=smtp.example.com
|
||||
SMTP_PORT=587
|
||||
SMTP_AUTH_TYPE=PLAIN
|
||||
@@ -0,0 +1,12 @@
|
||||
# Roundcube
|
||||
|
||||
1. Copy `.env.example` to `.env` and replace the example mail-server values.
|
||||
2. Start the container:
|
||||
|
||||
```powershell
|
||||
docker compose up -d
|
||||
```
|
||||
|
||||
3. Open [http://localhost:9002](http://localhost:9002) and sign in with your mail credentials.
|
||||
|
||||
The container publishes Roundcube on host port `9002`. SMTP uses port `587` by default and the `tls://` server prefix, which makes Roundcube negotiate STARTTLS. Its database is retained in the named `roundcube-db` volume.
|
||||
@@ -0,0 +1,20 @@
|
||||
services:
|
||||
roundcube:
|
||||
image: roundcube/roundcubemail:latest
|
||||
container_name: roundcube
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
- "9002:80"
|
||||
environment:
|
||||
ROUNDCUBEMAIL_DEFAULT_HOST: ${IMAP_HOST:-imap.example.com}
|
||||
ROUNDCUBEMAIL_DEFAULT_PORT: ${IMAP_PORT:-143}
|
||||
ROUNDCUBEMAIL_SMTP_SERVER: tls://${SMTP_HOST:-smtp.example.com}
|
||||
ROUNDCUBEMAIL_SMTP_PORT: ${SMTP_PORT:-587}
|
||||
ROUNDCUBEMAIL_SMTP_USER: "%u"
|
||||
ROUNDCUBEMAIL_SMTP_PASS: "%p"
|
||||
ROUNDCUBEMAIL_SMTP_AUTH_TYPE: ${SMTP_AUTH_TYPE:-PLAIN}
|
||||
volumes:
|
||||
- roundcube-db:/var/roundcube/db
|
||||
|
||||
volumes:
|
||||
roundcube-db:
|
||||
Reference in New Issue
Block a user