Hello,
I've just tried to install new version of qmailadmin and have one
problem:
[root@areion qmailadmin-0.86]# make
make all-recursive
make[1]: Wchodzę katalog `/usr/src/qmailadmin-0.86'
make[2]: Wchodzę katalog `/usr/src/qmailadmin-0.86'
gcc -I. -I/home/vpopmail/include -g -O2 -c auth.c
auth.c: In function `set_admin_type':
auth.c:139: `QA_ADMIN' undeclared (first use in this function)
auth.c:139: (Each undeclared identifier is reported only once
auth.c:139: for each function it appears in.)
make[2]: *** [auth.o] Błąd 1
make[2]: Opuszczam katalog `/usr/src/qmailadmin-0.86'
make[1]: *** [all-recursive] Błąd 1
make[1]: Opuszczam katalog `/usr/src/qmailadmin-0.86'
make: *** [all-recursive-am] Błąd 2
I was looking for QA_ADMIN everywhere but one thing I've got is:
[root@areion qmailadmin-0.86]# rgrep -i "QA_ADMIN" *
ChangeLog:09/28/01 - Removed #define QA_ADMIN statement and included vpopmail.h
(auth.c)
auth.c: } else if ( vpw->pw_gid & QA_ADMIN ) {
I thought that it should be declared in vpopmail.h in vpopmail
package, but:
[root@areion vpopmail-5.0pre5]# pwd
/usr/src/vpopmail-5.0pre5
[root@areion vpopmail-5.0pre5]# rgrep -i "QA_ADMIN" *
[root@areion vpopmail-5.0pre5]#
I have existing installation with vpopmail-5.5pre5 and qmailadmin 0.80
and everything works OK there.
INSTALL in qmailadmin-0.86:
8. If you want more than one administrator of a domain:
As of the 9/25/01 (5.0 version) of vpopmail and 0.84 of qmailadmin, you
can issue 'vmoduser -a <user@domain>' to grant qmailadmin administrator
privileges to non-postmaster users for a domain. To remove the these
privileges, just clear the gid flags for that user with
'vmoduser -x <user@domain>'
So I assume that this parameter should exist in vpopmail
configuration, but:
[root@areion qmailadmin-0.86]# /home/vpopmail/bin/vmoduser -v
version: 5.0pre5
vmoduser: usage: [options] email_addr or domain ( for the entire domain )
options: -v ( display the vpopmail version number )
-n ( don't rebuild the vpasswd.cdb file )
-q quota ( set quota )
-c comment (set the comment/gecos field )
-e encrypted_passwd (set the password field )
-C clear_text_passwd (set the password field )
the following options are bit flags in the gid int field
-u ( set no dialup flag )
-d ( set no password changing flag )
-p ( set no pop access flag )
-w ( set no web mail access flag )
-i ( set no imap access flag )
-b ( set bounce mail flag )
-r ( set no external relay flag )
-0 ( set V_USER0 flag )
-1 ( set V_USER1 flag )
-2 ( set V_USER2 flag )
-3 ( set V_USER3 flag )
-x ( clear all flags )
[root@areion qmailadmin-0.86]# /home/vpopmail/bin/vmoduser -a [EMAIL PROTECTED]
/home/vpopmail/bin/vmoduser: invalid option -- a
So, for now, I think that solve of this problem is to comment this two
lines:
set_admin_type()
{
struct vqpasswd *vpw=NULL;
vpw = vauth_getpw(Username, Domain);
AdminType = NO_ADMIN;
if ( strlen(Domain) > 0 ) {
if ( strcmp(Username,"postmaster")==0 ) {
AdminType = DOMAIN_ADMIN;
/* } else if ( vpw->pw_gid & QA_ADMIN ) {
AdminType = DOMAIN_ADMIN;
*/
} else {
AdminType = USER_ADMIN;
}
}
}
this feature (QA_ADMIN) will not work but it doesn't work in vpopmail
yet :)
--
regards
Sylwester Biernacki <[EMAIL PROTECTED]>