Sun Java System Messaging Server 6 2005Q4 Administration Reference

Examples

To list all mailboxes for all users:


mboxutil -l

To list all mailboxes and also include path and acl information:


mboxutil -l -x

To list all mailboxes displaying only the mailbox names:


mboxutil -l -s

To create the default mailbox named INBOX for the user daphne:


mboxutil -c user/daphne/INBOX

To delete a mail folder named projx for the user delilah:


mboxutil -d user/delilah/projx

To delete the default mailbox named INBOX and all mail folders for the user druscilla:


mboxutil -d user/druscilla/INBOX

To rename Desdemona’s mail folder from memos to memos-april:


mboxutil -r user/desdemona/memos user/desdemona/memos-april

To move the mail account for the user dimitria to a new partition:


mboxutil -r user/dimitria/INBOX user/dimitria/INBOX partition

where partition specifies the name of the new partition.

To move the mail folder named personal for the user dimitria to a new partition:


mboxutil -r user/dimitria/personal user/dimitria/personal \
partition

To list orphaned mailboxes and mailboxes that have not been accessed in 60 days:


mboxutil -o -w orphanfile -t 60

The preceding example writes the list of orphaned and inactive mailboxes to a file named orphanfile.

To delete orphaned and inactive mailboxes:


mboxutil -d -f orphanfile

where orphanfile is a file that has stored a list of orphaned and inactive mailboxes identified with the -o option.