Skip to content

Everything MDaemon

Everything you've ever wanted to know about MDaemon

Menu

Primary menu

  • Home
  • Receive Updates by Email
  • Feedback
  • About
    • About Me
    • Copyright

Tag Archives: deluser.sem

How to delete all disabled accounts

Posted on 2008-10-07 by Dave Warren (everything-mdaemon.com) — No Comments ↓

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.

  1. 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?
  2. In MDaemon, go to Accounts –> Export to CSV file
  3. Open the CSV file in Excel
  4. 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.
  5. Look down the AccessType line and find the section that contains “C” entries.  These accounts are completely disabled.
  6. Copy the email addresses listed in the first field, the “Email” field.
  7. Start notepad
  8. Paste the email addresses into Notepad.
  9. 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.
  10. 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.

Posted in MDaemon | Tagged account management, deluser.sem | Leave a reply

Primary Sidebar Widget Area

Article Categories

  • General
  • LDaemon
  • MDaemon
  • MDaemon Plugins
  • Outlook Connector
  • Security Plus
  • SecurityGateway
  • SyncML
  • WebAdmin
  • WorldClient

About The Author

  • about.me
  • LinkedIn
  • Twitter

Links

  • Alt-N Knowledge Base
  • Alt-N on Facebook
  • Alt-N Technologies
  • Email Archiving
  • MDaemon Beta Program
  • MDaemon Homepage

Send me Bitcoin (I dare you)

bc1q0a0pca29dj3jvw9xrthecwfy66tkp57nz09mhd

Say thanks via Amazon

Bitcoin isn’t your thing? Try my Amazon Wishlist instead?

Copyright © 2025 Everything MDaemon. All Rights Reserved.
Theme: Catch Box by Catch Themes
Scroll Up