servisys / ispconfig_setup

ISPConfig autoinstaller and setup
GNU General Public License v3.0
506 stars 257 forks source link

DKIM key saved in ISPConfig amavis folder is no readable by _rspamd #364

Closed Schroeffu closed 2 years ago

Schroeffu commented 2 years ago

Hi ISPconfig Team,

my ISPConfig is configured to use rspamd and i've added a DKIM Key in ISPConfig UI. While sending an e-Mail it is trying to sign but the key file is not readable by _rspamd.

My workaround was to add "_rspamd" as a member in group "amavis" so /etc/group the entry loosk now: amavis:x:124:clamav,_rspamd

2021-08-12 22:10:54 #1758486(normal) <b314eb>; task; dkim_module_load_key_format: cannot load dkim key /var/lib/amavis/dkim/MYDOMAIN.de.private: cannot stat key file: '/var/lib/amavis/dkim/MYDOMAIN.de.private' Permission denied

I am not sure if this is the best way to allow rspamd read a dkim key in the /var/lib/amavisamavis folder, for security purposes maybe it is better to make another solution. it is up to you :)

Affected version: (Ubuntu 20.04.2 LTS (Focal Fossa)) ISPConfig 3.2.4

thanks for checking this issue. all the best schroeffu

Schroeffu commented 2 years ago

LOL totally wrong bugtracker here, found the bug already reported here: https://git.ispconfig.org/ispconfig/ispconfig3/-/issues/5608