View Single Post
  #4  
Old 31st December 2012, 00:30
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,788
Thanks: 840
Thanked 5,612 Times in 4,423 Posts
Default

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');
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote