> I'm sure someone else has encountered this issue.
> Since we're using LDAP for the authentication means.... there is no
> interaction with the filesystem as there is with regular adduser/deluser
> in Linux.
>
> What's the best way to make sure that I don't have "orphan" directories
> for customers in qmail?
>
> My understanding is that right now.. if I delete a user from the LDAP
> server, the qmail directory for that customer will still remain there.
>
> Has anyone written a script or is there some way to go through and
> remove orphan directories?

I use a simple script that basically does this:

1. make a list of all mailmessagestores in ldap
2. make a list of all directories in /maildir 
diff the two
remove the ones that are not in ldap.
of course, that's very crude, for instance because lost+found was in the 
'remove' list when i was still using ext2 ;-)

_Ace

Reply via email to