On Feb 24, 2006, at 06:57 , Joachim Schoenberg wrote:
Hello list,
is there really nobody using this feature (domain splitting)?
I am responsible for several domains and would like to
divide the traffic graphs...
Joe
I have installed the amavis-stats-0.1.19 on my Linux server with
Amavisd-new 2.3.3 .
But I am not able to see the domain-wise graphs / stats.
--------------
The /usr/local/var/lib/amavis-stats/amavis-stats.* are getting
updated properly.
/usr/local/var/lib/amavis-stats/domain.com/amavis-stats.count 0
bytes
/usr/local/var/lib/amavis-stats/domain.com/amavis-stats.seen 0 bytes
/usr/local/var/lib/amavis-stats/domain.com/amavis-stats.state 58
bytes
[EMAIL PROTECTED] #cat domain.com/amavis-stats.state
pos: 12378614
lastupdate: 1134474900
LC_TIME: C
spamsess:
---------------------
Did everyone solve this or has a working config for domain splitting?
I have the above problem with version 0.1.21 too.
From my log:
How about a couple of passed entries from your amavisd-new log.
...
Amavis-Stats[27653]: updateRRD: 34 -> /usr/local/var/lib/amavis-
stats/5.rrd
Amavis-Stats[27653]: saveState(): eof: 27214354 numv: 8 lastupdate:
1140439200
Amavis-Stats[27653]: Finished -> localhost
Amavis-Stats[27653]: Starting -> domain1.de
Amavis-Stats[27653]: opening file /usr/local/var/lib/amavis-stats/
domain1.de/amavis-stats.state
Amavis-Stats[27653]: opening file /usr/local/var/lib/amavis-stats/
domain1.de/amavis-stats.cont
Amavis-Stats[27653]: opening file /usr/local/var/lib/amavis-stats/
domain1.de/amavis-stats.seen
Amavis-Stats[27653]: start position: 26992806 numv: 8 lastupdate:
1140438900
Amavis-Stats[27653]: parseFile(/var/log/mail, 26992806, 27216124)
Amavis-Stats[27653]: saveState(): eof: 27216124 numv: 8 lastupdate:
1140438900
Amavis-Stats[27653]: saveState(): eof: 27216124 numv: 8 lastupdate:
1140439200
Amavis-Stats[27653]: Finished -> domain1.de
Running amavis-stats in debug mode is only recommended if your
experiencing programming difficulties and is really meant to aid me
in correcting any potential problems.
I can see no errors in the log. I tried debug mode, no hints.
The domain1.de subfolder includes the same files like mentioned in
the original post,
but no rrd files were created.
domain1.de is a domain I relay mail for.
If I grep /var/log/mail for lines with "domain1.de" and "amavis"
manually, I get
several hundred hits but it seems to me that amavis-stats doesn't
see them.
It sees the lines as recorded in the logs otherwise it wouldn't graph
any data.
Joe
Amavis-stats looks at the amavisd-new log entries and pulls the
domain name form it.
If you have multi domains and log via syslog you would have entries
like the following (I use mutliple instances of amavisd-new).
Feb 24 19:38:58 daleenterprise.com /usr/bin/amavisd[24456]:
(24456-11) Passed CLEAN, [203.59.1.195] [203.53.37.182]
<[EMAIL PROTECTED]> -> <[EMAIL PROTECTED]>, Message-ID:
<[EMAIL PROTECTED]>, mail_id: RYp
+mbz4cHGd, Hits: 0.288, 12621 ms
Feb 24 19:39:04 mustangrestomods.com /usr/bin/amavisd[7582]:
(07582-13) Passed CLEAN, [17.254.13.37] [59.167.253.82] <darwin-dev-
[EMAIL PROTECTED]> ->
<[EMAIL PROTECTED]>, Message-ID: <4A19F58B-A076-46E9-87C9-
[EMAIL PROTECTED]>, mail_id: dq5un0aA9YMq, Hits: 0, 1837 ms
The first three field are the date and time, the fourth field is the
domain name, if all the domain names fields are all the same then you
are not logging additional servers via syslog so you will need to
make other adjustments either by running multiple instances of
amavisd-new (easy to do) or log the other servers via syslog (also
easy to do).
The proposed amavisd-new 2.4 is supposed to support virtual domain
name logging but a working model is currently not available.
-- Dale
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
AMaViS-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/amavis-user
AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/howto/