In Mail, select to remove both accounts using the "-" sign to remove.
Mail > Preferences > Accounts
This will take you to System Preferences > Internet Accounts.
Uncheck Mail for both accounts.
Quit Mail.
Go to your User's Library (see below)
Scroll down to Containers.
Delete the com.apple.mail folder
Scroll down to Mail
Move this folder to the Desktop (you might need to move to the Trash so Mail does not try to use the data in this folder.)
Open System Preferences > Internet Accounts. Check Mail for your default account. I'm assuming Exchange
- While you are viewing the User's Library so you can watch a new Mail folder be created.
- Open Mail and let your Exchange account download.
Next add your Gmail account in System Preferences > Internet Accounts
(Note if you have mail stored under the local "On My Mac" folders, you need to export them from Mail before you reset your Mail in the steps above.)
Show User's Library
The User's Library folder is hidden by default. To unhide: Select the Finder in the Dock. Under Go in the Menu bar > hold down the Option key and you’ll see the Library.
Finding the User Library Folder
http://www.takecontrolbooks.com/resources/0167/site/chap11.html#FindingtheUserLi braryFolder