Topic: Expired Certificate, now iredmail wont' start, even on backups
==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 2.2
- Deployed with iRedMail Easy or the downloadable installer? installer
- Linux/BSD distribution name and version: ubuntu 18
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): sql
- Web server (Apache or Nginx): nginx
- Manage mail accounts with iRedAdmin-Pro? no
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====
I was using a certificate from let's encrypt, I had it set to auto renew, but installed Rain Mail on one domain, and that was the one that wasn't verifying. So My certificate expired. I then changed the config for the rain mail site, and renwed the certificates. All web services load fine, but I wasn't able to send mail, mail log told me postfix couldn't communicate with 127.0.0.1.
I tried to restart the iredapd service, and go the error:
service iredapd start
Job for iredapd.service failed because the control process exited with error code.
See "systemctl status iredapd.service" and "journalctl -xe" for details.
iredapd.service - iRedAPD (A simple posfix policy server)
Loaded: loaded (/opt/iredapd/rc_scripts/iredapd.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Mon 2019-02-25 19:47:50 UTC; 3min 35s ago
Process: 20194 ExecStart=/usr/bin/python /opt/iredapd/iredapd.py (code=exited, status=1/FAILURE)
Feb 25 19:47:50 mail.domain.com python[20194]: File "/opt/iredapd/iredapd.py", line 23, in <module>
Feb 25 19:47:50 mail.domainl.com python[20194]: from libs import __version__, daemon, utils
Feb 25 19:47:50 mail.domain.com python[20194]: File "/opt/iRedAPD-2.2/libs/utils.py", line 10, in <modul
Feb 25 19:47:50 mail.domain.com python[20194]: from libs.logger import logger
Feb 25 19:47:50 mail.domain.com python[20194]: File "/opt/iRedAPD-2.2/libs/logger.py", line 119, in <mod
Feb 25 19:47:50 mail.domain.com python[20194]: log_level = getattr(logging, str(settings.log_level).up
Feb 25 19:47:50 mail.domain.com python[20194]: AttributeError: 'module' object has no attribute 'log_level
Feb 25 19:47:50 mail.domain.com systemd[1]: iredapd.service: Control process exited, code=exited status=1
Feb 25 19:47:50 mail.domain.com systemd[1]: iredapd.service: Failed with result 'exit-code'.
Feb 25 19:47:50 mail.domain.com systemd[1]: Failed to start iRedAPD (A simple posfix policy server).
for S&G I went back to a snapshot of my initial install. The service was running, I restarted it, and it wouldn't work. That was a snapshot from 2 months ago... I'm totally lost.
Also this is a non-commercial e-mail server, but I'm paying for it out of my own pocket to provide e-mails I can closely monitor for my kids online accounts etc. Would love some direction!
Thanks!
----
Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.