Ok, so it will look at the value for "username" in the /users/domain/ and then see if the corosponding value for that user is found in the ldap? Last thing then... what value are you looking for in ldap.. Im' not seeing it... I need to change that to match what my directories are named after (I would assume)
On Wed, 2003-03-26 at 11:23, Brendon Colby wrote: > On Wednesday 26 March 2003 08:42, Matt wrote: > > Ok, > > I want to make sure I understand how this works... > > This will go through the LDAP and check every record against every > > maildir? > > My mail directories are by customer ID ie: "511425" which is also a > > value in LDAP called "x500uniqueIdentifier" > > We have our maildirs setup like this: > > /home/users/domain/username > > So, the script goes through every mailbox and checks if there is a > corresponding entry on the ldap server. Obviously yours will be a bit > different but the logic should be mostly the same: > > Get list of mailboxes > Foreach mailbox > Check if account exists on LDAP server > IF not exist > Archive / Delete mailbox > > > Maybe someone else has a better way but I've tested this out and it works > quite well. -- Matt <[EMAIL PROTECTED]>
