Can not login from a Roundcube container #4615
-
|
Hello, I have struggled (together with Gemini AI) to be able to use Roundcube in a container to login to Docker Mailserver. My current configuration looks like below. Please let me know if you need any additional information. Any help would be extremely appreciated! DMS docker-compose.yml Roundcube docker-compose.yml This gives me the following error (docker compose logs -f roundcube) Thanks in advance, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
You may want to not have Fail2Ban active when troubleshooting authentication issues 😅
I think for starters, you have DMS configured for This is an important difference, since you can have many different mail domains for accounts, but you generally only have the one mail server FQDN to direct traffic to (mail clients for reading and submitting mail like ThunderBird and Roundcube, or other mail servers delivering mail to the MX host on port 25). Your mail domains direct traffic for delivery to DMS FQDN via the DNS records, which is also where the certificate is served from. DMS doesn't need certificates for any of your mail domains. Failing that, try this reference as a basic setup, and go from there?: # DISCLAIMER: This is an example config to demonstrate functionality,
# It does not represent any considerations for secure production deployments.
services:
dms:
image: mailserver/docker-mailserver:latest
hostname: mail.example.test
# `configs` is a feature that can embed files into this `compose.yaml` example, simplifying trying it out
# NOTE: Normally this would be `volumes` with external files persisted to your host filesystem.
configs:
- source: dms-accounts
target: /tmp/docker-mailserver/postfix-accounts.cf
roundcube:
image: roundcube/roundcubemail:latest
# NOTE: If you've got a reverse proxy with TLS already with ports published,
# Comment this out and have it route to this `roundcube` container instead.
ports:
- 80:80
environment:
- ROUNDCUBEMAIL_DB_TYPE=sqlite
- ROUNDCUBEMAIL_SKIN=elastic
- ROUNDCUBEMAIL_DEFAULT_HOST=tls://mail.example.test
- ROUNDCUBEMAIL_SMTP_SERVER=tls://mail.example.test
# NOTE: The Docker Compose `configs.<name>.content` feature is supported in Docker Compose releases since 2024.
#
# Docker Compose has a variable interpolation feature which matches the `$` character, which we do not want to mistakenly use.
# - File content below avoids that feature via it's escape syntax of repeating that character (`$$`).
# - If you copy/paste to separate files for `volumes` make sure you revert that change.
configs:
# Created via `setup email add john.doe@example.test secret`
# - Username: `john.doe@example.test`
# - Password: `secret`
dms-accounts:
content: |
john.doe@example.test|{SHA512-CRYPT}$$6$$sbgFRCmQ.KWS5ryb$$EsWrlYosiadgdUOxCBHY0DQ3qFbeudDhNMqHs6jZt.8gmxUwiLVy738knqkHD4zj4amkb296HFqQ3yDq4UXt8.I do point out at the link that there may be some issues with other forms of authentication like OAuth, but if you're only using our standard file-based |
Beta Was this translation helpful? Give feedback.
TL;DR: Yes:
You're relying on AI assistance too much here instead of reading our docs from the looks of it? Start simple before you complicate your configuration with more features, get yo…