Quote:
|
Do you happen to know what command that ISPConfig invokes that is responsible for creating the /var/spool/mail/<webid> directory? And, is there a hook in the code that I can use during website deletion to write some code that can take care of the cleanup?
|
Maybe the useradd command sends a welcome email on your system or similar. Take a look whats in the mail file.
Quote:
|
And, is there a hook in the code that I can use during website deletion to write some code that can take care of the cleanup?
|
ISPConfig backend is event based, so you can hook your code to the event "web_domain_delete" by creating a custom plugin.
Example:
$app->plugins->registerEvent('web_domain_delete',$this->plugin_name,'my_delete_function');