]> git.ipfire.org Git - thirdparty/AWStats.git/commitdiff
Added QMail support and better working support for Postfix and Sendmail (SMA preproce...
authoreldy <>
Sun, 4 May 2003 00:39:48 +0000 (00:39 +0000)
committereldy <>
Sun, 4 May 2003 00:39:48 +0000 (00:39 +0000)
docs/awstats_changelog.txt
docs/awstats_config.html
docs/awstats_faq.html
wwwroot/cgi-bin/awstats.model.conf

index 73197bf1353cfff900d4823dec402909bbc6110c..75192875483af0e460df241c59086f475f448b33 100644 (file)
@@ -35,7 +35,8 @@ New features/improvments:
   AddDataArrayShowDaysOfMonthStats parameters were added.
 - Added -staticlinksext to build static pages with another extension than
   default .html
-- Added QMail support.
+- Added QMail support and better working support for Postfix and Sendmail (SMA
+  preprocessor was replaced by maillogconv.pl).
 
 Other/Documentation:
 - Added Isle of Man, Monserat, and Palestinian flag icon.
index 2284f0738db01f106a25f2ed20c5f234e264d7d5..dd75a79c7bb4fca5732aa5e7bf277ef5fd088884 100644 (file)
@@ -814,8 +814,9 @@ when reading it), follow the example:<br>
 <a name="ValidSMTPCodes"><b>ValidSMTPCodes</b></a><br>
 <b>Version : </b>5.0 +<br>
 <br># By default, AWStats considers that records found in mail log file are
-<br># successful mail transfers if code saved in log file is a valid code (1 for
-<br># sendmail, 0 for postfix).
+<br># successful mail transfers if field that represent return code in analyzed
+<br># log file match values defined by this parameter.
+<br># Change : Effective for new updates only
 <br># Example: "1"
 <br># Example: "0"
 <br># Default: "1"
index aaa5e669d1b69f01aaa740c4c92f4f7a1c130ff1..f71bc59ced3e3742d5be71fdad3cdb07ce6ea36c 100644 (file)
@@ -282,76 +282,20 @@ Now you can use AWStats as usual (run the update process and read statistics).<b
 What do I have to do to use AWStats to analyze my mail log files.<br>
 <font class=CSolution>SOLUTION:</font><br>
 <br>
-<u>For PostFix or Sendmail log files</u><br>
+This tip works with AWStats 5.5 or higher.<br>
 <br>
-1- First, install a mail log convertor like <a href="http://www.klake.org/sma/">SMA</a> to use it
-as a pre-processor for AWStats update process (to convert your mail log into a readable format):<br>
-For this, you can download and copy sma (or sma.exe) file and sma.conf into same directory
-than awstats.pl file.<br>
-Edit sma.conf to change the ClogFormat and ClogSentOnly parameter to :
-<table width="95%" border=1 cellpadding=0 cellspacing=0><tr class=CFAQ><td class=CFAQ>
-<i>ClogFormat "%y-%m-%d %h:%n:%s %f %t %F %T SMTP - %S %z"
-<br>ClogSentOnly no
-</i>
-</td></tr></table>
+<u>For Postfix, Sendmail or QMail log files</u><br>
 <br>
