This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
internet:mail:exchange:exchange [2019/05/15 08:40] gcooper |
internet:mail:exchange:exchange [2020/01/23 10:41] (current) gcooper |
||
---|---|---|---|
Line 5: | Line 5: | ||
See also **[[internet: | See also **[[internet: | ||
- | **Install Exchange 2010**: | + | See also **http:// |
===== Services Status ===== | ===== Services Status ===== | ||
Line 12: | Line 12: | ||
Get-Service | Where {$_.DisplayName -Like " | Get-Service | Where {$_.DisplayName -Like " | ||
</ | </ | ||
- | |||
- | ===== Local SMTP Relaying ===== | ||
- | |||
- | http:// | ||
- | |||
- | By default, the Default Receive Connector will not relay mail for anonymous users or devices. | ||
- | |||
- | '' | ||
- | |||
- | ==== Enable Anonymous users in Default connector under Hub Transport ==== | ||
- | |||
- | - Go to Hub Transport under Server Configuration in Exchange Management Console. | ||
- | - On the Receive Connectors tab double-click the Default connector. | ||
- | - On the Permission Groups tab make sure that your Exchange Server has the following boxes checked: | ||
- | * Anonymous users | ||
- | * Exchange users | ||
- | * Exchange servers | ||
- | - On the Authentication tab, make sure that you uncheck the box under Basic Authentication that says “Offer Basic authentication only after starting TLS.” | ||
- | - Restart Hub Transport service. | ||
===== Shut Down and Restart Exchange Services ===== | ===== Shut Down and Restart Exchange Services ===== | ||
Line 144: | Line 125: | ||
</ | </ | ||
- | ===== Database Recovery ===== | + | ===== Restore Deleted Mailbox ===== |
+ | |||
+ | https:// | ||
+ | |||
+ | Show recently deleted databases: | ||
+ | |||
+ | < | ||
+ | Get-MailboxDatabase | Get-MailboxStatistics | Where {$_.DisconnectReason -eq " | ||
+ | </ | ||
+ | |||
+ | Restore a recently deleted mailbox (recreate destination user and mailbox first): | ||
+ | |||
+ | <note important> | ||
+ | |||
+ | < | ||
+ | New-MailboxRestoreRequest -SourceStoreMailbox < | ||
+ | |||
+ | Get-MailboxRestoreRequest | Get-MailboxRestoreRequestStatistics | ||
+ | </ | ||
+ | |||
+ | ==== Restore Failures ==== | ||
+ | |||
+ | https:// | ||
+ | |||
+ | Status of restore requests: | ||
+ | |||
+ | < | ||
+ | Get-MailboxRestoreRequest | Get-MailboxRestoreRequestStatistics | ||
+ | </ | ||
+ | |||
+ | Collect details of failed restore requests: | ||
+ | |||
+ | < | ||
+ | Get-MailboxRestoreRequest -Status failed | Get-MailboxRestoreRequestStatistics -IncludeReport | format-list > c: | ||
+ | </ | ||
+ | |||
+ | < | ||
+ | Set-MailboxRestoreRequest -Identity " | ||
+ | </ | ||
+ | |||
+ | Always use '' | ||
+ | |||
+ | Cleanup: | ||
+ | |||
+ | < | ||
+ | Get-MailboxRestoreRequest -Status Completed | Remove-MailboxRestoreRequest | ||
+ | </ | ||
+ | |||
+ | ===== Mailbox | ||
+ | |||
+ | :!: **You may need to do a database repair first**! | ||
+ | |||
+ | https:// | ||
+ | |||
+ | https:// | ||
+ | |||
+ | ===== Database Repair | ||
<note warning> | <note warning> | ||
Line 227: | Line 264: | ||
< | < | ||
isinteg -s servername -fix -test alltests | isinteg -s servername -fix -test alltests | ||
+ | </ | ||
+ | |||
+ | ===== Database Recovery ===== | ||
+ | |||
+ | :!: **If you can, restore the mailboxes without restoring from backup**. | ||
+ | |||
+ | Here we have **restored the database and log files from backup**: | ||
+ | |||
+ | Check for Clean Shutdown: | ||
+ | |||
+ | < | ||
+ | eseutil /mh " | ||
+ | </ | ||
+ | |||
+ | Create a new recovery database in Exchange using the restored databse file and logs: | ||
+ | |||
+ | < | ||
+ | New-MailboxDatabase -Recovery -Name RecoveryDB -Server SERVERNAME -EdbFilePath " | ||
+ | |||
+ | Get-MailboxStatistics -Database RecoveryDB | ft –auto | ||
+ | </ | ||
+ | |||
+ | ===== Recover Mailbox from Recovery Database ===== | ||
+ | |||
+ | https:// | ||
+ | |||
+ | < | ||
+ | Get-MailboxStatistics -Database RecoveryDB | where displayname -eq "User Name" | ||
+ | </ | ||
+ | |||
+ | :!: You must add '' | ||
+ | |||
+ | :!: Add '' | ||
+ | |||
+ | < | ||
+ | New-MailboxRestoreRequest -SourceDatabase RecoveryDB -SourceStoreMailbox " | ||
+ | |||
+ | Get-MailboxRestoreRequest | Get-MailboxRestoreRequestStatistics | ||
+ | </ | ||
+ | |||
+ | Cleanup: | ||
+ | |||
+ | < | ||
+ | Get-MailboxRestoreRequest -Status Completed | Remove-MailboxRestoreRequest | ||
+ | </ | ||
+ | |||
+ | ===== Export Mailbox to PST ===== | ||
+ | |||
+ | :!: To export to PST, you must recover the mailbox first. | ||
+ | |||
+ | < | ||
+ | New-MailboxExportRequest -Mailbox username -FilePath \\server\share\path\username.pst | ||
+ | |||
+ | Get-MailboxExportRequest | Get-MailboxExportRequestStatistics | ||
</ | </ | ||
Line 253: | Line 344: | ||
Wait a while, then recheck the '' | Wait a while, then recheck the '' | ||
+ | |||
+ | ===== Check Version ===== | ||
+ | |||
+ | < | ||
+ | https://< | ||
+ | </ | ||
+ | |||
+ | or | ||
+ | |||
+ | < | ||
+ | Get-ExchangeServer | fl name, | ||
+ | </ | ||
+ | |||
+ | Then cross-reference here: | ||
+ | |||
+ | https:// | ||
===== Troubleshooting ===== | ===== Troubleshooting ===== |