CODE:
LogFile="/usr/bin/sma -O clog -f /etc/sma.conf /var/log/maillog |"
LogFormat="%time2 %email %email_r %host %host_r %method %url %code %bytesd"
ValidSMTPCodes="1"
ShowMenu=1
ShowMonthDayStats=HB
ShowDaysOfWeekStats=HB
ShowHoursStats=HB
ShowDomainsStats=HB
ShowHostsStats=HBL
ShowAuthenticatedUsers=0
ShowRobotsStats=0
ShowEMailSenders=HBL
ShowEMailReceivers=HBL
ShowSessionsStats=0
ShowPagesStats=0
ShowFileTypesStats=0
ShowFileSizesStats=0
ShowBrowsersStats=0
ShowOSStats=0
ShowOriginStats=0
ShowKeyphrasesStats=0
ShowKeywordsStats=0
ShowHTTPErrorsStats=0
g.執行 awstats 的update process
#/var/www/cgi-bin/awstats/awstats.pl -config=mail -update
h. 打開Browser檢查看看有無成功...
http://your.host.com/cgi-bin/awstats/awstats.pl?config=mail
執行結果 Demo:
http://www.adj.idv.tw/cgi-bin/awstats/awstats.pl?config=mail
參考官方網站說明:
http://awstats.sourceforge.net/docs/awstats_faq.html#MAIL