Re: [vchkpw] vpopmail-5.5.0-1239053335 issues

2009-04-07 Thread Matt Brookings
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

kengheng wrote:
> Dear All, I've installed vpopmail-5.5.0-1239053335 and compiled mysql
> backend successfully. However, whenever I try to run a vpopmail bin, it
> will generate a error msg to me as below:
> 
> vpopmail/bin/vadddomain abc.mydomain.com
> vauth_load_module: dlopen(/var/qmail/vpopmail/etc/vpopmail.authmodule)
> failed: 0
> Error - no authentication module loaded. could not load authentication
> module
> 
> Notes: I've configured the vpopmail.mysql accordingly and follow my
> older vpopmail 5.4.25 which run perfectly

Did you  'make install' in the backend directory?  If so, please paste
the commands the make install ran.  Also, please provide 'uname -a' and
also what configure options you used.

Thanks.
- --
/*
Matt BrookingsGnuPG Key D9414F70
Software developer Systems technician
Inter7 Internet Technologies, Inc. (815)776-9465
*/
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAknbStoACgkQ6QgvSNlBT3A4fACfdZukZ1r4jthi28fm5PCW0xqQ
XhoAmgNnNF+kJ6WQmSqKaSnHI8H808Wr
=d6KD
-END PGP SIGNATURE-


[vchkpw] vpopmail-5.5.0-1239053335 issues

2009-04-07 Thread kengheng
Dear All, I've installed vpopmail-5.5.0-1239053335 and compiled mysql 
backend successfully. However, whenever I try to run a vpopmail bin, it 
will generate a error msg to me as below:


vpopmail/bin/vadddomain abc.mydomain.com
vauth_load_module: dlopen(/var/qmail/vpopmail/etc/vpopmail.authmodule) 
failed: 0
Error - no authentication module loaded. could not load authentication 
module


Notes: I've configured the vpopmail.mysql accordingly and follow my 
older vpopmail 5.4.25 which run perfectly


--
Best regards,
KengHeng. Chan
Mobile : +6-016-717-0273
SQL Technology Sdn Bhd
http://www.mysql.cc
c...@mysql.cc 



!DSPAM:49db380d32682267419082!



[vchkpw] vusaged question

2009-04-07 Thread Wouter van der Schagt

Good morning all,

Am I correct in assuming the the vusaged can be used for retrieving the 
current amount of storage used of a particular mailbox? If so, where does 
this information come from, is it the actual size used on the disk or is it 
based on a Maildir calculation? Is there any information / documentation for 
this available already?


Sincerely,
- Wouter van der Schagt 



!DSPAM:49db60b532682635016810!



Re: [vchkpw] vusaged question

2009-04-07 Thread Matt Brookings
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Wouter van der Schagt wrote:
> Good morning all,
> 
> Am I correct in assuming the the vusaged can be used for retrieving the
> current amount of storage used of a particular mailbox? If so, where

You are correct.  It can also return usage for a particular domain.  Instead of
querying with 'u...@domain', query with '@domain'.

> does this information come from, is it the actual size used on the disk
> or is it based on a Maildir calculation? Is there any information /
> documentation for this available already?

Basically, it's adding up the contents of a user's Maildir and caching this
information.  It then updates this cache with changes it sees.  It's a bit
more complicated than that, but that's essentially what it's doing.

As far as how it calculates Maildirs, it will use the Maildir++ formatted
filenames to cut down on stat() calls.  You can enable and disable this in
vusaged.conf, but it's on by default.  It also optionally evaluates the
size of directory entries -- again, on by default.  So, if a user has
100k files in a single Maildir directory, the 'new' or 'cur' directory
entry will be quite large; it will factor this in.

Is that what you were looking for, or were you looking for something more
specific?
- --
/*
Matt BrookingsGnuPG Key D9414F70
Software developer Systems technician
Inter7 Internet Technologies, Inc. (815)776-9465
*/
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAknbZW8ACgkQ6QgvSNlBT3DLqgCffA/h6WB2bf7l5KETdtdtG9C4
wFoAn00D0cxRHpGoF/eDx4XjvWh2q1FG
=DiVj
-END PGP SIGNATURE-


Re: [vchkpw] vusaged question

2009-04-07 Thread Wouter van der Schagt
You are correct.  It can also return usage for a particular domain. 
Instead of

querying with 'u...@domain', query with '@domain'.


Great, does this return 1 value (i suppose so), or a comma delimited range
mailbox, storage used...or is this is easy to make and iterate ourselves..


Is that what you were looking for, or were you looking for something more
specific?


No, this would pretty much cover the functionality we need. Perhaps an 
option

for the delimited values as described above would be a nice addition. Other
than that it is great. Is 5.5 the first version in which this will become 
available?


How stable is the 5.5 branch compared with 5.4.25 that we are using now
with regards to standard functionality with Maildir++ support.

Sincerely,
- Wouter van der Schagt 



!DSPAM:49db8d6e32685688614046!



Re: [vchkpw] vusaged question

2009-04-07 Thread Matt Brookings
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Wouter van der Schagt wrote:
>> You are correct.  It can also return usage for a particular domain.
>> Instead of
>> querying with 'u...@domain', query with '@domain'.
> 
> Great, does this return 1 value (i suppose so), or a comma delimited range
> mailbox, storage used...or is this is easy to make and iterate ourselves..

I'm not sure I understand what you're asking.  The daemon?  The daemon
has a protocol it speaks with the client API.  The client API sends a query
and is returned the byte usage, and count usage for the queried item
if cached.

> No, this would pretty much cover the functionality we need. Perhaps an
> option
> for the delimited values as described above would be a nice addition. Other
> than that it is great. Is 5.5 the first version in which this will
> become available?

Now I'm totally lost.  What do you mean by delimited values?

> How stable is the 5.5 branch compared with 5.4.25 that we are using now
> with regards to standard functionality with Maildir++ support.

I don't believe anything has changed except the quota support.  So, I suppose
the answer to your question is that it's better.

As far as stability, I only have it on a few production servers, and I haven't
gotten any reports from people.  I can't really say except from my own 
experience,
which is that it has not caused any problems.
- --
/*
Matt BrookingsGnuPG Key D9414F70
Software developer Systems technician
Inter7 Internet Technologies, Inc. (815)776-9465
*/
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAknblm4ACgkQ6QgvSNlBT3DC9wCfTklzvYVCGVMM1KMertA80F0J
WkwAn22POFaiL9vy0qZXPXYXb9ocmqTv
=ClUG
-END PGP SIGNATURE-


Re: [vchkpw] vusaged question

2009-04-07 Thread Wouter van der Schagt

Now I'm totally lost.  What do you mean by delimited values?


My apologies, what i meant with the delimited output was:

Query daemon with: '@domain'.
Output:

i...@domain,129387
pe...@domain,19273
ja...@domain,102938

Where the output is comma delimited as mailbox,storage_used

Sincerely,
- Wouter van der Schagt

!DSPAM:49db996a32681978456759!



Re: [vchkpw] vusaged question

2009-04-07 Thread Matt Brookings
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Wouter van der Schagt wrote:
>> Now I'm totally lost.  What do you mean by delimited values?
> 
> My apologies, what i meant with the delimited output was:
> 
> Query daemon with: '@domain'.
> Output:
> 
> i...@domain,129387
> pe...@domain,19273
> ja...@domain,102938
> 
> Where the output is comma delimited as mailbox,storage_used

That's not how the client API works.  Take a look at vusagec.c in the root 
directory in
the 5.5 branch.  It shows how the client API works.
- --
/*
Matt BrookingsGnuPG Key D9414F70
Software developer Systems technician
Inter7 Internet Technologies, Inc. (815)776-9465
*/
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAknbnFMACgkQ6QgvSNlBT3DYJwCgrTlNdTZD1jFA1Oculle4anNZ
z0MAnia7IhqPMG3V3mMn4IaW3hCaIR90
=4cvW
-END PGP SIGNATURE-


Re: [vchkpw] vpopmail-5.5.0-1239053335 issues

2009-04-07 Thread kengheng

Matt Brookings wrote:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

kengheng wrote:
  

Dear All, I've installed vpopmail-5.5.0-1239053335 and compiled mysql
backend successfully. However, whenever I try to run a vpopmail bin, it
will generate a error msg to me as below:

vpopmail/bin/vadddomain abc.mydomain.com
vauth_load_module: dlopen(/var/qmail/vpopmail/etc/vpopmail.authmodule)
failed: 0
Error - no authentication module loaded. could not load authentication
module

Notes: I've configured the vpopmail.mysql accordingly and follow my
older vpopmail 5.4.25 which run perfectly



Did you  'make install' in the backend directory?  If so, please paste
the commands the make install ran.  Also, please provide 'uname -a' and
also what configure options you used.
  

Below are my configuration and output :

# cd vpopmail-5.5.0/
# ./configure --enable-roaming-users=y --enable-logging=p 
--enable-ip-alias-domains=n --enable-passwd=n --enable-clear-passwd=y 
--enable-domain-quotas=y --enable-many-domains=n --enable-sql-logging=y 
--disable-mysql-limits

# make;make install
# cd vpopmail-5.5.0/backends/mysql
# ./configure --enable-valias --enable-auth-module=mysql 
--enable-auth-logging=y

# make
gcc -DVAUTH_MODULE -I../.. -fPIC -I/usr/local/mysql/include/mysql -o 
vmysql.o -c vmysql.c
gcc -DVAUTH_MODULE -shared -nostartfiles -o vmysql.so vmysql.o 
-L/usr/local/mysql/lib/mysql -lz -lm

# make install
/usr/bin/install -c vmysql.so /var/qmail/vpopmail/lib/vmysql.so
rm -f /var/qmail/vpopmail/etc/vpopmail.authmodule
ln -s /var/qmail/vpopmail/lib/vmysql.so 
/var/qmail/vpopmail/etc/vpopmail.authmodule

if ! test -r /var/qmail/vpopmail/etc/vpopmail.mysql; then \
  /usr/bin/install -c -m 0640 vpopmail.mysql 
/var/qmail/vpopmail/etc/vpopmail.mysql; \

  if test "`id -u`" = "0"; then \
chown vpopmail:vchkpw 
/var/qmail/vpopmail/etc/vpopmail.mysql; \

  fi; \
   fi
# uname -a
Linux web05 2.6.27.19-3.2-pae #1 SMP 2009-02-25 15:40:44 +0100 i686 i686 
i386 GNU/Linux

Thanks.
- --
/*
Matt BrookingsGnuPG Key D9414F70
Software developer Systems technician
Inter7 Internet Technologies, Inc. (815)776-9465
*/
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAknbStoACgkQ6QgvSNlBT3A4fACfdZukZ1r4jthi28fm5PCW0xqQ
XhoAmgNnNF+kJ6WQmSqKaSnHI8H808Wr
=d6KD
-END PGP SIGNATURE-


  



--
Best regards,
KengHeng. Chan
Mobile : +6-016-717-0273
SQL Technology Sdn Bhd
http://www.mysql.cc
c...@mysql.cc 



!DSPAM:49dc13b732681060811966!



Re: [vchkpw] vpopmail-5.5.0-1239053335 issues

2009-04-07 Thread Matt Brookings
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

kengheng wrote:
>> ln -s /var/qmail/vpopmail/lib/vmysql.so

Please paste output of:

   ldd /var/qmail/vpopmail/lib/vmysql.so
- --
/*
Matt BrookingsGnuPG Key D9414F70
Software developer Systems technician
Inter7 Internet Technologies, Inc. (815)776-9465
*/
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkncIPUACgkQ6QgvSNlBT3BxsQCfeo0lwo4vIctPAfnnRd1a5zR7
EV8AnR6H6JAuRHVTMCJrZVFGLb49YB0j
=CsFs
-END PGP SIGNATURE-


Re: [vchkpw] vpopmail-5.5.0-1239053335 issues

2009-04-07 Thread kengheng

here the output
# ldd /var/qmail/vpopmail/lib/vmysql.so
   linux-gate.so.1 =>  (0xe000)
   libz.so.1 => /lib/libz.so.1 (0xb8018000)
   libm.so.6 => /lib/libm.so.6 (0xb7fef000)
   libc.so.6 => /lib/libc.so.6 (0xb7e93000)
   /lib/ld-linux.so.2 (0xb805)*
*

Matt Brookings wrote:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

kengheng wrote:
  

ln -s /var/qmail/vpopmail/lib/vmysql.so
  


Please paste output of:

   ldd /var/qmail/vpopmail/lib/vmysql.so
- --
/*
Matt BrookingsGnuPG Key D9414F70
Software developer Systems technician
Inter7 Internet Technologies, Inc. (815)776-9465
*/
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkncIPUACgkQ6QgvSNlBT3BxsQCfeo0lwo4vIctPAfnnRd1a5zR7
EV8AnR6H6JAuRHVTMCJrZVFGLb49YB0j
=CsFs
-END PGP SIGNATURE-


  



--
Best regards,
KengHeng. Chan
Mobile : +6-016-717-0273
SQL Technology Sdn Bhd
http://www.mysql.cc
c...@mysql.cc 



!DSPAM:49dc38b432683322216282!