What does msuserpurge require to act?

This is the process to delete a user, as I understand it: (in version 6.2-7.50)

1) set user to 'deleted' status using commadmin

2) run msuserpurge to delete the msg store

3) purge user from ldap using commadmin

Instead of using commadmin I have a perl routine that changes the mailuserstatus to 'deleted'. My problem is that msuserpurge is not deleting the message store. I know it is not because I use mboxutil -l to show the mail folders for a given user. So, my question is what values does msuserpurge require to be in which attributes in order for it to delete the message store for a given user?

Below is a sample of the output from when I ran msuserpurge with the -v switch. Can anyone interpret this for me?

Grace period: 180 days

Purge users deleted before: 20060603230420Z

============================================================================

Domain Name: jaguar1.usouthal.edu

mailDomainStatus: active

inetDomainStatus: active

-

User NamemailUserinetUserModified Time Action

- - -

alightboactiveactive 20061128213109Z-

test997activedeleted 20060630155248Z pending

test999deleteddeleted 20060630155248Z pending

jmcphersondeletedactive 20060630155249Z pending

chedept inactiveactive 20060630154929Z-

csmithremovedactive 20061130173859Z-

...

-

total: 32578 | deleted: 51 | purged: 0 | pending: 51 | error: 0

thanks,

-Chris H

[1500 byte] By [chris_heath] at [2007-11-26 11:52:33]
# 1

you need to set the grace period to 0 days if you want it to purge the accounts immediately. If you do not as it says at the top of your post the default grace period is 180 days and they will not be purged until they have been marked for deletion that long.

Also don't forget the PIserverDb and/or PAB records. Msuserpuge does nothing to delete those address book records and they will be orphaned.

Gary

gpeck1 at 2007-7-7 12:08:38 > top of Java-index,E-Mail, Calendar, & Collaboration,Sun Java System Messaging Server...
# 2

So, are you saying that accounts that are marked with the Action of 'pending' are the ones that did not fall into the given grace period? Does that mean that those that are have a mailUserStatus of 'removed' did meet the grace period requirement?

What is the comparable tool to purge PIserverDb and/or PAB records?

thanks,

-ch

chris_heath at 2007-7-7 12:08:38 > top of Java-index,E-Mail, Calendar, & Collaboration,Sun Java System Messaging Server...
# 3
No.He's talking about how long "deleted" has been in mailUserStatus.If you don't specify a grace period, then users with "deleted" for less that the default grace period will not be purged.For now, I suggest "ldapmodify" for removing address book data.
jay_plesset at 2007-7-7 12:08:38 > top of Java-index,E-Mail, Calendar, & Collaboration,Sun Java System Messaging Server...
# 4

Alright I am starting to sort things out. The msuserpurge log reports the action as 'purged' for entries that are older than the grace period. After the msusrerpurge completes the mailuserstatus shows as removed. So, why does the command:

mboxutil -l -P 'user/athdev*'

show an inbox for an account that has mailuserstatus = removed?

chris_heath at 2007-7-7 12:08:38 > top of Java-index,E-Mail, Calendar, & Collaboration,Sun Java System Messaging Server...
# 5
Messaging Server won't remove the files until imexpire runs, by default at 11:00 pm.
jay_plesset at 2007-7-7 12:08:38 > top of Java-index,E-Mail, Calendar, & Collaboration,Sun Java System Messaging Server...