• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 854
  • Last Modified:

How to transfer email from one account to another within Exchange 2007?


I've got a user that has two email account within exchange and not sure how this happened. Now this user has been getting email sent to one account she doesn't use and had no idea she had. What I need to do is transfer her email from one account to the other and also maybe change her existing email address as well. Can an Expert provide me the instructions on how to accomplish this?


Jaime Campos
Jaime Campos
Jaime Campos
  • 6
  • 6
1 Solution
run the following:
export-mailbox user2 -targetmailbox user1 -deletecontent

Jaime CamposAuthor Commented:
am I putting email address that I want to export on User2 and the target will be new email address (User1)? Will the -deletecontent delete all information in user 2 (unwanted email) mailbox? If I don't want to delete anything yet can I leave out that switch?
you can use either the alias or email address
yes, the deletecontent will remove from the source mailbox and can be excluded
Easily manage email signatures in Office 365

Managing email signatures in Office 365 can be a challenging task if you don't have the right tool. CodeTwo Email Signatures for Office 365 will help you implement a unified email signature look, no matter what email client is used by users. Test it for free!

Jaime CamposAuthor Commented:
This is what I typed into Exchange Management Shell

export-mailbox email@domain.com  -targetmailbox newemail@domain.com

this is what I got back.

cmdlet Export-Mailbox at command pipeline position 1
Supply values for the following parameters:

Any idea why?
That is required with the targetmailbox
You should be able to use \
Jaime CamposAuthor Commented:
Got an error on status message.

TargetFolder: export-mailbox lcabrera2@rapadocs.com\-targetmailbox lcabrera@rapa

Are you sure you want to perform this action?
Exporting mailbox content from the mailbox 'Dr. Lisa Cabrera' into the mailbox
for 'Dr. Lisa Cabrera (lcabrera@rapadocs.com)' inside folder '\export-mailbox
lcabrera2@rapadocs.com\-targetmailbox lcabrera@rapadocs.com\Recovered Data -
Dr. Lisa Cabrera - 9/13/2010 8:39:50 AM'. This operation may take a long time
to complete.
[Y] Yes  [A] Yes to All  [N] No  [L] No to All  [S] Suspend  [?] Help
(default is "Y"):A
Export-Mailbox : Error was found for Dr. Lisa Cabrera (lcabrera2@rapadocs.com)
because: Error occurred in the step: Creating target folder in the target mailb
ox. An unknown error has occurred., error code: -2147221233
At line:1 char:15
+ export-mailbox <<<<  lcabrera2@rapadocs.com -targetmailbox lcabrera@rapadocs.
    + CategoryInfo          : InvalidOperation: (0:Int32) [Export-Mailbox], Re
    + FullyQualifiedErrorId : 458277B7,Microsoft.Exchange.Management.Recipient

Identity                         : RAPA.local/South East/Physicians/Dr. Lisa Ca
DistinguishedName                : CN=Dr. Lisa Cabrera,OU=Physicians,OU=South E
DisplayName                      : Dr. Lisa Cabrera
Alias                            : lcabrera
LegacyExchangeDN                 : /o=RAPA Email/ou=Exchange Administrative Gro
                                   up (FYDIBOHF23SPDLT)/cn=Recipients/cn=lcabre
PrimarySmtpAddress               : lcabrera2@rapadocs.com
SourceServer                     : Exchange07.RAPA.local
SourceDatabase                   : EXCHANGE07\First Storage Group\Mailbox Datab
SourceGlobalCatalog              : FILESERVER
SourceDomainController           :
TargetGlobalCatalog              : FILESERVER
TargetDomainController           :
TargetMailbox                    : RAPA.local/Users/Lisa Cabrera
TargetServer                     : Exchange07.RAPA.local
TargetDatabase                   : EXCHANGE07\First Storage Group\Mailbox Datab
MailboxSize                      : 17215KB
IsResourceMailbox                : False
SIDUsedInMatch                   :
SMTPProxies                      :
SourceManager                    :
SourceDirectReports              :
SourcePublicDelegates            :
SourcePublicDelegatesBL          :
SourceAltRecipient               :
SourceAltRecipientBL             :
SourceDeliverAndRedirect         :
MatchedTargetNTAccountDN         :
IsMatchedNTAccountMailboxEnabled :
MatchedContactsDNList            :
TargetNTAccountDNToCreate        :
TargetManager                    :
TargetDirectReports              :
TargetPublicDelegates            :
TargetPublicDelegatesBL          :
TargetAltRecipient               :
TargetAltRecipientBL             :
TargetDeliverAndRedirect         :
Options                          : Default
SourceForestCredential           :
TargetForestCredential           :
TargetFolder                     : \export-mailbox lcabrera2@rapadocs.com\-targ
                                   etmailbox lcabrera@rapadocs.com\Recovered Da
                                   ta - Dr. Lisa Cabrera - 9/13/2010 8:39:50 AM
PSTFilePath                      :
RsgMailboxGuid                   :
RsgMailboxLegacyExchangeDN       :
RsgMailboxDisplayName            :
RsgDatabaseGuid                  :
StandardMessagesDeleted          : 0
AssociatedMessagesDeleted        : 0
DumpsterMessagesDeleted          : 0
MoveType                         : Export
MoveStage                        : Move
StartTime                        : 9/13/2010 8:40:21 AM
EndTime                          : 9/13/2010 8:40:21 AM
StatusCode                       : -2147221233
StatusMessage                    : Error occurred in the step: Creating target
                                   folder in the target mailbox. An unknown err
                                   or has occurred.
ReportFile                       : C:\Program Files\Microsoft\Exchange Server\L
export-mailbox email@domain.com  -targetmailbox newemail@domain.com -targetfolder \
Jaime CamposAuthor Commented:
II'll try it.

I disabled the users old email account cause i wasn't able to sync her iPhone to new email account. It was partnered with old account. I removed partner relationship with old account and it still tried to setup old account. Now maybe I messed up, but I disabled old account and now I do not see old account within management console. I wanted to leave old account in place so i can forward all emails to new account. Now I'm stuck and not sure what to do. Now the iphone says connection to server failed. It's like it hasn't recognize the new email address on server and doesn't want to connect.  
when you disabled the account did you disable thru ad users and computers or thur exchange mgmt console?
the mgmt console removes the mailbox and you'll need to go to disconnected mialbox under recipient configuration to reconnect the mailbox
Jaime CamposAuthor Commented:
Exchange mgmt console. I got it. Why doesnt the iphone connect to new email address, is there some sort of refreash setting I need to perform?
once you remove the account from the phone you should be able to create a new mail account with the current smtp address for the user

get-mailbox user | fl primary*
Jaime CamposAuthor Commented:
I had to hard reset the device. It works now.Thanks so much for your help.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Easily Design & Build Your Next Website

Squarespace’s all-in-one platform gives you everything you need to express yourself creatively online, whether it is with a domain, website, or online store. Get started with your free trial today, and when ready, take 10% off your first purchase with offer code 'EXPERTS'.

  • 6
  • 6
Tackle projects and never again get stuck behind a technical roadblock.
Join Now