• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

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