1

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.

2

Re: Bayes database permissions keeps resetting

Could you figure out which program set the owner to root?

3

Re: Bayes database permissions keeps resetting

Not sure how to figure this out exactly as it seems to be quite random. All I can think of now is that I installed some ubuntu updates with apt-get update && apt-get upgrade around same times when these happened, but can't be sure if these are related or not.

4

Re: Bayes database permissions keeps resetting

We need to figure out which program changed the owner first, otherwise it's hard to troubleshoot and fix.