Removing Exchange 2003 without deleting AD email attribute

active-directoryemailexchangeuninstall

So I've got a client that has an ancient Exchange 2003 server that I've taken out of commission and replaced with a *nix solution. Dovecot/Postfix both query the email attribute in AD to verify whether or not a user has the ability to read a mailbox (their own) and do some other stuff. Of course, I want to properly remove Exchange 2003 from the schema, but in order to do that I have to delete the Exchange mailboxes in order to uninstall Exchange cleanly. Normally, this wouldn't be an issue, but by deleting the Exchange mailbox you delete the email attribute in AD, which means I have to go back and manually re-add it for each user. I'd rather not do that, so I was wondering if anyone was aware of a way of killing the Exchange AD integration without deleting the e-mail attribute. I'm all for trashing Exchange via ADSI edit, but I believe that still leaves the individual Exchange attribute tabs visible for each user (Ex. General, Ex. Advanced, etc.).

Any help would be greatly appreciated.

Best Answer

The mail attribute (which contains the user's "primary" email address) will still be available to you after you uninstall Exchange. I'd just export all the mail attributes using the ldifde.exe tool, delete all the mailboxes and immediately re-import all the exported mail attributes. Then you can clean up Exchange properly.