I'd assume there was a way to get statistics via the qmail api, either via a
C program, perl or php. Basically I want to be able to say "domain.tld has
X pop accounts"
I guess I could make a program that runs SUID-vpopmail that can hence go
into the vpopmail/domains tree and start counting... but I'd figure this may
be security problems and may just annoy me :) I'm using SQL, so I thought
of counting how many lines contain "domain.tld" in the domain field, but
that will only work for pop accounts. Anything where passwords are not
checked (ie: forwards, autoresponders, etc) do not seem to be placed within
the sql database.
I figured there might be some sort of API call that I could write up in C
and link the vpopmail library to. How does qmailadmin do it? Just via
counting?
--
Mike
>From: Frans Haarman <[EMAIL PROTECTED]>
>To: "Mike Miller" <[EMAIL PROTECTED]>
>CC: [EMAIL PROTECTED]
>Subject: Re: Statistic Info
>Date: Wed, 13 Dec 2000 09:25:15 +0100
>
>On Wednesday 13 December 2000 04:50, you wrote:
> > Does anyone know if its possible to print statistics easily? Either via
>a
> > C program or via perl. Basically I want to be able to pull up "you
>have X
> > pop accounts" on a central page
> >
> > --
> > Mike
> >
> >
>___________________________________________________________________________
> >__________ Get more from the Web. FREE MSN Explorer download :
> > http://explorer.msn.com
>
>You could write a program which counts the number of entries in
>your vpasswd files.
>
>-- Frans
>
>
>
_____________________________________________________________________________________
Get more from the Web. FREE MSN Explorer download : http://explorer.msn.com