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

Nginx, Dovecot and Postfix automatic restart after new certificate detected #5933

Closed
lriley2020 opened this issue Jul 2, 2024 · 3 comments
Closed

Comments

@lriley2020
Copy link

Summary

I am currently having to create an external cron job to continually check whether the mailcow certificates have been renewed, and then manually restart the affected containers (nginx, dovecot and postfix). Is there any chance that the functionality could be added so that these services detect that the certificate has changed and restart themselves automatically?

Motivation

Would make it much easier for use of external certificates and renewal. With this approach, one could simply use another container like DNSRoboCert to generate certificates and mount the /data/assets/ssl/ directory onto the DNSRoboCert container so that the renewed certificates could be copied straight into the correct location, after which mailcow would restart automatically. Currently, users have to either create external cronjobs to check if the certificate has been changed, or make systemd services to continually monitor the files and restart containers if required.

Additional context

No response

@DerLinkman
Copy link
Member

We do something like this when acme is renewing/expanding the certificates. It is triggering a docker api restart of the containers. However with external Cert Providers we won't add this... would change to much internally

@DerLinkman DerLinkman closed this as not planned Won't fix, can't repro, duplicate, stale Aug 14, 2024
@lriley2020
Copy link
Author

Understandable :(

Thanks for the great project so far though, it's been great moving things away from Google!

@DerLinkman
Copy link
Member

Thanks for leaving the big contestants and hosting your emails on your own!

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

No branches or pull requests

2 participants