-
I'm trying to set up the mail-server using docker-compose, behind Traefik proxy (so I opted out of LetsEncrypt setup during the configuration). I got the admin password from logs and wanted to change it. Let's look at the docs.
Oopsie, probably I cannot connect to a secured endpoint from localhost because I don't have HTTPS set up. Let's try unsecure way then:
Nope, also doesn't work. Then let's maybe try to find where is the endpoint CLI is trying to use defined, maybe I could configure it to allow HTTP. Searching the docs I found: https://stalw.art/docs/management/overview#usage. For some reason port 9990 is used there. Tried that: same error. Yet another approach: looking into the .toml files. Found
Trying to disable it: still CLI connection is not allowed via HTTP. I'm stuck. I could also try connecting from outside of the container via Traefik so HTTPS should work but possibly there's another easy method I haven't yet tried? (I use |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 7 replies
-
Get the admin password from logs: grep password /opt/stalwart-mail/logs/* Just use the admin password: stalwart-cli -u https://127.0.0.1:443 -c <PASSWORD> account list |
Beta Was this translation helpful? Give feedback.
-
Based on this error root@465f1fedd606:/# stalwart-cli -u https://127.0.0.1:443 -c admin:<mypass> account list
Failed to send HTTP request: error sending request for url (https://127.0.0.1/admin/principal?&type=individual): error trying to connect: tls handshake eof It looks like TLS is not configured for port 443. Some things to check:
|
Beta Was this translation helpful? Give feedback.
Based on this error
It looks like TLS is not configured for port 443. Some things to check:
server.tls.enable
is the global default but it can be overridden withserver.<id>.tls.enable
where<id>
is the name of the listener.