郵件記錄分析工具 - postfix + Log + awstats
作者: cross 日期: 2006-11-14 20:50
Postfix + awstats
Fedora core 4
1.
apt-get install awststs
2.
cd /etc/awstats
cp awststs.model.conf awstats.mail.conf
vi awstats.mail.conf
LogFile="perl /usr/share/awstats/tools/maillogconvert.pl standard < /var/log/maillog |"
#LogFile="gzip -cd /var/log/maillog.0.gz | /usr/share/awstats/tools/maillogconvert.pl standard |"
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=0ShowMenu=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=1SiteDomain="mail.ssorc.tw"
3. 執行分析
/usr/share/awstats/wwwroot/cgi-bin/awstats.pl -config=mail -update
4. 瀏覽
http://xxxxx/awstats/awstats.pl?config=mail
5. 排程
10 * * * * root /usr/share/awstats/wwwroot/cgi-bin/awstats.pl -config=mail -update
附註: cat /etc/httpd/conf.d/awstats.conf
Alias /awstatsclasses "/usr/share/awstats/wwwroot/classes/"
Alias /awstatscss "/usr/share/awstats/wwwroot/css/"
Alias /awstatsicons "/usr/share/awstats/wwwroot/icon/"
ScriptAlias /awstats/ "/usr/share/awstats/wwwroot/cgi-bin/"#
# This is to permit URL access to scripts/files in AWStats directory.
#
<Directory "/usr/share/awstats/wwwroot">
Options None
AllowOverride None
Order allow,deny
Allow from all
</Directory>
# Additional Perl modules
<IfModule mod_env.c>
SetEnv PERL5LIB /usr/share/awstats/lib:/usr/share/awstats/plugins
</IfModule>
http://awstats.sourceforge.net/docs/awstats_contrib.html#RELATED
http://www.neo.com.tw/archives/000059.html
http://phorum.study-area.org/viewtopic.php?p=124130#124130
上一篇
返回
下一篇
標籤:




用rsyslog架設log server收集個主機的記錄 (2011-03-26 13:39)
網站流量統計 awstats 的外掛 jawstats,有圓形餅圖喔 (2010-07-22 12:25)
awstats 重新計算分析某時段 (2010-02-20 11:45)
Posfix 技術手冊 (2009-02-23 14:28)
postfix 將伺服器上「查無此人」的郵件改由特定的用戶接收 (2008-07-03 20:28)
Postfix + Transport Maps 定義傳遞目的 (2008-05-19 01:20)
Postfix 自訂退信訊息範本 (2008-04-24 12:28)
有人整理了一些 postfix 的文件 (英文) (2008-04-24 11:13)
郵件伺服器 exim 的 log 記錄的名詞解釋 (2008-02-20 15:40)