KB13040101 Rebuilding a corrupt Configuration
Restore from backup
If your main configuration becomes corrupted you should always first attempt to restore it from your last known good backup.
How to restore a configuration...
Corrupted user mapping
"...all my users have become attached to the Admin account as well as showing in the mailboxes section - and they are all flagged 'red'."
If you have no valid backup then you can attempt to restore the correct relationships between your users, orphan mailboxes, address-books and calendars as follows.
Use the Tools | Backup Configuration to capture the present state of your Configuration.
Do not skip this step!
Download and unpack the 'fixownerships' script [Download]
Then, in the Mailtraq console, go to Tools | Execute Script
When the script window opens, go to File | Open...
and select/open the fixownerships.js that you unpacked from the download.
It will open in the window and look similar to the image (shown after execution).
Fire the script at Script | Execute in that window
It will offer you a list of corrections, first of mail, then calendars and addressbooks.
And that should put your ownerships right.