Thanks for your answers Bob. Unfortunatly I'm not using LDAP... But I've seen some logs of the POP3 Server that comes with Courier package and it seems they have what I need: username and bytes transferred. If I can make it work, I'll post the scripts to get the bandwidth per domain.
Thanks again! -- Jose Canciani. On Wed, 8 Dec 2004 18:10:06 +0000, Bob Hutchinson <[EMAIL PROTECTED]> wrote: > On Wednesday 08 December 2004 12:29, Jose Luis Canciani wrote: > > The problem is that isoqlog will not analyze qmail-pop3d logs, only > > qmail-send logs. And even if it could, the pop3 logs does not show username > > and/or size of downloaded messages, it only shows ip and ports used by the > > connections. > > yep > > > > > That's why I first asked about the POP3_LOGLEVEL parameter that I think it > > could be set to show this kind of data in the logs. > > I found this on > http://www.nrg4u.com/qmail/QLDAPINSTALL > > Environment variables setable via tcpserver, envdir or plain old env/sh: > > <snip> > > POP3_LOGLEVEL > > Level of log verbosity in qmail-pop3d. > Default: 0 (NULL) > Affects: qmail-pop3d > Example: 3 > Levels: > 0 = no logging > 1 = fatal errors > 2 = login/logout accounting > 3 = session errors > 4 = verbose > Note: integer value, everything will be logged through tcpserver > Note2: this is a hack so that this log level does not interfere with the one > of auth_pop. > > This would appear to be a qmail-ldap specific thing, no mention of it in man > qmail-pop3d (netqmail-1.05) nor can I find any reference to POP3_LOGLEVEL in > my source tree, which is stock toaster > > If you are running qmail-ldap try setting environment variable as above > > > > > > > Nobody is collecting pop3 bandwidth size on a per domain basis?? > > > > On Tuesday 07 December 2004 22:22, Jose Luis Canciani wrote: > > > Thanks for the info. One doubt only, are those graphs separated by > > > domain? I mean, if I have several domains in vpopmail, will qmail-mrtg > > > give me the bandwidth for each one? > > > > No, qmail-mrtg does not, but isoqlog will, per domain and per user, but no > > graphs as it stands. > > > > qmail-mrtg will show you traffic, and can be configured to send alerts if > > trigger points are breached, alerting you to yet another tsunami of spam. > > - Hide quoted text - > > > > > On Wed, 8 Dec 2004 00:23:20 +0000, Bob Hutchinson > > > <[EMAIL PROTECTED]> > > > > wrote: > > > > On Tuesday 07 December 2004 20:06, Jose Luis Canciani wrote: > > > > > Hi everybody. > > > > > > > > > > I'm creating a platform for a hosting service and I need to know how > > > > > much bandwidth each domain is consuming. I've partially managed to do > > > > > it reading isoqlog reporting (based on qmail-send logs). > > > > > Now I'm trying to find POP3 bandwidth for qmail-pop3d. I haven't > > > > > found too much information on the internet. On the qmail-ldap big > > > > > picture a parameter called POP3_LOGLEVEL is shown. Searching with > > > > > that keyword, google show me only a couple of mailling list messages, > > > > > one of those suggest to put POP3_LOGLEVEL=3 so that qmail-pop3 would > > > > > show the username of the person. So I've added "POP3_LOGLEVEL=3; > > > > > export POP3_LOGLEVEL" to > > > > > /var/qmail/supervise/qmail-pop3d/run and restarted pop3 service but > > > > > nothing has changed. Does anyone know something about this parameter > > > > > o something else that would help? I haven't tried courier pop3 > > > > > server, maybe someone could tell me if it could be configured for > > > > > what I need? > > > > > > > > isoqlog will give you daily figures, in and out for each user, very > > > > easy to install. > > > > > > > > awstats can be configured to use qmail logs and will give greater > > > > detail, but it's not so easy to setup > > > > > > > > qmail-mrtg from inter7 is also useful for (almost) realtime graphs > > > > > > > > so is logwatch, for daily reports. There is an addon to logwatch 5.1 at > > > > > > > > http://midwales.com/downloads/logwatch/logwatch-qmail-1.0.3.tar.gz > > > > > > > > and don't forget iptables > > > > > > > > > Thank you! > > > > > -- > > > > > Jose Luis Canciani > > > > > Ing. en Sistemas de Informacion. > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > ---------------------------------------------------------------- > > > > > This message was sent using IMP, the Internet Messaging Program. > > > > > > > > -- > > > > ----------------- > > > > Bob Hutchinson > > > > Midwales dot com > > > > ----------------- > > > > -- > > ----------------- > > Bob Hutchinson > > Midwales dot com > > ----------------- > > > > > > > > > > > > > > ---------------------------------------------------------------- > > This message was sent using IMP, the Internet Messaging Program. > > > > > > ---------------------------------------------------------------- > > This message was sent using IMP, the Internet Messaging Program. > > -- > > > ----------------- > Bob Hutchinson > Midwales dot com > ----------------- > ---------------------------------------------------------------- This message was sent using IMP, the Internet Messaging Program.