User Tools

Site Tools


internet:mail:exchange:exchange

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
internet:mail:exchange:exchange [2019/05/15 08:39]
gcooper
internet:mail:exchange:exchange [2020/01/23 10:41] (current)
gcooper
Line 5: Line 5:
 See also **[[internet:mail:moving_to_new_mailserver|Migrating to a New Mail Server]]** See also **[[internet:mail:moving_to_new_mailserver|Migrating to a New Mail Server]]**
  
-**Install Exchange 2010**: http://www.enterprisenetworkingplanet.com/datacenter/Installing-Exchange-2010-Step-by-Step-3877601.htm+See also **http://www.mustbegeek.com/configure-url-redirection-in-exchange-2013/**
  
 ===== Services Status ===== ===== Services Status =====
Line 12: Line 12:
 Get-Service | Where {$_.DisplayName -Like "*Exchange*"} | ft DisplayName, Name, Status Get-Service | Where {$_.DisplayName -Like "*Exchange*"} | ft DisplayName, Name, Status
 </file> </file>
- 
-===== Local SMTP Relaying ===== 
- 
-http://www.chicagotech.net/netforums/viewtopic.php?f=1&t=7156 
- 
-By default, the Default Receive Connector will not relay mail for anonymous users or devices.  They get an error like: 
- 
-''530 530 5.7.1 Client was not authenticated (state 13)'' 
- 
-==== 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:
 </file> </file>
  
-===== Database Recovery =====+===== Restore Deleted Mailbox ===== 
 + 
 +https://www.phy2vir.com/restore-a-deleted-mailbox-in-exchange-2013/ 
 + 
 +Show recently deleted databases: 
 + 
 +<file> 
 +Get-MailboxDatabase | Get-MailboxStatistics | Where {$_.DisconnectReason -eq "Disabled"} | fl DisplayName,MailboxGuid,LegacyDN,Database,TotalItemSize 
 +</file> 
 + 
 +Restore a recently deleted mailbox (recreate destination user and mailbox first): 
 + 
 +<note important>Set the mailbox quota to a high enough value on the destination mailbox or the restore will fail.</note> 
 + 
 +<file> 
 +New-MailboxRestoreRequest -SourceStoreMailbox <MailboxGuid> -SourceDatabase <Database> -TargetMailbox <Target Mailbox Name> -AllowLegacyDNMismatch -LargeItemLimit Unlimited -AcceptLargeDataLoss 
 + 
 +Get-MailboxRestoreRequest | Get-MailboxRestoreRequestStatistics 
 +</file> 
 + 
 +==== Restore Failures ==== 
 + 
 +https://docs.microsoft.com/en-us/powershell/module/exchange/mailboxes/resume-mailboxrestorerequest 
 + 
 +Status of restore requests: 
 + 
 +<file> 
 +Get-MailboxRestoreRequest | Get-MailboxRestoreRequestStatistics 
 +</file> 
 + 
 +Collect details of failed restore requests: 
 + 
 +<file> 
 +Get-MailboxRestoreRequest -Status failed | Get-MailboxRestoreRequestStatistics -IncludeReport | format-list > c:\users\"username"\restore_report.txt 
 +</file> 
 + 
 +<file> 
 +Set-MailboxRestoreRequest -Identity "Identity" -LargeItemLimit Unlimited -AcceptLargeDataLoss 
 +</file> 
 + 
 +Always use ''New-MailboxRestoreRequest'', but you can try the older ''Restore-Mailbox'' as a fallback. 
 + 
 +Cleanup: 
 + 
 +<file> 
 +Get-MailboxRestoreRequest -Status Completed | Remove-MailboxRestoreRequest 
 +</file> 
 + 
 +===== Mailbox Recovery ===== 
 + 
 +:!: **You may need to do a database repair first**! 
 + 
 +https://gallery.technet.microsoft.com/office/Recover-mailbox-from-edb-0635d717 
 + 
 +https://www.nucleustechnologies.com/blog/how-to-restore-exchange-2016-mailboxes/ 
 + 
 +===== Database Repair =====
  
 <note warning>**Database repair operations will use a huge amount of disk space and create huge temp files!**  You can cause greater problems than you already have if you ignore this!</note> <note warning>**Database repair operations will use a huge amount of disk space and create huge temp files!**  You can cause greater problems than you already have if you ignore this!</note>
Line 227: Line 264:
 <file> <file>
 isinteg -s servername -fix -test alltests isinteg -s servername -fix -test alltests
 +</file>
 +
 +===== 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:
 +
 +<file>
 +eseutil /mh "x:\path\to\restored\mailboxdb.edb"
 +</file>
 +
 +Create a new recovery database in Exchange using the restored databse file and logs:
 +
 +<file>
 +New-MailboxDatabase -Recovery -Name RecoveryDB -Server SERVERNAME -EdbFilePath "x:\path\to\restored\mailboxdb.edb" -LogFolderPath "x:\path\to\restored\logs\"
 +
 +Get-MailboxStatistics -Database RecoveryDB | ft –auto
 +</file>
 +
 +===== Recover Mailbox from Recovery Database =====
 +
 +https://converteredbtopst.wordpress.com/2017/08/29/export-mailbox-from-recovery-database-exchange-2013-to-pst/
 +
 +<file>
 +Get-MailboxStatistics -Database RecoveryDB | where displayname -eq "User Name"
 +</file>
 +
 +:!: You must add ''-AllowLegacyDNMismatch'' if you merge to a new account.
 +
 +:!: Add ''-TargetRootFolder'' if desired.
 +
 +<file>
 +New-MailboxRestoreRequest -SourceDatabase RecoveryDB -SourceStoreMailbox "SourceUser Name" -TargetMailbox "TargetUser Name" -AllowLegacyDNMismatch -TargetRootFolder "Restored Items"
 +
 +Get-MailboxRestoreRequest | Get-MailboxRestoreRequestStatistics
 +</file>
 +
 +Cleanup:
 +
 +<file>
 +Get-MailboxRestoreRequest -Status Completed | Remove-MailboxRestoreRequest
 +</file>
 +
 +===== Export Mailbox to PST =====
 +
 +:!: To export to PST, you must recover the mailbox first.
 +
 +<file>
 +New-MailboxExportRequest -Mailbox username -FilePath \\server\share\path\username.pst
 +
 +Get-MailboxExportRequest | Get-MailboxExportRequestStatistics
 </file> </file>
  
Line 252: Line 343:
 </file> </file>
  
-Wait a while, then recheck the ''contentindexstate''.+Wait a while, then recheck the ''contentindexstate'' The status will change to ''crawling''
 + 
 +===== Check Version ===== 
 + 
 +<file> 
 +https://<serverFQDN>/mapi/emsmdb/ 
 +</file> 
 + 
 +or 
 + 
 +<file> 
 +Get-ExchangeServer | fl name,AdminDisplayVersion 
 +</file> 
 + 
 +Then cross-reference here: 
 + 
 +https://social.technet.microsoft.com/wiki/contents/articles/15776.exchange-server-2013-2016-and-2019-build-numbers-with-cumulative-updates.aspx
  
 ===== Troubleshooting ===== ===== Troubleshooting =====
internet/mail/exchange/exchange.1557931146.txt.gz · Last modified: 2019/05/15 08:39 by gcooper