[Resent to the list instead of directly to spork. It would be nice if the Reply-To was set to this list...]

On Wednesday, July 23, 2003, at 02:47 PM, spork wrote:
I'm trying to track down where exactly qmailadmin looks to see if someone
is in fact a domain administrator. I don't see anything in mysql, nor in
any of the user directories... Anyone know where this info is maintained?

Looking at auth.c, we find:


    if ( strcmp(Username,"postmaster")==0 ) {
      AdminType = DOMAIN_ADMIN;
    } else if ( vpw->pw_gid & QA_ADMIN ) {
      AdminType = DOMAIN_ADMIN;
    } else {
      AdminType = USER_ADMIN;
    }

So, if the account name is "postmaster", it's automatically a domain admin. If the QA_ADMIN flag is set in the gid (group id) field of the user's account, then they're also an admin.

You can change this flag with vqadmin (see the Inter7 site) or the vmoduser's -a option (from vpopmail).

--
Tom Collins
[EMAIL PROTECTED]
http://sniffter.com/ - info on the Sniffter hand-held Network Tester




Reply via email to