1、整體概覽數據庫
1.一、獲取 Exchange 組織中全部服務器的角色api
C:\Windows\system32>Get-ExchangeServer服務器
C:\Windows\system32>Get-TransportServer網絡
C:\Windows\system32>Get-ClientAccessServerdom
C:\Windows\system32>Get-MailboxServer
ide
1.二、收集有關 Microsoft Exchange系統的數據測試
C:\Windows\system32>Test-SystemHealth網站
1.三、測試Exchange 角色所需的全部 Microsoft Windows 服務是否啓動this
C:\Windows\system32>Test-ServiceHealthurl
1.四、查詢Internet域名信息測試DNS 服務器問題
C:\Windows\system32>nslookup
查詢a記錄,mx記錄
查詢反向記錄
查詢域名供應商
1.五、查看客戶端訪問服務器角色陣列信息
C:\Windows\system32>Get-ClientAccessArray
1.六、看郵箱數據庫DAG高可用羣集信息
羣集節點信息
C:\Windows\system32>Cluster Node
見證資源信息
C:\Windows\system32>Cluster /quorum
獲取屬於數據庫可用性組(DAG)的服務器列表
C:\Windows\system32>Get-DatabaseAvailabilityGroup
顯示數據庫可用性組(DAG)網絡的配置和狀態信息
C:\Windows\system32>Get-DatabaseAvailabilityGroupNetwork
1.七、查看郵箱數據庫信息
C:\Windows\system32>Get-MailboxDatabase
1.八、查看郵箱使用狀況
查看組織內OU中全部郵箱的列表
C:\Windows\system32> Get-Mailbox -OrganizationalUnit 組織名
查看指定郵箱數據庫中全部郵箱的郵箱統計信息
C:\Windows\system32> Get-MailboxStatistics –Database 數據庫名
查看郵箱用戶的統計信息
C:\Windows\system32> Get-MailboxStatistics -Identity "用戶名" |fl
2、健康檢查
2.一、郵件流測試
測試從服務器到電子郵件地址的郵件流
C:\Windows\system32>Test-Mailflow 服務器名 –TargetEmailAddress 郵件地址
O同時能夠看到utlook2013客戶端收到以下郵件
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.三、檢查OWA連通性
使用用戶domianname\mailadmin的憑據測試URL https://mail.domainname.com的鏈接狀況。
C:\Windows\system32>Test-OwaConnectivity -url:https://mail.domainname.com -mailboxcredential:(get-credential domainname\mailadmin)
2.四、檢查POP3連通性
使用用戶domainname\mailadmin的憑據測試excsa3的pop3的鏈接狀況。
C:\Windows\system32>Test-PopConnectivity -ClientAccessServer:服務器名 -MailboxCredential:(get-credential domainname\mailadmin)
2.五、經過登陸到指定的郵箱來驗證服務器是否能夠正常工做
測試與服務器的鏈接
C:\Windows\system32>Test-MapiConnectivity -Server "服務器名"
測試與按域名和用戶名所指定郵箱的鏈接
C:\Windows\system32>Test-MapiConnectivity -Identity "domainname\mailadmin"
2.六、驗證 Outlook 提供程序是否已正確配置
測試與每一個服務的鏈接狀況。提交用戶 mailadmin@domain.com 對可用性服務的請求,以肯定用戶的忙/閒信息是否正確地從客戶端訪問服務器返回到 Outlook 客戶端。
C:\Windows\system32>Test-OutlookWebServices -Identity:mailadmin@domainname.com
2.七、查看已配置一個或多個數據庫副本的郵箱數據庫的相關狀態信息
C:\Windows\system32>Get-MailboxDatabaseCopyStatus –Server 服務器名
2.八、檢查數據庫DAG複製和重播狀態
C:\Windows\system32> Test-ReplicationHealth -Identity 服務器名
2.九、導出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
3、實時黑名單查詢
登陸http://anti-spam.org.cn (國內實時黑名單服務最大的網站)
輸入服務器公網IP進行查詢
登錄http://www.spamhaus.org/lookup (國外的spamhaus項目組)
輸入服務器公網IP及域名進行查詢