[rspamd] DKIM check not working when switching from amavis to rspamd (CentOS7)
short description
As described in this topic already, the dkim_signing.conf is not created in the rspamd config folder ( /etc/rspamd/local.d/ ) when you switch from amavisd to rspam. The _rspamd user also needs to be added to the amavis group (though I didn't check if this really was missing, before simply adding it :-/)
Thus rspamd is not able to find the dkim keys and throws warnings in the log.
dkim_module_load_key_format: cannot load dkim key /var/lib/rspamd/dkim/[DOMAIN].dkim.key: cannot stat key file: '/var/lib/rspamd/dkim/[DOMAIN].dkim.key' File or folder not found
https://www.howtoforge.com/community/threads/rspamd-greylist-dkim-keys-not-loaded.82823/#post-395279
correct behaviour
DKIM files should be read from existing amavisd folder without manual intervention and configuration
environment
Server OS: centos 7 ISPConfig version: 3.1.15p3
proposed fix
- _rspamd user should be added to group amavisd
- /etc/rspamd/local.d/dkim_signing.conf should be created with the following content:
try_fallback = false;
path_map = "/etc/rspamd/local.d/dkim_domains.map";
selector_map = "/etc/rspamd/local.d/dkim_selectors.map";