Re: [vchkpw] vmoduser set quota is fail

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

孙俊 wrote:
 [r...@ns /data/vpopmail/bin]# ./vmoduser -q 1000 t...@egotop.com
 client_connect: warning: config_begin failed
 Segmentation fault: 11 (core dumped)

This bug has been plaguing me since 5.4.28.  Run this:

cat  ~vpopmail/etc/vusagec.conf  __EOF__
Server:
   Disable = True;
__EOF__

Or, if you're not in a strict production environment, use the 5.5.0
version under vpopmail-devel.
- --
/*
Matt Brookings m...@inter7.com   GnuPG Key FAE0672C
Software developer Systems technician
Inter7 Internet Technologies, Inc. (815)776-9465
*/
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAksjxscACgkQIwet2/rgZyzAlwCfTzHrBjKyhmsSEPbdrsZQ8EDS
RaoAnRGgbPYiZkZcbKzBe2hKUMLwVwyY
=2Bk9
-END PGP SIGNATURE-


[vchkpw] vmoduser set quota is fail

2009-12-11 Thread 孙俊


I not find vmoduser maillist ,so send mail to this

My question is set user quota is fail!


OS is FreeBSD ns.egotop.com 8.0-RELEASE FreeBSD 8.0-RELEASE #0: Sat Nov 21 
15:48:17 UTC 2009
r...@almeida.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  i386


Auth mod is Mysql

Server version: 5.0.88-log Source distribution


[r...@ns /data/vpopmail/bin]# cat /data/vpopmail/etc/vpopmail.mysql
localhost|0|mail|123456|vpopmail


vpopmail version

[r...@ns /data/vpopmail/bin]# ./vadduser -v
version: 5.4.29
vadduser: usage: [options] email_address [passwd]
options: -v (print the version)
 -q quota_in_bytes (sets the users quota, use NOQUOTA for unlimited)
 -c comment (sets the gecos comment field)
 -e standard_encrypted_password
 -n no_password
 -r[len] (generate a len (default 8) char random password)
 
 
 
 
[r...@ns /data/vpopmail/bin]# ./vadduser t...@egotop.com 123456
[r...@ns /data/vpopmail/bin]# echo $?
0

[r...@ns /data/vpopmail/bin]# /data/app/mysql/bin/mysql -uroot -p
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 50
Server version: 5.0.88-log Source distribution

Reading history-file /root/.mysql_history
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

mysql select pw_name,pw_domain,pw_gecos,pw_dir,pw_shell,pw_clear_passwd from 
vpopmail where pw_name='t2';
+-++--++--+-+
| pw_name | pw_domain  | pw_gecos | pw_dir | 
pw_shell | pw_clear_passwd |
+-++--++--+-+
| t2  | egotop.com | t2   | /data/vpopmail/domains/egotop.com/0/t2 | 
NOQUOTA  | 123456  |
+-++--++--+-+
1 row in set (0.00 sec)

mysql quit
Writing history-file /root/.mysql_history
Bye


[r...@ns /data/vpopmail/bin]# ./vuserinfo t...@egotop.com
name:   t2
passwd: $1$3QbypzV/$4dgi/S3wDdOoCm/UMKEGH1
clear passwd: 123456
comment/gecos: t2
uid:0
gid:0
flags:  0
gecos: t2
limits: No user limits set.
dir:   /data/vpopmail/domains/egotop.com/0/t2
quota: NOQUOTA
usage: NOQUOTA
account created: Sat Dec 12 10:09:39 2009
last auth: Never logged in

## add user ok



[r...@ns /data/vpopmail/bin]# ./vmoduser -v
version: 5.4.29
vmoduser: usage: [options] email_addr or domain (for each user in 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
 -x ( clear all flags )
 -d ( don't allow user to change password )
 -p ( disable POP access )
 -s ( disable SMTP AUTH access )
 -w ( disable webmail [IMAP from localhost*] access )
( * full list of webmail server IPs in vchkpw.c )
 -i ( disable non-webmail IMAP access )
 -b ( bounce all mail )
 -o ( user is not subject to domain limits )
 -r ( disable roaming user/pop-before-smtp )
 -a ( grant qmailadmin administrator privileges )
 -S ( grant system administrator privileges - access all domains )
 -E ( grant expert privileges - edit .qmail files )
 -f ( disable spamassassin)
 -F ( delete spam)
 -m ( disable maildrop)
  [The following flags aren't used directly by vpopmail but are]
  [included for other programs that share the user database.]
 -u ( set no dialup flag )
 -0 ( set V_USER0 flag )
 -1 ( set V_USER1 flag )
 -2 ( set V_USER2 flag )
 -3 ( set V_USER3 flag )
 
 
[r...@ns /data/vpopmail/bin]# ./vmoduser -q 1000 t...@egotop.com
client_connect: warning: config_begin failed
Segmentation fault: 11 (core dumped)
[r...@ns /data/vpopmail/bin]# echo $?
139

## set user quota  is failed, this is why ?

## /var/log/messages
Dec 12 10:23:27 ns kernel: pid 1037 (vmoduser), uid 0: exited on signal 11 
(core dumped)


[r...@ns /data/vpopmail/bin]# ./vuserinfo t...@egotop.com
name:   t2
passwd: $1$3QbypzV/$4dgi/S3wDdOoCm/UMKEGH1
clear passwd: 123456
comment/gecos: t2
uid:0
gid:0
flags:  0
gecos: t2
limits: No user limits set.
dir:   /data/vpopmail/domains/egotop.com/0/t2
quota: NOQUOTA
usage: NOQUOTA
account created: Sat Dec 12 10:09:39 2009
last auth: Never logged in




vpopmail config


./configure \
--prefix=/data/vpopmail \
--exec-prefix=/data/vpopmail \
--enable-roaming-users=y \
--enable-auth-module=mysql \
--enable-file-sync \
--enable-incdir=/usr/local/include \
--enable-libdir=/usr/local/lib \