简体   繁体   中英

How to export draft and deleted emails to email account of Exchange?

Can anybody suggest me link or way to synchronize(export) local emails of database with exchange mail account? I am using ews to download(import) emails of exchange mail account.

If you're just exporting a mailbox, I suggest the New-MailboxExportRequest command via powershell. That way you can script it to run on a schedule or just run at the drop of a hat.

Per: New-MailboxExportRequest

New-MailboxExportRequest -Mailbox samaccountname -FilePath "\\server\share\mbxnameorwhatever.pst"

The caveat is the "Exchange Trusted Subsystem" acct in AD needs Read/Write access to the share you're using and the acct that's running the command needs the "Mailbox Import Export" role or have it available in a role group.

If you read through the New-MailboxExportRequest examples, you'll see you can add some pretty neat features, AND by default it will include the mailbox dumpster (really deleted items). Hope this helps, if not, lemme know.

-Chase

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM