[vPostMaster] Removing email accounts

Sean Reifschneider jafo at tummy.com
Tue Jan 29 18:02:00 MST 2008


On Tue, Jan 29, 2008 at 07:40:55PM -0500, Craig Isdahl wrote:
>Is it possible for us to "turn on" the ability to delete the
>directories/files when an account is deleted?  Our first tier people don't

Hmm, I just looked at the "vpm-wwwhelper" code and it's got a call to "rm
-rf", so maybe there is some problem in the code where it's not calling the
helper on user remove, or there is some problem with that code.  You are
running 1.42, right?

>Also, what's the best way to reconcile email accounts and the file system to
>find orphaned directories?

Probably just ask the database for the list of e-mail home-directories, and
compare that with the directories that exist under that domain directory.
A simple SQL query could pull out the list for just a single domain, so the
comparison should be easy enough.  Or you could turn it around and for each
home directory in a domain, query the database to see if it's listed there.

Thanks,
Sean
-- 
 Linux:  Bring back that "greased weasel" feeling.
                 -- Sean Reifschneider, 1998
Sean Reifschneider, Member of Technical Staff <jafo at tummy.com>
tummy.com, ltd. - Linux Consulting since 1995: Ask me about High Availability



More information about the vPostMaster mailing list