Issue Description
Hello Stalwart community,
After discussing all the drama surrounding the upgrade from Stalwart 0.15.5 to 0.16.0 on GitHub, I’ve run into a new issue and decided to sign up for the new Stalwart forum.
I run Stalwart Mail as a Docker container on my private home server. A reverse proxy (Caddy), included in the Docker Compose setup, handles the domain for my email as well as HTTPS access to the Stalwart WebGUI. Caddy also generates a TLS certificate for my domain.
I copied the certificate text into the Stalwart WebGUI (specifically here: https://meine-domain.de/admin/Settings/x:Certificate).
This worked without issues until yesterday. However, this morning, my email client (Microsoft Outlook) reported that the email address associated with the Stalwart server no longer had a valid certificate.
Upon checking the Stalwart WebGUI, I saw that the certificate list was empty; Stalwart had simply deleted the certificate I had manually entered.
I copied the certificate text from Caddy to Stalwart again and noticed Stalwart reporting that the certificate was only valid until yesterday (2026-06-23). However, when I check the certificate in Caddy, I see it is still valid for another 81 days. (My domain URLs also open via HTTPS without any error messages.)
I also noticed something else: whenever I stop and restart the Stalwart Docker Compose container, the certificate disappears from the WebGUI again. This happens every time the container restarts. Why is this happening?
What is causing this certificate issue, and how can I resolve it? Thanks in advance for your help!
Regards,
Mic.
Expected Behavior
Stalwart handles manually entered certificates correctly. Stalwart does not delete certificates arbitrarily. Emails can be retrieved reliably.
Actual Behavior
Stalwart reports an expired TLS certificate. Stalwart deletes the certificate via the WebGUI. Emails can no longer be retrieved.
Reproduction Steps
See above.
Relevant Log Output
none
Stalwart Version
v0.16.x
Installation Method
Docker
Database Backend
RocksDB
Blob Storage
RocksDB
Search Engine
Internal
Directory Backend
Internal
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
