OK, self-inflicted wound here. I screwed something up with a few aliases and now I'm not sure how/if I can recover.
I just upgraded my Zimbra system today from version 4.5.8 to 5.0.1 (FOSS). Because of the problem with all aliases showing up when doing address auto-complete in the "To:", "CC:", and "BCC:" fields I decided to use both the internal LDAP database and an external LDAP database for the GAL. This isn't really something new for me, as I have used the external LDAP database with Zimbra in the past without any problems. However, with version 5.0.1 the address auto-complete really wasn't working right. It seemed like sometimes it would work, and other times I would get "Waiting for GAL" or no results at all. So, I thought I would temporarily remove all the aliases, and then just use the internal LDAP for the GAL. Not wanting to have to re-enter 400+ aliases once the issue with the aliases showing up gets solved, I was looking for some way to use 'zmprov' to basically export all my aliases, and then erase all the aliases using some type of script; also keeping in mind that I would want to import them all back in later.
Here's where my problem comes in. I looked at the 'zmprov' command, but I didn't look at it closely enough. Instead of looking at the 'removeAccountAlias' (raa) and 'addAccountAlias' (aaa) options, I was looking more at the 'modifyAccount' (ma) option. To test some things I was things I was thinking about putting in a script, on my own account I executed the command:
I'm thinking there has to be a way to get to the actual LDAP directory to either clear the "mail" attribute or re-add the "zimbraMailAlias" information that I wiped out. However, before I get myself in any deeper I figured I would stop, post my problem, and hope one or more of the Zimbra experts could point me in the right direction.
Any help would be greatly appreciated.