Topic: ERROR: Can't save PID to file /var/run/clamd.amavisd/clamd.pid: Permis
==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 0.9.8 MARIADB edition.
- Deployed with iRedMail - downloadable installer?
- Linux/BSD distribution name and version: centos 7
- Store mail accounts in which backend (MySQL):
- Web server (Nginx):
- Manage mail accounts with iRedAdmin-Pro?
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====
the amavisd user is gobbling up resources (mainly cpu) because of numerous log entries which appear to eminate from this error:
ERROR: Can't save PID to file /var/run/clamd.amavisd/clamd.pid: Permission denied
i don't fully under stand the processes behind this, but obviously there is a file ownership issue here.
as i understand it, this file is being continually being recreated so even when you change the ownership of the file, it quickly reverts back to being owned by root:root
the user for amavis is amavis, so from what i can see amavis needs to be able to either rewrite or access this file in some way
on another test system i have, the owner is root:amavis and i am not having the same problem.
how can i get this system to create the file as root:amavis as owner?
----
Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.