Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

redundant mail account dirs - script to detect and delete?

Discussion in 'E-mail Discussion' started by spaceman, Dec 5, 2005.

  1. spaceman

    spaceman Well-Known Member

    Mar 25, 2002
    Likes Received:
    Trophy Points:
    Hi All,

    I'm looking at the mail dir for one of our hosting accounts:


    In there are lots of old dirs (with 2004 and 2003 dates next to them) that do not have a corresponding mail account as far as cPanel is concerned (mail > manage/add/remove accounts).

    I can only assume that these old dirs / folders where not correctly deleted (for whatever reason) when the account was terminated via manage/add/remove accounts in cPanel.

    I'm assuming that many of our hosting accounts might be affected by this problem, and therefore would like to tidy this up.

    Short of going through every host accounts and making the comparison manually, does anyone know if there's a script that will (reliably!!) rip through a cPanel/WHM server, and auto-deleting any redundant mail dirs?

    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice