• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Mail Log Analisis With AWSTATS

N

nand

Guest
Hi to all,

i'm new to this forum and i'm using plesk 9 since May.

I want to Analyze my mail log with Awstats. It's possible?

I'm using Postfix

I created a copy of file /usr/local/psa/etc/awstats/awstats.MYDOMAIN.TLD-http.conf ...

cp /usr/local/psa/etc/awstats/awstats.MYDOMAIN.TLD-http.conf /usr/local/psa/etc/awstats/awstats.MYDOMAIN.TLD-mail.conf

and change this values:
LogFile="/usr/share/awstats/maillogconvert.pl standard < /usr/local/psa/var/log/maillog |"
LogType=M
LogFormat="%time2 %email %email_r %host %host_r %method %url %code %bytesd"
DirData="/var/www/vhosts/MYDOMAIN.TLD/statistics/mailstat"
LevelForBrowsersDetection=0
LevelForOSDetection=0
LevelForRefererAnalyze=0
LevelForRobotsDetection=0
LevelForWormsDetection=0
LevelForSearchEnginesDetection=0
LevelForFileTypesDetection=0
ShowMenu=1
ShowSummary=HB
ShowMonthStats=HB
ShowDaysOfMonthStats=HB
ShowDaysOfWeekStats=HB
ShowHoursStats=HB
ShowDomainsStats=0
ShowHostsStats=HBL
ShowAuthenticatedUsers=0
ShowRobotsStats=0
ShowEMailSenders=HBML
ShowEMailReceivers=HBML
ShowSessionsStats=0
ShowPagesStats=0
ShowFileTypesStats=0
ShowFileSizesStats=0
ShowBrowsersStats=0
ShowOSStats=0
ShowOriginStats=0
ShowKeyphrasesStats=0
ShowKeywordsStats=0
ShowMiscStats=0
ShowHTTPErrorsStats=0
ShowSMTPErrorsStats=1

finally I executed the cron task...

/etc/cron.daily/awstats

But don't work, the folder /var/www/vhosts/MYDOMAIN.TLD/statistics/mailstat is empty.

Searching in google, I found another option...

/usr/local/psa/admin/sbin/statistics --calculate-one --domain-name=MYDOMIN.TLD

In the outpout I see something related with awstats.MYDOMAIN.TLD-http.conf,-https.conf,-anonftp.con and -ftp.conf, but nothing related to awstats.MYDOMAIN.TLD-mail.conf and the result is the same: the folder /var/www/vhosts/MYDOMAIN.TLD/statistics/mailstat remains empty.

What i'm doing wrong?

Thank's!
 
Did you checked AWStats official site? Is it really that AWStats can parse mail log files format?
 
sure

100% sure,

http://awstats.sourceforge.net/docs/awstats_faq.html#MAIL

here a test...

mail.jpg
 
Ok, no answers...

Anyone know a good (and easy to install in Plesk 9 with Centos 5) postfix log analyzer???

Now i'm using pflogsumm-1.1.1, work's great but it's only text based.

Thank's!
 
Back
Top