Topic: Bayes database permissions keeps resetting
==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 1.3.2
- Deployed with iRedMail Easy or the downloadable installer? Downloadable
- Linux/BSD distribution name and version: Ubuntu 20.04
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- 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.
====
Hi!
Bayes database file
/var/lib/amavis/.spamassassin/bayes_toks
owner keeps changing from amavis to root periodically and this fires the following email:
Cron <amavis@xxxxxx> test -e /usr/sbin/amavisd-new-cronjob && /usr/sbin/amavisd-new-cronjob sa-sync
bayes: cannot open bayes databases /var/lib/amavis/.spamassassin/bayes_* R/O: tie failed: Permission denied
This can easily be fixed by changing the owner back to amavis, but feels silly to keep doing this every week
chown amavis:amavis /var/lib/amavis/.spamassassin/bayes_toks
There's a mention about the same issue also in here https://forum.iredmail.org/topic17696-a … lugin.html
----
Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.