0
I'm trying to script out new user accounts and am having issues creating a mail user in exchange 2007.
We are migrating to zimbra for our e-mails, so i'm not looking to create a mailbox, but a mail-user (in the mail contact section of the exchange console) to direct mail to the new server. The users AD account has already been created.
I'm using the powershell command:
Enable-MailUser -Identity 'domain\username' -Alias 'username' -ExternalEmailAddress 'SMTP:username@zimbra.domain.local'
When I run the command it creates a 'legacy mailbox' in the mailbox section instead of the expected 'mail user' in the mail contact section.
However, if I disable the legacy mailbox
(just by right clicking and choosing disable) and re-run the same command, it creates the mail user
as expected.
Does anyone know how I'm able to create a mail user
in the mail contact
section first off?
I've experimented with creating mail-contacts, but that also creates a duplicate entry in AD. Something that may confuse the helpdesk.
Hope I explained the above ok. Can clarify if needed.
Thanks.
The users AD accounts are already created before I run the enable-mailuser command, so nothing new is created that I know of. I've found the issue now though. – Andrew – 2014-06-17T23:17:21.303