1

Topic: I need to uninstall and reinstall Letsencrypt on my Iredmail server

==== Required information ====
- iRedMail version (check /etc/iredmail-release): 0.9.6
- Linux/BSD distribution name and version: Ubuntu 16.04
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Web server (Apache or Nginx): Apache
- Manage mail accounts with iRedAdmin-Pro? No
- Related log if you're reporting an issue:
====

Hi all,
I have a LAMP ubuntu 16.04 working properly with Iredmail 0.9.6.

My Letsencrypt cert (1 Domain, 2 Subdomains, same cert) are coming up for renewal in three days, I keep getting errors that Letencrypt cannot autorenew.
So I would like to uninstall/reinstall So I can get the autorenew to work.
This is the error:

root@SERV:/home/adminpc# letsencrypt --apache renew
Processing /etc/letsencrypt/renewal/example.com.conf 2017-02-08
21:15:53,425:WARNING:letsencrypt.cli:Attempting to renew cert from
/etc/letsencrypt/renewal/example.com.conf produced an unexpected error: 'server'. Skipping.
All renewal attempts failed. The following certs could not be renewed:  
/etc/letsencrypt/live/example.com/fullchain.pem (failure)
1 renew failure(s), 0 parse failure(s) root@SERV:/home/adminpc#

Any help would be greatly appreciated.

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: I need to uninstall and reinstall Letsencrypt on my Iredmail server

Dont use the "--apache" option, try '--webroot' instead.

3

Re: I need to uninstall and reinstall Letsencrypt on my Iredmail server

ZhangHuangbin wrote:

Dont use the "--apache" option, try '--webroot' instead.

Why webroot?   Is this possibly due to iRedAdmin and it running CherryPy in front of Apache for mail connections?  Can you explain more detail about such?

4

Re: I need to uninstall and reinstall Letsencrypt on my Iredmail server

It's better read letsencrypt official doc to understand the difference.

Here's a quick answer:

*) --webroot doesn't modify any config files, it just downloads the certs. then you should update config files manually to use them.

*) --apache option will update apache config files manually. This may mess up your existing config files.

5

Re: I need to uninstall and reinstall Letsencrypt on my Iredmail server

One more: iRedAdmin-Pro runs under Apache + mod_wsgi, or Nginx + uwsgi. NOT CherryPy in production.

6

Re: I need to uninstall and reinstall Letsencrypt on my Iredmail server

Hi

Thanks for this.

Regards