# General Overview Exchange Server Stettbachertal ## PST Import ### Prepare Used for PST Conversion: https://www.outlookfreeware.com/en/products/all/OutlookConvertEML2PST Can't be installed on Windows Server, needs to be run in a Windows Desktop VM Exchange Mailbox Needs to be manually configured for increased Message Size ### IMAP Sync IMAP Service manuell auf Exchange starten #### CMD ``` imapsync.exe --folder INBOX --regextrans2 "s{^INBOX$}{test2/Inbox_Migrated}" --host1 imap.1und1.de --user1 administrator@stettbachertal.de --password1 aaa --host2 192.168.2.240 --user2 archiv@stettbachertal.local --password2 ddd. imapsync.exe --folder "Gesendete Objekte" --regextrans2 "s{^Gesendete Objekte$}{2019/Gesendet}" --search "SENTSINCE 1-Jan-2019 SENTBEFORE 31-Dec-2019" --host1 imap.1und1.de --user1 buero@stettbachertal.de --password1 xxxx --host2 server.stettbachertal.local --user2 archiv@stettbachertal.local --password2 xxxx regextrans benennt quell in zielordner um, alternativ für posteingang wäre INBOX statt Gesendete Objekte ``` #### Cronjob Batch File ``` cd C:\Users\st_admin\imapsync_2.140\ .\imapsync.exe --folder INBOX --regextrans2 "s{^INBOX$}{INBOX/2021/Inbox}" --search "SENTSINCE 1-Jan-2021 SENTBEFORE 31-Dec-2021" ^ --host1 "imap.1und1.de" --user1 "buero@stettbachertal.de" --passfile1 "p1" ^ --host2 "192.168.2.240" --user2 "archiv@stettbachertal.local" --passfile2 "p2" ``` ### Import Exchange Console Commands ##### Start New Import: `New-MailboxImportRequest -FilePath \\server\d$\2016_in.pst -Mailbox "Archiv" -Priority Highest -TargetRootFolder 2018out` w/o priority highest disk latency issues occur ##### Show Import Log: `Get-MailboxImportRequest | Get-MailboxImportRequestStatistics -IncludeReport | fl` ##### Stop Running Import: ``` Suspend-MailboxImportRequest -Identity "stettbachertal.local/User/Archiv\MailboxImport" Remove-MailboxImportRequest -Identity "stettbachertal.local/User/Archiv\MailboxImport" ``` ##### Delete Dumpster: `Search-mailbox -identity Archiv -SearchDumpsterOnly -DeleteContent` ### Re-Index (Search not working Properly) ``` This was done last time: https://www.stephenwagner.com/2019/05/14/rebuild-search-index-catalog-on-microsoft-exchange-2016/ This might work without Service restart: https://techcommunity.microsoft.com/t5/exchange/rebuild-search-index-of-a-mailbox-in-exchange-online/m-p/25663 https://docs.microsoft.com/en-us/powershell/module/exchange/new-moverequest?view=exchange-ps ``` ### Database Recovery ``` Check ob Clean Shutdown mit: eseutil /MH '.\Mailbox Database 1321485658.edb' Recover mit: ESEUTIL /r E00 /l "D:\test\Mailbox Database 1321485658\log" /d "D:\test\Mailbox Database 1321485658" WICHTIG: Am ende der Pfade darf kein "\" sein, sonst IO-Error ```