• Debian 11 is approaching its end-of-life (vendor EOL date - August 31, 2026). Plesk Obsidian 18.0.80 will be the last release to support it.
    If you are running Plesk Obsidian on Debian 11, we recommend you upgrade those servers to Debian 12 using our dist-upgrade tool.
  • We plan to deprecate and remove the support for XML RPC protocol versions earlier than 1.6.9.1 in Plesk Obsidian 18.0.82. We strongly recommend that you update all existing integrations using earlier versions of the XML RPC protocol to comply with the version 1.6.9.1 specification.

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