Topic: Let's Encrypt and SOGo libffi version conflict on CentOS 6.7
======== Required information ====
- iRedMail version (check /etc/iredmail-release): 0.9.4
- Linux/BSD distribution name and version: CentOS 6.7
- 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:
====
The Let's Encrypt client is not playing nice with these libraries from SOGo:
libffi.x86_64 3.0.10-1 @SOGo
libffi-devel.x86_64 3.0.10-1 @SOGo
I have a working Let's Encrypt client installed on a similar CentOS6.7 machine which has these versions:
libffi.x86_64 3.0.5-3.2.el6 @anaconda-CentOS-201508042137.x86_64/6.7
libffi-devel.x86_64 3.0.5-3.2.el6 @base
The specific error when running letsencrypto-auto client references libffi during installation of virtual environment:
c/_cffi_backend.c:13:17: error: ffi.h: No such file or directory
I think I can temporarily remove SOGo version, get a certificate and then switch back. Obviously this isn't a long term solution since the certificates need to be renewed every 90 days. A script that restarts various services as needed after renewal is fine (if less than perfect), but I don't think I'm willing to automate the library downgrade.
That is, if I can make this work. I have removed sogo with yum but that doesn't remove the libraries. When I do 'yum remove libffi libffi-devel' I end up at:
Error: Trying to remove "yum", which is protected
----
Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.