Topic: Amavis cannot read PEM file with correct permissions?
==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version): 1.4.2 PGSQL edition
- Linux/BSD distribution name and version: Debian 11
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): PGSQL
====
Oct 17 04:32:44 mx systemd[1]: Started Interface between MTA and virus scanner/content filters.
Oct 17 04:32:44 mx amavisd-new[7756]: Error in config file "/etc/amavis/conf.d/50-user": Can't open PEM file /var/lib/dkim/cute.im.pem: Permission denied at /usr/sbin/amavisd-new line 638.
Oct 17 04:32:44 mx systemd[1]: amavis.service: Main process exited, code=exited, status=13/n/a
Oct 17 04:32:44 mx systemd[1]: amavis.service: Failed with result 'exit-code'.
# root @ mx in /var/lib [4:34:40]
$ ls -lah /var/lib/dkim/
total 24K
dr-------- 2 amavis amavis 4.0K Oct 17 03:47 .
drwxr-xr-x 35 root root 4.0K Oct 17 03:09 ..
-r-------- 1 amavis amavis 1.7K Oct 17 03:04 cute.im.pem
Permissions on the PEM file look fine but amavisd-new seems unable to read the file.
----
Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.