在Exchange 2003 Server 的 C:\WINDOWS\system32\inetsrv\ 目錄下,有個 logtemp.sql
在SQL Server 上執行此 SQL Script,就可以建立 ODBC Log Table
然後在 Exchange 主機上設定 ODBC,指定資料庫
再來執行Exchange 系統管理員,指定資料庫伺服器、資料庫、資料表
就可以把 Log 存到資料庫去…
| use EXCHANGE select rtrim(ClientHost) as SenderIP, rtrim(username) as SenderPC, LogTime, rtrim(operation) as CMD, rtrim(parameters) as Parameter from SMTPLOG where username <> 'OutboundConnectionCommand' -- Exchange 連接目的郵件伺服器指令 and username <> 'OutboundConnectionResponse' -- Exchange 連接目的郵件伺服器狀態 --group by ClientHost, username, disabled order by ClientHost |
存到資料庫之後,要查詢就非常方便了…
0 意見:
張貼留言