An example situation is this: As new employees start, you create mailboxes. When an employee leaves, you disable the mailbox. Skip ahead several years and you now have hundreds of disabled accounts eating up licenses and would like to delete them all.
- Backup. Please backup, we’re talking about deleting massive numbers of accounts including their mail directories here, and if you don’t have a backup plan, at least have an up to date resume?
- In MDaemon, go to Accounts –> Export to CSV file
- Open the CSV file in Excel
- Sort by the “AccessType” field. Be sure to use the “My data has headers” option, don’t sort the header in with the file. Also be certain that you sorted the entire file, not just the column.
- Look down the AccessType line and find the section that contains “C” entries. These accounts are completely disabled.
- Copy the email addresses listed in the first field, the “Email” field.
- Start notepad
- Paste the email addresses into Notepad.
- I implore you, please confirm that these are actually disabled mailboxes, if you made a mistake sorting in step #5, you’ll delete the wrong mailboxes.
- Save the Notepad file as C:\MDaemon\App\deluser.sem
When MDaemon sees the deluser.sem file, MDaemon will proceed to immediately delete every email address listed there, including their mail folders, all without prompting.
This can be done while MDaemon is running, or when MDaemon is shut down, the deluser.sem file will be processed as soon as MDaemon starts.
How to delete all disabled accounts by Dave Warren (everything-mdaemon.com) is licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License.