Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Certificate renewal fails if this runs on a machine serving other websites #13

Open
wligtenberg opened this issue May 31, 2023 · 0 comments

Comments

@wligtenberg
Copy link
Contributor

I have been running the mailserver for about 3 months now, and the letsencrypt certificates expired.
The service to update them runs fine, however, it cannot renew them, because the challenge fails.
This happens because I use the same server to host a couple of websites using an nginx proxy.

I see two solutions:

  1. allow to specify the location of your own certificates using:
    https://docker-mailserver.github.io/docker-mailserver/latest/config/security/ssl/#bring-your-own-certificates
  - SSL_CERT_PATH=/tmp/dms/custom-certs/public.crt
  - SSL_KEY_PATH=/tmp/dms/custom-certs/private.key
  1. ensure that the certbot docker image has a predictable name, so I can route the traffic towards it in my nginx configuration.

Willing to help either way. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant