Re: [vchkpw] Problem Accessing Domain details from mysql

2004-10-07 Thread Amit khatri
Did you try running vmoddomlimits to set limits into the table?


Yes I tried vmoddomlimits.

If they don't go in the table, they end up in .qmailadmin-limits files 

Yes Thet are going in .qmailadmin-limits files but I want these details to go in mysql 
table.
Is it possible to do so.
Pls help.

Also I am amazed why my replies are not going in the same thread. Even if I am just 
replying to ur messages.

Regards
Amit

__
Looking for safe email solutions for your school or district?
http://www.epals.com/schoolmail/ 


Re: [vchkpw] Problem Accessing Domain details from mysql

2004-10-07 Thread Amit khatri

Are you sure you rebuilt vpopmail with --enable-mysql-limits?  If you 
did (and installed it), vmoddomlimits should be writing to the entries 
in the table.


Yes.  I gave follwing command

./configure 
--enable-logging=p 
--enable-auth-module=mysql 
--disable-passwd 
--enable-clear-passwd 
--disable-many-domains 
--enable-auth-logging 
--enable-mysql-logging 
--enable-valias 
--enable-domainquotas 
--enable-mysql-limits


And after that
make  make install-strip 
And then I also tried ./vmoddomlimits
But domain details r not going in vpopmail table.
Although tables are getting created for individual domains. But I want to access 
following details from mysql like

   No. of Accounts 
   Forwards
   Autoresponders
   Quota in bytes
   pop access flag:   
   imap access flag:  
   change password flag:  
   web access flag:   
   email relay flag:

Is their something I can do.
Or am I doing something wrong.
eagerly waiting for ur reply.
Amit

__
Looking for safe email solutions for your school or district?
http://www.epals.com/schoolmail/ 


[vchkpw] Problem Accessing Domain details from mysql

2004-10-05 Thread Amit khatri
Hello all.

I am setting user a/c settings using ./vmoduser  I can access these details from 
pw_gid field from my domainname_com table. But I want to do the same for domains. I 
have two options either use ./vmoddomlimits or ./vmoduser domain name. But which 
ever I use I am unable to find out where it is storing these details in mysql like
   No of Accounts
   Forwards
   Autoresponders
   Quota in bytes
   Disable pop access
   Disable imap access
   Disable change password
   Disable web access
   Disable email relay
   
I suppose these domain level details should be stored in vpopmail table. But in my 
case it is showing vpopmail table empty. I don't know why this is happening. I 
configured vpopmail using following options.

./configure 
 --enable-logging=p 
 --enable-auth-module=mysql
 --disable-passwd 
 --enable-clear-passwd
 --disable-many-domains
 --enable-auth-logging
 --enable-mysql-logging
 --enable-valias
 --enable-domainquotas

I am using
   Redhat 9.
   vpopmail 5.4.6
   mysql 3.23.54

Can anybody pls tell me that how can I access domain details from mysql ?

Regards
Amit !!

__
Looking for safe email solutions for your school or district?
http://www.epals.com/schoolmail/ 


Re: [vchkpw] Problem Accessing Domain details from mysql

2004-10-05 Thread Amit khatri
-- Original Message -
Date: Tue, 05 Oct 2004 20:30:04 +0530
From: Tom Collins [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: [vchkpw] Problem Accessing Domain details from mysql


On Oct 5, 2004, at 1:49 AM, Amit khatri wrote:
 I suppose these domain level details should be stored in vpopmail 
 table. But in my case it is showing vpopmail table empty. I don't know 
 why this is happening. I configured vpopmail using following options.

 ./configure
  --enable-logging=p
  --enable-auth-module=mysql
  --disable-passwd
  --enable-clear-passwd
  --disable-many-domains
  --enable-auth-logging
  --enable-mysql-logging
  --enable-valias
  --enable-domainquotas

Add --enable-mysql-limits to that list of options.

--
Tom Collins  -  [EMAIL PROTECTED]
QmailAdmin: http://qmailadmin.sf.net/  Vpopmail: http://vpopmail.sf.net/
Info on the Sniffter hand-held Network Tester: http://sniffter.com/


I tried Adding --enable-mysql-limits to the list of options. But my vpopmail table is 
still empty. I am unable to see domain details. 
Any Idea ??
Amit

__
Looking for safe email solutions for your school or district?
http://www.epals.com/schoolmail/ 


[vchkpw] Problem with --enable-domain-quotas in vpopmail.

2004-10-03 Thread Amit khatri
I set the domain limit to 100 MB for my virtual domain using vpopmail but I was able 
create 11 users with 10 MB each which is wrong  it should not happen.

I read document at
http://www.pipeline.com.au/staff/mbowe/isp/webmail-server.htm#VPOPMAIL

Their it is told that
--disable-domain-quotas in vpopmail
code is buggy though and is not recommended for use.

 But I need to set domain limits in my application.
 It is very necessary for my application.
 So is their any way I can set domain limits ?

 I am using
 Redhat 9.
 vpopmail 5.4.6
 mysql 3.23.54

 pls help.
 Amit


__
Looking for safe email solutions for your school or district?
http://www.epals.com/schoolmail/ 


[vchkpw] Problem using pw_gid, pw_uid

2004-09-30 Thread Amit khatri
Hello
I am using qmail with vpopmail. And I have also enabled mysql support for it.
I am setting permissions for domains  user accounts using vmoddomlimits  vmoduser.
when I set any value using these commands then one value get stored in pw_gid column 
of domainname_com table.
for eg. if I give command ./vmoduser -p [EMAIL PROTECTED]
Value of pw_gid becomes 2.
can anybody tell me that, is their exist any document which can tell me which digit in 
gid is used for what permission.
Like 2 is for disable pop access. So that I can display all the permissions in my GUI.
In short I want to ask why gid is used  how can we use it effeciently.
Or is their an other way to access these permissions.
Or Should I use pw_flags. if yes then how can I use them.
Also tell me what is uid  how we can use it.
Also it will be nice if some can tell me what is the purpose of dir_control table  
how I can use it.

I tried various search terms on google. But I am unable to find anything.
I tried following terms

1. gid values vpopmail
2. vmoddomlimits vmoduser
3. vpopmail mysql guide
4. pw_gid
5. pw_gid values
6. pw_gid vs pw_flags

I also tried

qmailrocks.org
lifewithqmail.com

Can any body pls help ???

Amit

__
Looking for safe email solutions for your school or district?
http://www.epals.com/schoolmail/ 


Re: [vchkpw] Problem using pw_gid, pw_uid

2004-09-30 Thread Amit khatri

 can anybody tell me that, is their exist any document which can tell 
 me which digit in gid is used for what permission.

Looking in the source code, you'll find the following in vpopmail.h

/* gid flags */
#define NO_PASSWD_CHNG 0x01
#define NO_POP 0x02
#define NO_WEBMAIL 0x04
#define NO_IMAP0x08
#define BOUNCE_MAIL0x10
#define NO_RELAY   0x20
#define NO_DIALUP  0x40
#define V_USER0   0x080
#define V_USER1   0x100
#define V_USER2   0x200
#define V_USER3   0x400
#define NO_SMTP   0x800
#define QA_ADMIN 0x1000
#define V_OVERRIDE   0x2000

Thanks for this help. 
This is really useful info.

Can u tell me what is uid  how can we use it.
 why dir_control table is used.

Regards
Amit

__
Looking for safe email solutions for your school or district?
http://www.epals.com/schoolmail/