ACME with Letsencrypt not working

Hi all

It’s frustrating, I cannot get auto ACME with Letsencrypt to work. Here is what I did:

  • Installed Stalwart 16.4 on a fresh VPS in a Docker container
  • No proxy used here before the Docker container
  • Went through the setup steps as recommended by Stalwart docs
  • All storage in SQLite
  • Port 443 is open and reachable
  • Left all the TLS settings to default, also the ACME provider
  • Set the DNS records and awaited full propagation
  • Restarted Stalwart container
  • Logs look fine (see image)

However, when accessing Stalwart via browser, only the self signed certificate is presented, not the Letsencrypt certificate.

Any ideas what I might be missing here? Either there is something broken here or I am missing something very fundamental.

Cheers

I found the solution! After restarting the Docker container once more, it works now. To summarize, the docker container needs to be restared twice:

  • Once after the initial setup (5 step setup flow). After this restart, the Letsencrypt certificates get issued and stored
  • After the second restart, those certificates will be applied for https access

Maybe somebody can verify this procedure. If my observation is correct, this needs to be included in the docs!

Cheers