Check SMTP log file on Exchange 2010

How to enable the detail mail flow tracking on Exchange 2010 ?

Is it possible to rotate these log to save disk space, keep for 14 days only ?

Thx
AXISHKAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Fethi ABASSIWindows system administratorCommented:
Hi,
With powershell you can use
Get-MessageTrackingLog
To change the path:
Set-TransportServer <Identity> -MessageTrackingLogPath <LocalFilePath>
Run the following command on a Mailbox server:
Set-MailboxServer <Identity> -MessageTrackingLogPath <LocalFilePath>

Link:
https://technet.microsoft.com/en-us/library/cc539073.aspx
AXISHKAuthor Commented:
I mean the detail IP information and negotiation. Can this be setup through GUI ?

Thx
Fethi ABASSIWindows system administratorCommented:
This is an exemple:
I guess it's possible just with powershell
get-messagetrackinglog -Server "servername" -EventID "RECEIVE" -Start "04/15/2017 7:19:00 AM" -End "04/15/2017 10:29:00 AM" | select-object sender,recipients,serverip | sort-object ServerIP | Out-File c:\report.txt
Ensure Business Longevity with As-A-Service

Using the as-a-service approach for your business model allows you to grow your revenue stream with new practice areas, without forcing you to part ways with existing clients just because they don’t fit the mold of your new service offerings.

Shaun VermaakTechnical SpecialistCommented:
As for log retention, you should use circular logging. If you cannot use it for some reason, look at this article
https://www.experts-exchange.com/articles/29108/Log-file-problem-CircularLogArchiver.html
AXISHKAuthor Commented:
Is it same as the one that configured with powershell command ? I have tried and see some information in SMTP recevie log...

Thx
C--temp-SMTP-Log.png
Vijaya Babu SekarAssociate Ops ManagerCommented:
Message tracking logs will maintain up to 30 days by default in Exchange 2010, if you want detail message track log, you have to enable the SMTP log

For Single Connector

Set-ReceiveConnector “<Connector Name>” -ProtocolLoggingLevel verbose

Open in new window


For Multiple Connector

Get-ReceiveConnector | Set-ReceiveConnector -ProtocolLoggingLevel verbose

Open in new window

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Shaun VermaakTechnical SpecialistCommented:
Glad we could help.

@OP, experts and future visitors:
Please remember to endorse my, or any other expert's comments that you found helpful by clicking on the "Thumb's Up" button

Read more on endorsements
https://www.experts-exchange.com/discussions/218503/What-are-Endorsements.html
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Exchange

From novice to tech pro — start learning today.