Koozali.org: home of the SME Server

Awstat and mail help

trenskow

Awstat and mail help
« on: August 31, 2004, 12:22:34 AM »
Hi there all

I want awstat to monitor my mail like http://awstats.sourceforge.net/awstats.mail.html
I have made the changes written here http://awstats.sourceforge.net/docs/awstats_faq.html#MAIL
Quote
For standard Postfix, Sendmail, MDaemon and standard QMail logfiles, set
LogFile="perl /path/to/maillogconvert.pl standard < /pathtomaillog/maillog |"
where i have made the changes, and i looks like this.
LogFile="perl /home/e-smith/files/ibays/awstats/cgi-bin/maillogconvert.pl standard < /var/log/qmail/current |"
Then, whatever is you mail server, you must also change:
LogType=M
LogFormat="%time2 %email %email_r %host %host_r %method %url %code %bytesd"
LevelForBrowsersDetection=0
LevelForOSDetection=0
LevelForRefererAnalyze=0
LevelForRobotsDetection=0
LevelForWormsDetection=0
LevelForSearchEnginesDetection=0
LevelForFileTypesDetection=0
ShowMenu=1
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


i renamed the file to awstats.mail.trenskow.dk.conf
but when i load the page, its empty, showing zeros
http://www.trenskow.dk/awstats/cgi-bin/awstats.pl?-config=mail.trenskow.dk

trenskow

Awstat and mail help
« Reply #1 on: August 31, 2004, 02:11:18 AM »
found the solution
instead of LogFile="perl /home/e-smith/files/ibays/awstats/cgi-bin/maillogconvert.pl standard

make

LogFile="tai64nlocal < /var/log/qmail/current | /home/e-smith/files/ibays/awstats/cgi-bin/maillogconvert.pl standard |"