Topic: Let's encrypt certificate renewal automatically and services restart
==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 0.9.9
- Deployed with iRedMail Easy or the downloadable installer? Downloadable
- Linux/BSD distribution name and version: Ubuntu 18.04
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Web server (Apache or Nginx): Nginx
- Manage mail accounts with iRedAdmin-Pro? iRedAdmin
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====
Hi,
In my iRedmail install, I think I got the 1st let's encrypt certificate renew yesterday and on browser/mail checking apps and iPhone, it started to show private/invalid/expired certificate.
When i checked with "certbot certificates", I see it is still valid.
Two questions:
1. Is there a way/command to check what is the last renewal date? I need to check whether this is the issue.
2. After I reloaded dovecot, postfix & nginx, certificate pop up messages/errors disappeared. I found that we need to stop these services before renew and then after renew, we should restart these services. I found below "pre" and "post" folders are empty. Does iRedmail comes with scripts to do these or we need to build scripts to pre-stop and post-start these?
If someone can explain how to setup or link to show how let's encrypt renewal setup automatically on iRedmail, that will be great.
root@smtp:/etc/letsencrypt/renewal-hooks# ls -l
total 12
drwxr-xr-x 2 root root 4096 Mar 16 11:46 deploy
drwxr-xr-x 2 root root 4096 Mar 16 11:46 post
drwxr-xr-x 2 root root 4096 Mar 16 11:46 pre
root@smtp:/etc/letsencrypt/renewal-hooks# ls -l pre/
total 0
root@smtp:/etc/letsencrypt/renewal-hooks# ls -l post/
total 0
root@smtp:/etc/letsencrypt/renewal-hooks# ls -l deploy/
total 0
root@smtp:/etc/letsencrypt/renewal-hooks#
Awaiting replies,
Mathew
----
Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.