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 restore messages that were expunged from Desdemona’s memos mail folder in the last 24 hours:
mboxutil -R -t 24 user/desdemona/memos |
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.
To list personal, non-existing mailbox subscriptions for user mailboxes listed in a file named orphanfile:
mboxutil -S -n -f orphanfile |
To unsubscribe the non-existing mailbox subscription list generated by the previous example:
mboxutil -S -u -f orphanfile |