Topic: iRedapd problems
==== Required information ====
- iRedMail version (check /etc/iredmail-release): 0.9.8
- Linux/BSD distribution name and version: Debian 9
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Web server (Apache or Nginx): Nginx
- Manage mail accounts with iRedAdmin-Pro?
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====
I have a machine with Debian 8 + Apache + iRedMail 0.9.7 and everything works fine.
Today I set up a new machine with Debian 9 + Nginx + iRedMail 0.9.8 to see if I can migrate to the new configuration. Everything seems to be fine except that I receive error cronjob emails in the postmaster box. In detail:
Cron <root@mail2> python /opt/iredapd/tools/cleanup_db.py >/dev/null
Traceback (most recent call last):
File "/opt/iredapd/tools/cleanup_db.py", line 34, in <module>
total_before = sql_count_id(conn_iredapd, 'throttle_tracking')
File "/opt/iredapd/tools/../tools/__init__.py", line 80, in sql_count_id
qr = conn.select(table,
AttributeError: 'NoneType' object has no attribute 'select'
Cron <root@mail2> python /opt/iredapd/tools/spf_to_greylist_whitelists.py >/dev/null
Traceback (most recent call last):
File "/opt/iredapd/tools/spf_to_greylist_whitelists.py", line 91, in <module>
qr = conn.select('greylisting_whitelist_domains', what='domain')
AttributeError: 'NoneType' object has no attribute 'select'
How can I solve the problem?
----
Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.