Topic: Amavis Crashing every day around Half 6
==== Required information ====
- iRedMail version: v0.9
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL [MariaDB]
- Linux/BSD distribution name and version: Ubuntu 14.04.1 [Trusty Tahr]
- Related log if you're reporting an issue: /var/log/mail.err
====
Jan 25 06:36:25 raven amavis[20107]: (!!)TROUBLE in pre_loop_hook: config: no rules were found! Do you need to run 'sa-update'?
The issue is that the amavis can't open the last file in this folder:
root@raven:~# ls /var/lib/spamassassin/3.004000/
total 16
drwxrwxr-x 3 debian-spamd debian-spamd 4096 Jan 25 06:36 .
drwxr-xr-x 6 debian-spamd debian-spamd 4096 Jan 20 16:50 ..
drwxrwxr-x 2 debian-spamd debian-spamd 4096 Jan 25 06:36 updates_spamassassin_org
-rw-rw---- 1 debian-spamd debian-spamd 2806 Jan 25 06:36 updates_spamassassin_org.cf <-----
I can manually change the permissions, either add Global Read, or chgrp to amavis, but this gets broken again the next morning, do you have any ideas because this is lethal.
service amavis debug:
Jan 25 07:24:41.047 raven.webdevguru.co.uk /usr/sbin/amavisd-new[23147]: initializing Mail::SpamAssassin (0)
Jan 25 07:24:41.048 raven.webdevguru.co.uk /usr/sbin/amavisd-new[23147]: SpamAssassin debug facilities: info
config: cannot open "/var/lib/spamassassin/3.004000/updates_spamassassin_org.cf": Permission denied
Jan 25 07:24:41.051 raven.webdevguru.co.uk /usr/sbin/amavisd-new[23147]: (!!)TROUBLE in pre_loop_hook: config: no rules were found! Do you need to run 'sa-update'?
Suicide () TROUBLE in pre_loop_hook: config: no rules were found! Do you need to run 'sa-update'?
----
Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.