CẤU HÌNH MESSAGE TRACKING & LOG TRÊN EXCHANGE 2010
Có 2 loại log:
- Message Tracking log: ghi nhận mail in/out qua lệnh gửi trực tiếp. Mặc định là lưu 30 ngày
Ta có thể điều chỉnh lại số ngày, kích thước tối đa của file log, thư mục log
- Protocol Log: ghi nhận log của các connector (Send, Receiver, Relay)
- Đường dẫn mặc định
Lệnh đổi đường dẫn lưu log:
Set-TransportServer “TRANSPORT SERVER NAME” -ReceiveProtocolLogPath “D:\New SmtpReceive Log File Directory”
Set-TransportServer “TRANSPORT SERVER NAME” -SendProtocolLogPath “D:\New SmtpSend Log File Directory”
- EXTRA:
+ Tìm kiếm message
Get-MessageTrackingLog -ResultSize Unlimited | Where-Object {$_.Recipients -like "*@domain.com"} | Select-Object Timestamp, Sender, {$_.Recipients}, MessageSubject, EventId | Export-Csv -Path "C:\Reports\RecipientDomainReport.csv" -NoTypeInformation


Comments
Post a Comment