一、總體概覽
1.1、獲取 Exchange 組織中所有服務器的角色
C:\Windows\system32>Get-ExchangeServer
C:\Windows\system32>Get-TransportServer
C:\Windows\system32>Get-ClientAccessServer
C:\Windows\system32>Get-MailboxServer
1.2、收集有關 Microsoft Exchange系統的數據
C:\Windows\system32>Test-SystemHealth
1.3、測試Exchange 角色所需的所有 Microsoft Windows 服務是否啓動
C:\Windows\system32>Test-ServiceHealth
1.4、查詢Internet域名信息測試DNS 服務器問題
C:\Windows\system32>nslookup
查詢a記錄,mx記錄
查詢反向記錄
查詢域名供應商
1.5、查看客戶端訪問服務器角色陣列信息
C:\Windows\system32>Get-ClientAccessArray
1.6、看郵箱數據庫DAG高可用羣集信息
羣集節點信息
C:\Windows\system32>Cluster Node
見證資源信息
C:\Windows\system32>Cluster /quorum
獲取屬於數據庫可用性組(DAG)的服務器列表
C:\Windows\system32>Get-DatabaseAvailabilityGroup
顯示數據庫可用性組(DAG)網絡的配置和狀態信息
C:\Windows\system32>Get-DatabaseAvailabilityGroupNetwork
1.7、查看郵箱數據庫信息
C:\Windows\system32>Get-MailboxDatabase
1.8、查看郵箱使用情況
查看組織內OU中所有郵箱的列表
C:\Windows\system32> Get-Mailbox -OrganizationalUnit 組織名
查看指定郵箱數據庫中所有郵箱的郵箱統計信息
C:\Windows\system32> Get-MailboxStatistics –Database 數據庫名
查看郵箱用戶的統計信息
C:\Windows\system32> Get-MailboxStatistics -Identity "用戶名" |fl
二、健康檢查
2.1、郵件流測試
測試從服務器到電子郵件地址的郵件流
C:\Windows\system32>Test-Mailflow 服務器名 –TargetEmailAddress 郵件地址
O同時可以看到utlook2013客戶端收到如下郵件
2.2、郵件跟蹤
使用帳戶發送測試郵件,主題爲 ”this is a test mail” 並回復此郵件。
在Exchange服務器exhub1上的郵件跟蹤日誌中搜索發件人從 2013 年 3 月 29 日 10:30 到 2013 年 3 月 29日 11:00 發送接收的所有郵件的有關信息。
C:\Windows\system32>Get-MessageTrackingLog -Server 服務器名 -Start "03/29/2013 10:30:00" –End "03/29/2013 11:00:00" -Sender "發件人地址"
C:\Windows\system32>Get-MessageTrackingLog -Server 服務器名 -Start "03/29/2013 10:30:00" –End "03/29/2013 11:06:00" -Recipients "收件人地址"
其中與外部郵箱的收發在梭子魚郵件防火牆中也查到相應記錄。
測試郵件順利通過。
2.3、檢查OWA連通性
使用用戶domianname\mailadmin的憑據測試URL https://mail.domainname.com的連接情況。
C:\Windows\system32>Test-OwaConnectivity -url:https://mail.domainname.com -mailboxcredential:(get-credential domainname\mailadmin)
2.4、檢查POP3連通性
使用用戶domainname\mailadmin的憑據測試excsa3的pop3的連接情況。
C:\Windows\system32>Test-PopConnectivity -ClientAccessServer:服務器名 -MailboxCredential:(get-credential domainname\mailadmin)
2.5、通過登錄到指定的郵箱來驗證服務器是否可以正常工作
測試與服務器的連接
C:\Windows\system32>Test-MapiConnectivity -Server "服務器名"
測試與按域名和用戶名所指定郵箱的連接
C:\Windows\system32>Test-MapiConnectivity -Identity "domainname\mailadmin"
2.6、驗證 Outlook 提供程序是否已正確配置
測試與每個服務的連接情況。提交用戶 [email protected] 對可用性服務的請求,以確定用戶的忙/閒信息是否正確地從客戶端訪問服務器返回到 Outlook 客戶端。
C:\Windows\system32>Test-OutlookWebServices -Identity:[email protected]
2.7、查看已配置一個或多個數據庫副本的郵箱數據庫的相關狀態信息
C:\Windows\system32>Get-MailboxDatabaseCopyStatus –Server 服務器名
2.8、檢查數據庫DAG複製和重播狀態
C:\Windows\system32> Test-ReplicationHealth -Identity 服務器名
2.9、導出EWS配置信息
獲取自動發現服務連接點 (SCP)
Get-ClientAccessServer | FL fqdn,*autodiscover* > c:\AutodiscoverSCPs.log
獲取 Exchange Web 服務配置
Get-WebServicesVirtualDirectory | fl name,server,*url*,*auth*,*version* > c:\EWSSettings.log
從每個客戶端訪問服務器獲取 Exchange 證書
Get-ExchangeCertificate | FL > c:\Certs.log
三、實時黑名單查詢
登錄http://anti-spam.org.cn (國內實時黑名單服務最大的網站)
輸入服務器公網IP進行查詢
登陸http://www.spamhaus.org/lookup (國外的spamhaus項目組)
輸入服務器公網IP及域名進行查詢