Regarding ticket 1068, I open this thread about an issue involving the OpenDKIM Plugin.
If you use the plugin, you can get this issue:
Create two domains, for one of them activate the DKIM on it.
Now, delete both domains and here is what you should get:
For the domain that didn't get the DKIM enable on it (domain here is "testadm.test"):
In DB, table "log" should have two entries regarding the adding part (if we search for the syntax of the domain)
And for the files/folder list:
/etc/imscp/apache/backup/testadm.test.conf.1396279574
/etc/imscp/apache/backup/testadm.test.conf.1396279649
/etc/imscp/bind/backup/testadm.test.db.1396279574
/etc/imscp/bind/backup/testadm.test.db.1396279649
/var/log/apache2/testadm.test
/var/log/apache2/testadm.test/error.log
/var/log/imscp/Domain_module_testadm.test.log
/var/log/imscp/Htusers_module_testadm.test.log
/var/log/imscp/Mail_module_abuse@testadm.test.log
/var/log/imscp/Mail_module_postmaster@testadm.test.log
/var/log/imscp/Mail_module_webmaster@testadm.test.log
/var/log/imscp/User_module_testadm.test.log
This is the normal behavior expected.
Now, for the domain which has the DKIM enable, in DB, table domain, it will remain in it.
Also, files/folders will remain in place (domain here is "testresel.local"):
/etc/apache2/imscp/testresel.local.conf
/etc/apache2/sites-available/testresel.local.conf
/etc/apache2/sites-enabled/testresel.local.conf
/etc/awstats/awstats.testresel.local.conf
/etc/imscp/apache/backup/testresel.local.conf.1396279579
/etc/imscp/apache/backup/testresel.local.conf.1396279589
/etc/imscp/apache/working/testresel.local.conf
/etc/imscp/bind/backup/testresel.local.db.1396279579
/etc/imscp/bind/backup/testresel.local.db.1396279589
/etc/imscp/bind/working/testresel.local.db
/var/cache/bind/testresel.local.db
/var/log/apache2/testresel.local
/var/log/apache2/testresel.local/error.log
/var/log/imscp/Domain_module_testresel.local.log
/var/log/imscp/Htusers_module_testresel.local.log
/var/log/imscp/Mail_module_abuse@testresel.local.log
/var/log/imscp/Mail_module_postmaster@testresel.local.log
/var/log/imscp/Mail_module_webmaster@testresel.local.log
/var/log/imscp/User_module_testresel.local.log
/var/mail/virtual/testresel.local
/var/www/fcgi/testresel.local
/var/www/fcgi/testresel.local/php5
/var/www/fcgi/testresel.local/php5-fcgid-starter
/var/www/fcgi/testresel.local/php5/php.ini
Hope this is enough detailled
EDIT:
Config files aren't cleaned too, like "/etc/bind/named.conf.local"
// imscp [testresel.local] entry BEGIN
zone "testresel.local" {
type master;
file "/var/cache/bind/testresel.local.db";
allow-transfer { X.X.X.X; localhost; };
notify yes;
};
// imscp [testresel.local] entry ENDING
Also in the file:
"/etc/postfix/imscp/domains" ==> testresel.local vdmn_entry