Does not remove dkim_key entry in /etc/amavis/conf.d/60-dkim when Updating Mail Domain and DKIM Record
short description
When updating an existing mail domain (instead of creating a new one, for the purpose of changing primary domains of mailboxex, forwarders and aliases), and updating DKIM record for new domain, the dkim_key entry for the old domain remains in /etc/amavis/conf.d/60-dkim but referenced files in /var/lib/amavis/dkim are removed, so amavis throws an error similar to:
"Error in config file "/etc/amavis/conf.d/60-dkim": Can't open PEM file /var/lib/amavis/dkim/somedomain.com.private: No such file or directory at /usr/sbin/amavisd-new line XXX"
Which results in Amavis failing to start.
correct behaviour
dkim_key entry should be removed from 60-dkim to prevent nonexistent references and allow amavis to start
environment
Server OS: Ubuntu Server OS version: 20.04.1 ISPConfig version: 3.2.2
log entries
XXX XX XX:XX:XX some.server.hostname amavis[XXXXXXXX]: Error in config file "/etc/amavis/conf.d/60-dkim": Can't open PEM file /var/lib/amavis/dkim/somedomain.com.private: No such file or directory at /usr/sbin/amavisd-new line XXX