Issue Description
After setting up the server I’m getting Unknown client id.
Expected Behavior
Login works
Actual Behavior
Getting Unable to continue with the hint Unknown client id.
Reproduction Steps
- Start a new container with empty volumes:
sudo podman run -d --init --rm --name stalwart \
-p 127.0.0.1:8080:8080 \
-e STALWART_PUBLIC_URL=http://0.0.0.0:8080 \
-v stalwart-etc:/etc/stalwart \
-v stalwart-data:/var/lib/stalwart \
stalwartlabs/stalwart:v1
- Enter the credentials from the logs
- Change the following settings from the setup (I didn’t change any other setting):
“Step 1 of 5”:
Server Hostname:mail.test.orgDefault email domain:test.orgAutomatically Obtain TLS Certificate:false
“Step 4 of 5”:
Log Destination:Console
- Then press
Finish setup - Save the generated
[email protected]with its password somewhere - Restart the container
sudo podman restart stalwart - Reopen (or refresh) the login screen.
- Enter
[email protected]
Relevant Log Output
2026-10-27T06:50:17Z DEBUG Authentication failed (auth.failed) listenerId = “http”, localPort = 8080, remotePort = 34670, causedBy = Authentication error (auth.error) { reason = “Failed to decode token. If you are using an external OIDC provider, make sure it is configured as the default directory under the Authentication object.”, causedBy = “crates/common/src/auth/oauth/token.rs:172”, details = “sw1.RkdIMC_unLedPMRBnCEO7hPX8vk0jqt-zGYI2xUlSLYA6cAgKzLQey0qzMfxhxcSpVRcwOVGgA.YWRtaW4” }, remoteIp = 10.88.0.1
Stalwart Version
v1.x
Installation Method
Docker
Database Backend
RocksDB
Blob Storage
RocksDB
Search Engine
Internal
Directory Backend
Internal
Additional Context
I also tried to login in /admin and /account. However, both returned the same error.
I have reviewed the documentation and FAQ and confirm that my issue is NOT addressed there.
on
I have searched this support forum (open and closed topics) and confirm this is not a duplicate.
on
I understand that topics in this category are triaged by a bot first but a human reply will follow up. If I’d prefer a human-only reply, I’ll add the no-ai tag to my topic.
on