Hi Tonino,
good work, this feature will be very useful. I download your your tar file (it
is a tar.gz, not a tar only, rename it :), run configure, make, and here is
the result:
# ./configure --enable-cgibindir=/var/www/cgi-bin --enable-modify-quota=y
--enable-ipauth=n --enable-no-cache=y --enable-htmldir=/usr/local/qmailadmin
creating cache ./config.cache
checking for a BSD compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... yes
checking for working aclocal... found
checking for working autoconf... found
checking for working automake... found
checking for working autoheader... found
checking for working makeinfo... missing
checking host system type... i686-unknown-linux
checking for gcc... gcc
checking whether the C compiler (gcc ) works... yes
checking whether the C compiler (gcc ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking for ranlib... ranlib
checking for strerror in -lcposix... no
checking how to run the C preprocessor... gcc -E
checking for AIX... no
checking for crypt in -lcrypt... yes
checking for crypt in -lshadow... no
checking for floor in -lm... yes
checking for gethostbyaddr in -lnsl... yes
checking for getsockname in -lsocket... no
checking whether we should prohibit caching... yes
checking whether to require ip authentication... no
checking whether to display user index... yes
checking whether to allow admins to modify user quotas... yes
checking whether to show help pages... no
checking for ezmlm-idx... yes
checking for dirent.h that defines DIR... yes
checking for opendir in -ldir... no
checking for ANSI C header files... yes
checking for unistd.h... yes
checking for working const... yes
checking for size_t... yes
checking whether struct tm is in sys/time.h or time.h... time.h
checking for getcwd... yes
checking for mkdir... yes
checking for strdup... yes
checking for strstr... yes
updating cache ./config.cache
creating ./config.status
creating Makefile
creating config.h
# make
gcc -I. -I/var/vpopmail/include -g -O2 -c qmailadmin.c
gcc -I. -I/var/vpopmail/include -g -O2 -c alias.c
gcc -I. -I/var/vpopmail/include -g -O2 -c autorespond.c
gcc -I. -I/var/vpopmail/include -g -O2 -c forward.c
gcc -I. -I/var/vpopmail/include -g -O2 -c mailinglist.c
gcc -I. -I/var/vpopmail/include -g -O2 -c user.c
user.c: In function `addusernow':
user.c:516: `NO_SMTP' undeclared (first use in this function)
user.c:516: (Each undeclared identifier is reported only once
user.c:516: for each function it appears in.)
make: *** [user.o] Error 1
#
vpopmail 5.2.1, higher version required or bug?
Regards.
El Mar 18 Feb 2003 20:35, tonix (Antonio Nati) escribi�:
> Following the qmailadmin-1.0.10, and using (thanks!!!) Justin Hopper's code
> as starting framework, I've just realized a domain pooled quota management,
> that I'ld like could be integrated in the standard qmailadmin code.
>
> I followed the advice someone did a lot of time ago in this list. I cannot
> find those messages, so I don't know who I should thank.
>
> The base idea is the following:
>
> postmaster has the pooled quota against which all user's quota are
> subtracted or added. So, when a domain is created, postmaster has the whole
> domain's quota. Each time a user is added, the user's quota is decreased
> from postmaster's quota. The contrary when a user is deleted. Same
> adjustements when a user's quota is modified, increasing or decreasing
> postmaster's quota depending on user modifications. Minimum quota for each
> user or postmaster is 1 MB.
>
> This mechanism helps providers giving customers a fixed amount of space for
> the domain, then each domain administrator may manage users' quota as he
> needs.
>
> It works if "--enable-quota=y" is specified, and "disable_pooled_quota"
> does not exist in .qmailadmin-limits.
>
> Additionally, a small bug on quota handling have been fixed and a couple of
> additional .qmailadmin-limits flags ("bounce_mail" and "disable_smtp") have
> been added.
>
> I've published both the integral tar, with all original sources and
> changes, and the tar with patches only, in:
>
> www.interazioni.it/qmail
>
> All is strictly based on qmailadmin-1.0.10.
>
> I'ld like that Ken and Bill could insert these features in a next public
> version of qmailadmin.
>
> Tonino
>
>
>
>
> ------------------------------------------------------------
> Inter@zioni Interazioni di Antonio Nati
> http://www.interazioni.it [EMAIL PROTECTED]
> ------------------------------------------------------------