DKIM public key for subdomain not saved in dns

short description

DKIM public key is not published in dns when making a DKIM key for a subdomain

correct behaviour

When creating a DKIM key from Email->Domain, the key should not only be stored for use by Amavis, but the public key should also be published in DNS. This works for normal domains, but not for subdomains.

environment

Server OS: Debian Server OS version: Wheezy ISPConfig version: 3.1.13

proposed fix

I don't know ISPConfig well enough to fix this myself :-(

references

My post on howtoforge about this subject: https://www.howtoforge.com/community/threads/dkim-public-key-for-subdomain-not-saved-in-dns.80434

log entries

/var/log/ispconfig/ispconfig.log:

29.10.2018-17:07 - DEBUG - Calling function 'check_phpini_changes' from plugin 'webserver_plugin' raised by action 'server_plugins_loaded'.
29.10.2018-17:07 - DEBUG - Found 1 changes, starting update process.
29.10.2018-17:07 - DEBUG - Calling function 'soa_update' from plugin 'bind_plugin' raised by event 'dns_soa_update'.
29.10.2018-17:07 - DEBUG - Writing BIND domain file: /etc/bind/pri.domain.tld
29.10.2018-17:07 - DEBUG - Writing BIND named.conf.local file: /etc/bind/named.conf.local
29.10.2018-17:07 - DEBUG - Processed datalog_id 52547
29.10.2018-17:07 - DEBUG - Calling function 'restartBind' from module 'dns_module'.
29.10.2018-17:07 - DEBUG - Remove Lock: /usr/local/ispconfig/server/temp/.ispconfig_lock