Hello
Can you please recommend me any software for easy analyzing Hmailserver logfiles ?
They are simple, but then we have large number of emails , there is difficult to follow them
Mail Log Analyze
Re: Mail Log Analyze
Thank you ,
I know this site very nice but my logfiles is about 200 MB and more and I need offline software for analyzing this files
I am looking for most to understand if mail was successfully delivered to some people !
This is the main task for this log files
But may be very good to have some more detailed statists like how many mails was sent today , how off them was failed etc...
I know this site very nice but my logfiles is about 200 MB and more and I need offline software for analyzing this files
I am looking for most to understand if mail was successfully delivered to some people !
This is the main task for this log files

But may be very good to have some more detailed statists like how many mails was sent today , how off them was failed etc...
Re: Mail Log Analyze
In that case, enable AWStats logging. It logs only the result of each transaction, with from, to, and a couple of other things.yigalr01 wrote: ↑2020-12-13 15:51Thank you ,
I know this site very nice but my logfiles is about 200 MB and more and I need offline software for analyzing this files
I am looking for most to understand if mail was successfully delivered to some people !
This is the main task for this log files
But may be very good to have some more detailed statists like how many mails was sent today , how off them was failed etc...
Re: Mail Log Analyze
Ok Thank you
How can I receive the status off sent email from the AWStats log ?
I can only see from to without status...
How can I receive the status off sent email from the AWStats log ?
I can only see from to without status...
Re: Mail Log Analyze
Here's a simple powershell script that will parse your hmailserver logs and spit out SMTPC entries only.
It takes a while to run because it has to read each line. 200mb of logs will take a while.
It takes a while to run because it has to read each line. 200mb of logs will take a while.
Code: Select all
### SCRIPT VARIABLES ###
$LogDir = "C:\hMailServer\Logs" #<-- hMailServer Log Folder
<# First find logs #>
Get-ChildItem $LogDir | Where {$_.Name -match "^hmailserver_[0-9]{4}-[0-9]{2}-[0-9]{2}.log$"} | ForEach {
$LogName = $_
<# Convert log lines to objects #>
Get-Content "$LogDir\$LogName" | ConvertFrom-String -Delimiter "`t" -PropertyNames Protocol, ThreadID, Session, DateTime, IPAddress, Message | ForEach {
<# If SMTPC proceed, discard all others #>
If ($_.Protocol -match "SMTPC") {
Write-Output "$($_.Session) : $($_.Message)" | Out-File "$PSScriptRoot\SMTPC.log" -Append -Encoding ASCII
Write-Host "$($_.Session) : $($_.Message)"
}
}
}
Re: Mail Log Analyze
SørenR.
Algorithm (noun.)
Word used by programmers when they do not want to explain what they did.
Algorithm (noun.)
Word used by programmers when they do not want to explain what they did.