View Single Post
  #4  
Old 30th December 2012, 23:30
till till is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,434
Thanks: 813
Thanked 5,209 Times in 4,085 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