Not Cleaned Up after Client Deletion

Discussion in 'Installation/Configuration' started by fatbear, Dec 30, 2012.

  1. fatbear

    fatbear Member HowtoForge Supporter

    After I deleted a website, I noted the following still remained:


    Note that in testing this issue, I only created a website and waited for it to come into existence, then deleted it, and then observed what was not cleaned up.

    These should have been deleted during the website deletion, right?
    Last edited: Dec 30, 2012
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    The file in spool is not created by ispconfg, so ispconfig will not remove it. The directory /var/www/php-fcgi-scripts/web11 shall be deletecd by ispconfig. Have you tested this in 3.0.5, its most likely been fixed there already.
  3. fatbear

    fatbear Member HowtoForge Supporter

    Hi Till,

    Thanks for the reply. I haven't tested it in the non-stable 3.0.5 release. But, I'll take that as a push to my placing some domains that I keep around for testing purposes to put them on a server permanently for the purpose of testing ISPConfig svn code.

    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?

    As an aside, I really need to figure out how to start writing such code. Perhaps the learning curve to being an ISPConfig developer has discouraged me so far. Maybe you can point me at some resources that will help jump start me to writing such things. :)

    Again, thanks for everything you do for all of us!

    Almost... Happy New Year!
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    Maybe the useradd command sends a welcome email on your system or similar. Take a look whats in the mail file.

    ISPConfig backend is event based, so you can hook your code to the event "web_domain_delete" by creating a custom plugin.


Share This Page