WebAdmin supports a maximum number of accounts that can be created on a per-domain basis but this option is actually less visible then you might imagine.
To set the maximum number of accounts, login to WebAdmin, go to the “Domains” editor, edit a domain and look at the [Properties] tab and look for the “Maximum number of users that can be created by WebAdmin:” option.
This limit effects domain administrators, but not global administrators.
Note that this option is not exposed in MDaemon’s GUI anywhere, so in order to take advantage of this feature you need to be using WebAdmin.
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.