Hello ;
Bug found. When a domain for which OpenDKIM is enabled, is being deleted, the openDKIM plugin sets the status of the domain back to 'tochange', resulting to many orphaned entries and orphaned files on the file system (causing many issues)... This is easy to fix, I'll simply check the domain status and if it is set to 'todelete', the status will not be reset back to 'tochange'..
Code
- root@reiserfs:/var/log/imscp# perl /var/www/imscp/engine/imscp-rqst-mngr
- =======================
- Processing Plugin items.
- Processing 1, OpenDKIM, enabled. (1 of 1: remaining 0)
- =======================
- Processing SSLcertificate items.
- No item found.
- =======================
- Processing User items.
- No item found.
- =======================
- Processing Domain items.
- Processing 2, domain2.tld, tochange. (1 of 1: remaining 0)
- =======================
- Processing Subdomain items.
- No item found.
- =======================
- Processing Alias items.
- No item found.
- =======================
- Processing SubAlias items.
- No item found.
- =======================
- Processing Mail items.
- Processing 6, abuse@domain2.tld, todelete. (1 of 4: remaining 3)
- Processing 4, webmaster@domain2.tld, todelete. (2 of 4: remaining 2)
- Processing 7, nuxwin@domain2.tld, todelete. (3 of 4: remaining 1)
- Processing 5, postmaster@domain2.tld, todelete. (4 of 4: remaining 0)
- =======================
- Processing Htusers items.
- No item found.
- =======================
- Processing Htgroup items.
- No item found.
- =======================
- Processing Htaccess items.
- No item found.
- =======================
- Processing SubAlias items.
- No item found.
- =======================
- Processing Alias items.
- No item found.
- =======================
- Processing Subdomain items.
- No item found.
- =======================
- Processing Domain items.
- No item found.
- =======================
- Processing User items.
- Processing 4, domain2.tld, todelete. (1 of 1: remaining 0)
- =======================
- Processing NetCard items.
- No item found.
Above, you can see the deletion process in action for a domain which have OpenDKIM support enabled... As you can see, the domain status has been set back to 'tochange'...