My server has stopped sending DKIM with emails. I’ve checked the key, and it matches the one in our DNS service. Should the Amavis service be running? It’s not even installed on this machine.
TY for your fast response. I asked about Amavis because the key is stored in /var/lib/amavis/domain.com.public. (/etc/rspamd/local.d/dkim_domains.map points there) Anyway, what could be the reason? It still worked last month but then suddenly stopped sending. I didn't update or change anything.
That's fine. Rspamd uses this directory for the dkim keys. I have not seen such an issue on any of my systems yet. You can just check the rspamd and mail log to see if you find any errors when sending an email that should be signed. What you can try to is run an ISPConfig update with reconfigure services = yes to see if this fixes the config.
You can check if all the configuration necessary is present. In the file /etc/rspamd/local.d/dkim_domains.map there should be an entry like this: Code: domain.tld /var/lib/amavis/dkim/domain.tld.private And in /etc/rspamd/local.d/dkim_selectros.map Code: domain.tld default Make sure to check that /var/lib/amavis/dkim/domain.tld.private is present too. If that all good and the issue is still persistent, you can check the mail.log and rspamd.log if there are no hints to the issue you can enable the debug_module for DKIM in rspamd to get extensive logging. In the file /etc/rspamd/logging.inc you can set: Code: ... debug_modules = ["dkim"]; ...
Thank you for the insight, Pyte. I'm sure this would have been helpful. Luckily, running an ISPConfig update with Reconfigure Services activated, as suggested by Till, worked.