-<!--To have the change effective, stop your mail daemon, remove old log file and restart mail daemon.<br>
-Send a mail and check in your mail that your log file looks like this:<br>-->
-To check that your sma config is correct, run the following command:<br>
-<b>sma -O clog -f /pathtosmaconf/sma.conf /pathtomaillog/maillog > convertedmaillog</b><br>
-The resulting convertedmaillog file must have records that match the following format:<br>
-<i>2001-01-01 05:38:08 sender@mailsender.com receiver@mailreceiver.com hostrelaysender hostrelayreceiver SMTP - 1 31357</i><br>
-Warning: some sma versions (1.3) have been reported to not convert month correctly, giving
-for example a date like this 2001-#01-01 or 2001-00-01 instead of 2001-01-01. This makes AWStats
-analyze fails so check your sma output and change version if error.<br>
-<br>
-2- Then setup AWStats to analyze SMA processed mail log:<br>
-Copy config awstats.model.conf file to "awstats.mail.conf".<br>
-Modify this new config file:
-<table width="95%" border=1 cellpadding=0 cellspacing=0><tr class=CFAQ><td class=CFAQ>
-<i>
-LogFile="/pathtosma/sma -O clog -f /pathtosmaconf/sma.conf /pathtomaillog/maillog |"
-<br>LogFormat="%time2 %email %email_r %host %host_r %method %url %code %bytesd"
-<br>ValidSMTPCodes="1"
-<br>ShowMenu=1
-<br>ShowMonthStats=HB
-<br>ShowDaysOfMonthStats=HB
-<br>ShowDaysOfWeekStats=HB
-<br>ShowHoursStats=HB
-<br>ShowDomainsStats=0
-<br>ShowHostsStats=HBL
-<br>ShowAuthenticatedUsers=0
-<br>ShowRobotsStats=0
-<br>ShowEMailSenders=HBL
-<br>ShowEMailReceivers=HBL
-<br>ShowSessionsStats=0
-<br>ShowPagesStats=0
-<br>ShowFileTypesStats=0
-<br>ShowFileSizesStats=0
-<br>ShowBrowsersStats=0
-<br>ShowOSStats=0
-<br>ShowOriginStats=0
-<br>ShowKeyphrasesStats=0
-<br>ShowKeywordsStats=0
-<br>ShowHTTPErrorsStats=0
-</i>
-</td></tr></table>
-<br>
-Now you can use AWStats as usual (run the update process and read statistics).<br>
-<br>
-
-<u>For QMail or Sendmail log files</u><br>
-<br>
-1- First, install a Qmail log convertor like <a href="http://www.ke.nu/software/">Maillogconv</a> to use it
-as a pre-processor for AWStats update process (to convert your Qmail log into a readable format):<br>
-For this, you can download and copy maillogconv file into same directory
+1- First, install a mail log convertor like <a href="http://www.ke.nu/software/">maillogconv.pl</a> to use it
+as a pre-processor for AWStats update process (to convert your Postfix, Sendmail or Qmail log into a readable format):<br>
+For this, you can download and copy maillogconv.pl file into same directory
 than awstats.pl file.<br>
 <br>
-2- Then setup AWStats to analyze Maillogconv processed mail log:<br>
+2- Then setup AWStats to analyze maillogconv processed log:<br>
 Copy config awstats.model.conf file to "awstats.mail.conf".<br>
 Modify this new config file:
 <table width="95%" border=1 cellpadding=0 cellspacing=0><tr class=CFAQ><td class=CFAQ>
-For standard QMail and SendMail logfiles, set<br>\r
+For standard Postfix, Sendmail and standard QMail logfiles, set<br>\r
 <i>
 LogFile="/path/to/maillogconv standard /pathtomaillog/maillog |"<br>\r
 </i>
@@ -366,7 +310,6 @@ LogFile="gzip -cd /var/log/maillog.0.gz | /path/to/maillogconv vadmin /var/log/m
 Then change:
 <i>
 <br>LogFormat="%time2 %email %email_r %host %host_r %method %url %code %bytesd"
-<br>ValidSMTPCodes="1"
 <br>ShowMenu=1
 <br>ShowMonthStats=HB
 <br>ShowDaysOfMonthStats=HB
@@ -388,6 +331,7 @@ Then change:
 <br>ShowKeyphrasesStats=0
 <br>ShowKeywordsStats=0
 <br>ShowHTTPErrorsStats=0
+<br>
 </i>
 </td></tr></table>
 <br>
@@ -395,8 +339,9 @@ Now you can use AWStats as usual (run the update process and read statistics).<b
 <br>
 
 <u>For Exchange log files</u><br>
+<br>
 If someone can understand the Exchange log format, he can explain it to me at eldy@users.sourceforge.net.<br>
-Until this server won't log in a clever way, just forget using AWStats or use a more serious
+Until this server will log messy data, just forget using AWStats or use a more serious
 mail server (sendmail, postfix, ...). Sorry.<br>
 <!--
 Your Exchange mail log file might looks like this:<br>
index b5769d6af35bbfac956beab2dec065814d1c0fa0..58dcac4de1dfe08a05093be9e7564eb3f2fe8d30 100644 (file)
@@ -487,8 +487,8 @@ ValidHTTPCodes="200 304"
 
 
 # By default, AWStats considers that records found in mail log file are
-# successful mail transfers if code saved in log file is a valid code (1 for
-# sendmail, 0 for postfix).
+# successful mail transfers if field that represent return code in analyzed
+# log file match values defined by this parameter.
 # Change : Effective for new updates only
 # Example: "1"
 # Example: "0"