[vchkpw] vmoduser in 5.4.30 set wrong permission on maildirsize file
Hi, I'm testing the latest stable release of vpopmail. vusaged is disable. I have found this issue, when I change the quota via vmoduser the owner of maildirsize file becomes root:root instead of vpopmail:vchkpw mail01:~# /home/vpopmail/bin/vadddomain cbstest.com password mail01:~# ls -la /home/vpopmail/domains/cbstest.com/postmaster/Maildir/ totale 24 drwx-- 5 vpopmail vchkpw 4096 3 mar 17:59 . drwx-- 3 vpopmail vchkpw 4096 3 mar 17:59 .. drwx-- 2 vpopmail vchkpw 4096 3 mar 17:59 cur -rw--- 1 vpopmail vchkpw 15 3 mar 17:59 maildirsize drwx-- 2 vpopmail vchkpw 4096 3 mar 17:59 new drwx-- 2 vpopmail vchkpw 4096 3 mar 17:59 tmp mail01:~# /home/vpopmail/bin/vadduser ales...@cbstest.com password mail01:~# ls -la /home/vpopmail/domains/cbstest.com/alessio/Maildir/ totale 24 drwx-- 5 vpopmail vchkpw 4096 3 mar 18:00 . drwx-- 3 vpopmail vchkpw 4096 3 mar 18:00 .. drwx-- 2 vpopmail vchkpw 4096 3 mar 18:00 cur -rw--- 1 vpopmail vchkpw 15 3 mar 18:00 maildirsize drwx-- 2 vpopmail vchkpw 4096 3 mar 18:00 new drwx-- 2 vpopmail vchkpw 4096 3 mar 18:00 tmp mail01:~# /home/vpopmail/bin/vmoduser -q 50M cbstest.com mail01:~# ls -la /home/vpopmail/domains/cbstest.com/alessio/Maildir/ totale 52 drwx-- 8 vpopmail vchkpw 4096 3 mar 18:00 . drwx-- 3 vpopmail vchkpw 4096 3 mar 18:00 .. drwx-- 2 vpopmail vchkpw 4096 3 mar 18:00 cur drwx-- 5 vpopmail vchkpw 4096 3 mar 18:00 .Drafts -rw--- 1 root root 14 3 mar 18:00 maildirsize drwx-- 2 vpopmail vchkpw 4096 3 mar 18:00 new drwx-- 5 vpopmail vchkpw 4096 3 mar 18:00 .Spam -rw--- 1 vpopmail vchkpw 18 3 mar 18:00 subscriptions drwx-- 2 vpopmail vchkpw 4096 3 mar 18:00 tmp drwx-- 5 vpopmail vchkpw 4096 3 mar 18:00 .Trash mail01:~# ls -la /home/vpopmail/domains/cbstest.com/postmaster/Maildir/ totale 24 drwx-- 5 vpopmail vchkpw 4096 3 mar 18:00 . drwx-- 3 vpopmail vchkpw 4096 3 mar 17:59 .. drwx-- 2 vpopmail vchkpw 4096 3 mar 17:59 cur -rw--- 1 root root 14 3 mar 18:00 maildirsize drwx-- 2 vpopmail vchkpw 4096 3 mar 17:59 new drwx-- 2 vpopmail vchkpw 4096 3 mar 18:00 tmp In this situation my IMAP server (dovecot) is unable to know my quote and more if I try to remove a messagges returns an error. When an e-mail come in my account the owner of maildirsize file returns the right: mail01:/home/vpopmail/domains/cbshosting.eu/alessio/Maildir# ls -la totale 72 drwx-- 8 vpopmail vchkpw 4096 3 mar 18:14 . drwx-- 3 vpopmail vchkpw 4096 3 mar 18:00 .. drwx-- 2 vpopmail vchkpw 4096 3 mar 18:13 cur drwx-- 5 vpopmail vchkpw 4096 3 mar 18:10 .Drafts -rw--- 1 vpopmail vchkpw33 3 mar 18:14 maildirsize drwx-- 2 vpopmail vchkpw 4096 3 mar 18:14 new drwx-- 5 vpopmail vchkpw 4096 3 mar 18:10 .Spam -rw--- 1 vpopmail vchkpw18 3 mar 18:00 subscriptions drwx-- 2 vpopmail vchkpw 4096 3 mar 18:14 tmp drwx-- 5 vpopmail vchkpw 4096 3 mar 18:10 .Trash There is a solution to this problem? Thanks -- Alessio Cecchi is: @ ILS - http://www.linux.it/~alessice/ on LinkedIn - http://www.linkedin.com/in/alessice Assistenza Sistemi GNU/Linux - http://www.cecchi.biz/ @ PLUG - ex-Presidente, adesso senatore a vita, http://www.prato.linux.it @ LOLUG - Socio http://www.lolug.net !DSPAM:4b8ea7df32711789211690!
Re: [vchkpw] vmoduser in 5.4.30 set wrong permission on maildirsize file
Alessio Cecchi ha scritto: Hi, I'm testing the latest stable release of vpopmail. vusaged is disable. I have found this issue, when I change the quota via vmoduser the owner of maildirsize file becomes root:root instead of vpopmail:vchkpw mail01:~# /home/vpopmail/bin/vadddomain cbstest.com password mail01:~# ls -la /home/vpopmail/domains/cbstest.com/postmaster/Maildir/ totale 24 drwx-- 5 vpopmail vchkpw 4096 3 mar 17:59 . drwx-- 3 vpopmail vchkpw 4096 3 mar 17:59 .. drwx-- 2 vpopmail vchkpw 4096 3 mar 17:59 cur -rw--- 1 vpopmail vchkpw 15 3 mar 17:59 maildirsize drwx-- 2 vpopmail vchkpw 4096 3 mar 17:59 new drwx-- 2 vpopmail vchkpw 4096 3 mar 17:59 tmp mail01:~# /home/vpopmail/bin/vadduser ales...@cbstest.com password mail01:~# ls -la /home/vpopmail/domains/cbstest.com/alessio/Maildir/ totale 24 drwx-- 5 vpopmail vchkpw 4096 3 mar 18:00 . drwx-- 3 vpopmail vchkpw 4096 3 mar 18:00 .. drwx-- 2 vpopmail vchkpw 4096 3 mar 18:00 cur -rw--- 1 vpopmail vchkpw 15 3 mar 18:00 maildirsize drwx-- 2 vpopmail vchkpw 4096 3 mar 18:00 new drwx-- 2 vpopmail vchkpw 4096 3 mar 18:00 tmp mail01:~# /home/vpopmail/bin/vmoduser -q 50M cbstest.com mail01:~# ls -la /home/vpopmail/domains/cbstest.com/alessio/Maildir/ totale 52 drwx-- 8 vpopmail vchkpw 4096 3 mar 18:00 . drwx-- 3 vpopmail vchkpw 4096 3 mar 18:00 .. drwx-- 2 vpopmail vchkpw 4096 3 mar 18:00 cur drwx-- 5 vpopmail vchkpw 4096 3 mar 18:00 .Drafts -rw--- 1 root root 14 3 mar 18:00 maildirsize drwx-- 2 vpopmail vchkpw 4096 3 mar 18:00 new drwx-- 5 vpopmail vchkpw 4096 3 mar 18:00 .Spam -rw--- 1 vpopmail vchkpw 18 3 mar 18:00 subscriptions drwx-- 2 vpopmail vchkpw 4096 3 mar 18:00 tmp drwx-- 5 vpopmail vchkpw 4096 3 mar 18:00 .Trash mail01:~# ls -la /home/vpopmail/domains/cbstest.com/postmaster/Maildir/ totale 24 drwx-- 5 vpopmail vchkpw 4096 3 mar 18:00 . drwx-- 3 vpopmail vchkpw 4096 3 mar 17:59 .. drwx-- 2 vpopmail vchkpw 4096 3 mar 17:59 cur -rw--- 1 root root 14 3 mar 18:00 maildirsize drwx-- 2 vpopmail vchkpw 4096 3 mar 17:59 new drwx-- 2 vpopmail vchkpw 4096 3 mar 18:00 tmp In this situation my IMAP server (dovecot) is unable to know my quote and more if I try to remove a messagges returns an error. When an e-mail come in my account the owner of maildirsize file returns the right: mail01:/home/vpopmail/domains/cbshosting.eu/alessio/Maildir# ls -la totale 72 drwx-- 8 vpopmail vchkpw 4096 3 mar 18:14 . drwx-- 3 vpopmail vchkpw 4096 3 mar 18:00 .. drwx-- 2 vpopmail vchkpw 4096 3 mar 18:13 cur drwx-- 5 vpopmail vchkpw 4096 3 mar 18:10 .Drafts -rw--- 1 vpopmail vchkpw33 3 mar 18:14 maildirsize drwx-- 2 vpopmail vchkpw 4096 3 mar 18:14 new drwx-- 5 vpopmail vchkpw 4096 3 mar 18:10 .Spam -rw--- 1 vpopmail vchkpw18 3 mar 18:00 subscriptions drwx-- 2 vpopmail vchkpw 4096 3 mar 18:14 tmp drwx-- 5 vpopmail vchkpw 4096 3 mar 18:10 .Trash There is a solution to this problem? Thanks I have found that the problem come out only when vmoduser is used for the enterire domain: /home/vpopmail/bin/vmoduser -q 6M cbstest.com - PROBLEM /home/vpopmail/bin/vmoduser -q 6M ales...@cbstest.com - OK mail01:/home/vpopmail/domains/cbstest.com/alessio/Maildir# /home/vpopmail/bin/vmoduser -q 6M cbstest.com mail01:/home/vpopmail/domains/cbstest.com/alessio/Maildir# ls -lha totale 72K drwx-- 8 vpopmail vchkpw 4,0K 3 mar 18:18 . drwx-- 3 vpopmail vchkpw 4,0K 3 mar 18:00 .. drwx-- 2 vpopmail vchkpw 4,0K 3 mar 18:14 cur drwx-- 5 vpopmail vchkpw 4,0K 3 mar 18:10 .Drafts -rw--- 1 root root 19 3 mar 18:18 maildirsize drwx-- 2 vpopmail vchkpw 4,0K 3 mar 18:14 new drwx-- 5 vpopmail vchkpw 4,0K 3 mar 18:10 .Spam -rw--- 1 vpopmail vchkpw 18 3 mar 18:00 subscriptions drwx-- 2 vpopmail vchkpw 4,0K 3 mar 18:18 tmp drwx-- 5 vpopmail vchkpw 4,0K 3 mar 18:14 .Trash mail01:/home/vpopmail/domains/cbstest.com/alessio/Maildir# /home/vpopmail/bin/vmoduser -q 6M ales...@cbstest.com mail01:/home/vpopmail/domains/cbstest.com/alessio/Maildir# ls -lha totale 72K drwx-- 8 vpopmail vchkpw 4,0K 3 mar 18:19 . drwx-- 3 vpopmail vchkpw 4,0K 3 mar 18:00 .. drwx-- 2 vpopmail vchkpw 4,0K 3 mar 18:14 cur drwx-- 5 vpopmail vchkpw 4,0K 3 mar 18:10 .Drafts -rw--- 1 vpopmail vchkpw 19 3 mar 18:19 maildirsize drwx-- 2 vpopmail vchkpw 4,0K 3 mar 18:14 new drwx-- 5 vpopmail vchkpw 4,0K 3 mar 18:10 .Spam -rw--- 1 vpopmail vchkpw 18 3 mar 18:00 subscriptions drwx-- 2 vpopmail vchkpw 4,0K 3 mar 18:19 tmp drwx-- 5 vpopmail vchkpw 4,0K 3 mar 18:14 .Trash Thanks -- Alessio Cecchi is: @ ILS - http://www.linux.it/~alessice/ on LinkedIn - http://www.linkedin.com/in/alessice Assistenza Sistemi GNU/Linux - http://www.cecchi.biz/ @ PLUG - ex-Presidente, adesso senatore a vita,
Re: [vchkpw] vmoduser set quota is fail
-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
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 \
Re: [vchkpw] vmoduser segmentation fault possible vpasswd file corrupt?
Hi I just wanted to follow up (seems like very few people who figure out an issue themselves do): If anyone else gets this error. Check you vpasswd file for extra \n's and the end of the file. I'd think that this would be more a common problem for everyone. Seems only to have issues with domains with somewhat large amounts of users (499 in this particular domain's case). After I deleted the trailing newlines the standard vpopmail commandline, qmailadmin vqadmin tools act more sanely. Good luck and keep up the good work! Jeff Jeffrey D. Gordon wrote: I apologize in advance as a Google search didn't bring anything up that was helpful. I'm having issues with one domain for modifications to the vpasswd file and qmailadmin file. Any time I run a vpopmail program on this one domain I'm getting a segmentation fault. It's an unusually large amount of users for one of our domains, and this problem has happened before For example here a not-so typical session (vmoduser options removed as well as domain email address): [EMAIL PROTECTED]:~# ~vpopmail/bin/vmoduser -v version: 5.4.20 . . (options deleted) . [EMAIL PROTECTED]:~# cd ~vpopmail/domains/.org/ [EMAIL PROTECTED]:/home/vpopmail/domains/.org# wc -l vpasswd 501 vpasswd [EMAIL PROTECTED]:/home/vpopmail/domains/.org# ~vpopmail/bin/vmoduser -a [EMAIL PROTECTED] Segmentation fault Are there any utilities that I can run to check the state of the vpasswd file? It seems that the cdb is being created with no issues and an 'eyeball look' at the file doesn't have anything outstanding, but there are 500 lines and as you can imagine the fields start to blur :-) Server system: Ubuntu Linux Server 7.04 Quad Core Xeon 4 gigs of RAM Qmail-1.03 vpopmail-5.4.21 (not sure why vmoduser version reads 5.4.20) Thanks for any advice! Jeff -- Jeffrey D. Gordon Sr. Programmer/Network Administrator iThinc.net - Dynamic Media www.iThinc.net
[vchkpw] vmoduser segmentation fault possible vpasswd file corrupt?
I apologize in advance as a Google search didn't bring anything up that was helpful. I'm having issues with one domain for modifications to the vpasswd file and qmailadmin file. Any time I run a vpopmail program on this one domain I'm getting a segmentation fault. It's an unusually large amount of users for one of our domains, and this problem has happened before For example here a not-so typical session (vmoduser options removed as well as domain email address): [EMAIL PROTECTED]:~# ~vpopmail/bin/vmoduser -v version: 5.4.20 . . (options deleted) . [EMAIL PROTECTED]:~# cd ~vpopmail/domains/.org/ [EMAIL PROTECTED]:/home/vpopmail/domains/.org# wc -l vpasswd 501 vpasswd [EMAIL PROTECTED]:/home/vpopmail/domains/.org# ~vpopmail/bin/vmoduser -a [EMAIL PROTECTED] Segmentation fault Are there any utilities that I can run to check the state of the vpasswd file? It seems that the cdb is being created with no issues and an 'eyeball look' at the file doesn't have anything outstanding, but there are 500 lines and as you can imagine the fields start to blur :-) Server system: Ubuntu Linux Server 7.04 Quad Core Xeon 4 gigs of RAM Qmail-1.03 vpopmail-5.4.21 (not sure why vmoduser version reads 5.4.20) Thanks for any advice! Jeff -- Jeffrey D. Gordon Sr. Programmer/Network Administrator iThinc.net - Dynamic Media www.iThinc.net
Re: [vchkpw] vmoduser -w
Here's the lowdown: disable_imap: disables IMAP from all IPs except those listed in vchkpw.c as webmail servers. disable_pop: same as above, but for POP disable_webmail: disables IMAP and POP access from the webmail servers, regardless of the disable_imap and disable_pop settings. And, if I remember well, SqWebmail will honori the disable_webmail flag and deny access if it's set Regards Edoardo Serra WeBRainstorm - IT Consulting
[vchkpw] vmoduser -w
Title: vmoduser -w Sorry if I just haven't been able to find the answer to this. I see that vmoduser -w is already in place to ( set no web mail access flag ) but I see no references to which web mail interface this was designed to be used with. Is this just a placeholder for future use, or is there a web mail package that currently ties into this check during auth? TIA jason attachment: winmail.dat
Re: [vchkpw] vmoduser -w
Jason Wilkinson wrote: Sorry if I just haven't been able to find the answer to this. I see that vmoduser -w is already in place to ( set no web mail access flag ) but I see no references to which web mail interface this was designed to be used with. Is this just a placeholder for future use, or is there a web mail package that currently ties into this check during auth? TIA jason Hi, It removes imap access from 127.0.0.1 (or what ever you compile in, 127 is default) if you also use the disable imap flag. ie - disable imap but allow it from 127.0.0.1 for webmail use. disable imap and disable webmail to remove all imap access. Regards, Rick
Re: [vchkpw] vmoduser -w
On Sep 28, 2005, at 9:15 AM, Rick Macdougall wrote: It removes imap access from 127.0.0.1 (or what ever you compile in, 127 is default) if you also use the disable imap flag. ie - disable imap but allow it from 127.0.0.1 for webmail use. disable imap and disable webmail to remove all imap access. Here's the lowdown: disable_imap: disables IMAP from all IPs except those listed in vchkpw.c as webmail servers. disable_pop: same as above, but for POP disable_webmail: disables IMAP and POP access from the webmail servers, regardless of the disable_imap and disable_pop settings. -- Tom Collins - [EMAIL PROTECTED] QmailAdmin: http://qmailadmin.sf.net/ Vpopmail: http://vpopmail.sf.net/ You don't need a laptop to troubleshoot high-speed Internet: sniffter.com
[vchkpw] vmoduser usage
I'd like to know the difference of vmoduser options listed below. -s ( set no smtp access flag ) -r ( set no external relay flag )
Re: [vchkpw] vmoduser usage
On Feb 4, 2005, at 1:57 AM, Takeshi Nishioka wrote: I'd like to know the difference of vmoduser options listed below. -s ( set no smtp access flag ) -r ( set no external relay flag ) -s disables SMTP AUTH, -r will disable roaming users (pop before smtp). I've just updated the help for vmoduser to be more helpful. The new help reads as follows (email me if you have any other ideas to make it clearer): 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) [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 ) What do you guys think of adding -D, -P, -S, -W, -I, -B, -O, -R, -A and -U to clear the matching flags above? Unfortunately, there's no easy converse for the user flags, except maybe for -5 to -8 (leaving room for a V_USER4 at some point). -- 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/
Re: [vchkpw] vmoduser error
On Tuesday 01 February 2005 7:32 pm, Michael Bowe wrote: - Original Message - From: Tom Collins [EMAIL PROTECTED] I've been thinking about modifying vpopmail to use directory names like @a, @b, @c, etc. instead of a, b, c so that we could allow one-character user directories in all cases. I don't know how we'd make that work with existing directory structures though. Another solution would be to hash all usernames, so there weren't any users in the top directory. I guess we'd still run some risks of qmailadmin creating a mailing list or autoresponder with the same directory name and then later deleting it. I have often wished the directory hashing worked in a more simple/logical fashion We choose what looked to be the most efficent method of storing the directories and attempted to automate as much as possible. Is the complexity of the current system really required? I think so. So did all the developers who worked on the code. Our testing showed that it was required. It is so complex that none of the developers even appear to understand how it works! I do. The documentation states that vpopmail uses a self balancing tree that is able to support up to 23 million domains, each with up to 23 million users. However I am a bit doubtful about the self balancing part. For example if you add some domains and then go back and delete them later, further new domains dont get added to these now-vacant parts of the tree You are right. The algorythm does not prior deleted entries and reuse them. Since we have 23 million directory slots to use, we decided not to bother with looking for empty directory slots. Just create a new one. On other (non-vpopmail) virtual mail systems that I have used, the hashing system is typically much more simple - with the sysadmin choosing how many levels of hashing were required, and then just hashing the dirs using the leading portions of the username/domain eg userhash level of 1 means all user dirs would be hashed like this exampledomain.com\ a/then all the usernames starting with a b/then all the usernames starting with b c/then all the usernames starting with c etc a userhash level of 2 means that user dirs would be hashed like this exampledomain.com/ a/aa/then all the usernames starting with aa a/ab/then all the usernames starting with ab a/ac/then all the usernames starting with ac etc same sort of system could be used for a domainhash There is no disputing that this system would end up having some dirs with more entries than others, but even on a system with many user accounts, probably two or at the most three level of hashing would prevent any single dir from becoming excessively large. The current vpopmail system doesn't seem to balance the dirs evenly anyway, so it is not like we would be loosing any functionality there. Having a logical directory layout like this also simplifies other issues. Eg recovering from a corruption in the file/db that stores the hashing info, or moving domains/accounts between servers. Your proposed algorythm is the problem we were trying to solve. One large vpopmail site had broken up their directories like you suggested. But they were having heavy disk I/O which they finally tracked down to the OS walking through the directory structure. So we came up with current system. They both were benchmarked against each other. The winner was to not use more than 300 sub directories in any one directory. Hope that helps explain why it was built this way. Ken Jones inter7.com Michael.
Re: [vchkpw] vmoduser error
On Jan 31, 2005, at 8:07 PM, Carl Davis wrote: vmoduser -q NOQUOTA domain.org gives me: ERROR: Illegal username I have read several places that this should work? Am I doing something wrong? It's choking on a one-letter username. If vpopmail is compiled with --enable-users-big-dir, it will store the user directories in subdirectories after the first 100 users. Having a one-letter username would conflict with that hashing (one of the first 100 user directories could later turn into a hash directory which would be deleted if the user was deleted). I've been thinking about modifying vpopmail to use directory names like @a, @b, @c, etc. instead of a, b, c so that we could allow one-character user directories in all cases. I don't know how we'd make that work with existing directory structures though. Another solution would be to hash all usernames, so there weren't any users in the top directory. I guess we'd still run some risks of qmailadmin creating a mailing list or autoresponder with the same directory name and then later deleting it. If, in your account migration, you set up a different type of directory structure where one-letter usernames won't be a problem, then you can search the source for #ifdef USERS_BIG_DIR sections and remove the ifdefs that limit one-letter usernames (for your vmoduserproblem, it's in vcheck-vqpw() in vpopmail.c). -- 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/
Re: [vchkpw] vmoduser error
- Original Message - From: Tom Collins [EMAIL PROTECTED] I've been thinking about modifying vpopmail to use directory names like @a, @b, @c, etc. instead of a, b, c so that we could allow one-character user directories in all cases. I don't know how we'd make that work with existing directory structures though. Another solution would be to hash all usernames, so there weren't any users in the top directory. I guess we'd still run some risks of qmailadmin creating a mailing list or autoresponder with the same directory name and then later deleting it. I have often wished the directory hashing worked in a more simple/logical fashion Is the complexity of the current system really required? It is so complex that none of the developers even appear to understand how it works! The documentation states that vpopmail uses a self balancing tree that is able to support up to 23 million domains, each with up to 23 million users. However I am a bit doubtful about the self balancing part. For example if you add some domains and then go back and delete them later, further new domains dont get added to these now-vacant parts of the tree On other (non-vpopmail) virtual mail systems that I have used, the hashing system is typically much more simple - with the sysadmin choosing how many levels of hashing were required, and then just hashing the dirs using the leading portions of the username/domain eg userhash level of 1 means all user dirs would be hashed like this exampledomain.com\ a/then all the usernames starting with a b/then all the usernames starting with b c/then all the usernames starting with c etc a userhash level of 2 means that user dirs would be hashed like this exampledomain.com/ a/aa/then all the usernames starting with aa a/ab/then all the usernames starting with ab a/ac/then all the usernames starting with ac etc same sort of system could be used for a domainhash There is no disputing that this system would end up having some dirs with more entries than others, but even on a system with many user accounts, probably two or at the most three level of hashing would prevent any single dir from becoming excessively large. The current vpopmail system doesn't seem to balance the dirs evenly anyway, so it is not like we would be loosing any functionality there. Having a logical directory layout like this also simplifies other issues. Eg recovering from a corruption in the file/db that stores the hashing info, or moving domains/accounts between servers. Michael.
[vchkpw] vmoduser
Hello list, I was playing around with vmoduser today and couldn't figure out some of its flags' usage. Could someone tell me what NO_DIALUP (-u), NO_RELAY (-r) and V_USER[0-3] (-(0-3)) do? If there's any documentation available somewhere, please let me know. :) When I set some flags on a domain with vmoddomlimits, as per vmoduser parameter list says: vmoduser: usage: [options] email_addr or domain (for the entire domain) ... -x ( clear all flags ) I wanted to clear all flags for that entire domain with vmoduser -x domain, however the flags remain untouched. The only way I could remove the flags is by using vmoddomlimits (for example -D) as well. Perhaps it should be documented somewhere that: to set/reset/clear flags, we need to use the same tool. Otherwise it wouldn't work. Unless these flags are merged for both vmoduser and vmoddomlimits so they can be complementary to each other. Redundant though. IMO, vmoduser should follow what vmoddomlimits does when dealing with entire domain. If you set flags for entire domain by using vmoduser, vuserinfo will NOT show: smtp access is closed (*) * = set by domain-wide limits which I believe to be the proper behaviour for entire domain's flags. Regards, Andryan
Re: [vchkpw] vmoduser
On Nov 27, 2004, at 11:54 PM, Andryan wrote: I was playing around with vmoduser today and couldn't figure out some of its flags' usage. Could someone tell me what NO_DIALUP (-u), NO_RELAY (-r) and V_USER[0-3] (-(0-3)) do? If there's any documentation available somewhere, please let me know. :) If you have POP before SMTP set (roaming users), users with NO_RELAY will not be able to use POP before SMTP. The NO_DIALUP flag and V_USER[0-3] flags aren't used anywhere in vpopmail -- they're there for other code that uses the vpopmail user database. When I set some flags on a domain with vmoddomlimits, as per vmoduser parameter list says: vmoduser: usage: [options] email_addr or domain (for the entire domain) ... -x ( clear all flags ) I wanted to clear all flags for that entire domain with vmoduser -x domain, however the flags remain untouched. The only way I could remove the flags is by using vmoddomlimits (for example -D) as well. That's a good point. vmoduser always modifies the user's flags, so it should say something like for all current users in domain instead. -- 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/
Re: [vchkpw] vmoduser not working
Em Seg, 2004-02-09 às 16:57, Tom Collins escreveu: Please try upgrading to 5.4.0. http://vpopmail.sf.net/ Why the page at Inter7 is so old? Aren't they involved any more? -- [] Mauricio Teixeira - Maceió/AL/Brazil [] * Este e-mail serve apenas para listas!!! * [] * This e-mail is for mailing lists only!!! *
Re: [vchkpw] vmoduser not working
Em Seg, 2004-02-09 às 16:57, Tom Collins escreveu: I'm using vpopmail-5.2.1 with MySQL. 'vmoduser' seems not to work. Please try upgrading to 5.4.0. http://vpopmail.sf.net/ I'll think about it later, thanks. But, is there a solution for my current vesion (5.2.1) ??? -- [] Mauricio Teixeira - Maceió/AL/Brazil [] * Este e-mail serve apenas para listas!!! * [] * This e-mail is for mailing lists only!!! *
[vchkpw] vmoduser not working
I'm using vpopmail-5.2.1 with MySQL. 'vmoduser' seems not to work. vmoduser -u -d -p -w -i -b -r [EMAIL PROTECTED] After issuing the command, the user still can get POP access and messages sent don't bounce. 'qmail-pop3d' is the POP server. What's wrong? -- [] Mauricio Teixeira - Maceió/AL/Brazil [] * Este e-mail serve apenas para listas!!! * [] * This e-mail is for mailing lists only!!! *
Re: [vchkpw] vmoduser not working
On Feb 9, 2004, at 11:37 AM, Mauricio Teixeira (listas) wrote: I'm using vpopmail-5.2.1 with MySQL. 'vmoduser' seems not to work. vmoduser -u -d -p -w -i -b -r [EMAIL PROTECTED] After issuing the command, the user still can get POP access and messages sent don't bounce. 'qmail-pop3d' is the POP server. What's wrong? Please try upgrading to 5.4.0. http://vpopmail.sf.net/ I'm not sure if there were problems with editing user permissions with 5.2.1, but there have been many changes between then and the 5.4.0 release. -- Tom Collins - [EMAIL PROTECTED] QmailAdmin: http://qmailadmin.sf.net/ Vpopmail: http://vpopmail.sf.net/ Info on the Sniffter handheld Network Tester: http://sniffter.com/
Re: [vchkpw] vmoduser fails with --enable-postgres=y
- Original Message - From: Juan Alonso To: [EMAIL PROTECTED] Sent: Friday, October 10, 2003 7:08 PM Subject: [vchkpw] vmoduser fails with --enable-postgres=y Hello list,I think I've found a bug with vpopmail (5.3.28) + postgresql (7.3).I have a working installation of qmail+vpopmail that sends and receives emails correctly, but whenever I try to modify an user account i get this error: mystique:~# /var/external/vpopmail/bin/vadddomain test2.com lalalaNOTICE: CREATE TABLE / PRIMARY KEY will create implicit index 'vpopmail_pkey' for table 'vpopmail'NOTICE: CREATE TABLE / UNIQUE will create implicit index 'vpopmail_id_key' for table 'vpopmail'mystique:~# /var/external/vpopmail/bin/vadduser [EMAIL PROTECTED] lalalamystique:~# /var/external/vpopmail/bin/vmoduser -C lelele [EMAIL PROTECTED]Error. Domain was not found in the assign fileNotice the blank space after "Domain".Vpopmail configure line: ./configure --prefix=/usr/local/external --enable-postgres=y --enable-roaming-users=y --enable-pgsql-logging=y --enable-clear-passwd=y [EMAIL PROTECTED] --enable-vpopuser=vpopexternalSystem = debian stable + linux 2.6.0-test6.Qmail has maildir++ patch applied and qmailqueue patch. Apart from that its a clean installation. I took a look at this It is definitely a bug. The limits codein pgsql.c's vauth_getpw() is trying to use a malloc'ed var "in_domain" after it has been free'ed. I opened a tracker on sourceforge for it [822175] Michael.
[vchkpw] vmoduser does not create maildirsize
Hi, I reinstalled vpopmail 5.2.1 with quota-support. The Mailserver is running for at least 1 Year now without quota, but for one single domain I have to enable quota. I tried to change the quota for one single user: /home/vpopmail/bin/vmoduser -q 1S [EMAIL PROTECTED] then the line in /home/vpopmail/domains/bla.com/vpasswd is changed from NOQUOTA to 1S But the necessary file in /home/vpopmail/domains/bla.com/alexander.bruns/Maildir/maildirsize is not generated? Is this the default behaviour of vmoduser and vsetuserquota? Do I habe to do a manuel maildirmake -q 1S /home/vpopmail/domains/bla.com/alexander.bruns/Maildir/ ? for each user I want to add quota support to? Greetings Alex
[vchkpw] vmoduser fails with --enable-postgres=y
Hello list, I think I've found a bug with vpopmail (5.3.28) + postgresql (7.3). I have a working installation of qmail+vpopmail that sends and receives emails correctly, but whenever I try to modify an user account i get this error: mystique:~# /var/external/vpopmail/bin/vadddomain test2.com lalala NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index 'vpopmail_pkey' for table 'vpopmail ' NOTICE: CREATE TABLE / UNIQUE will create implicit index 'vpopmail_id_key' for table 'vpopmail' mystique:~# /var/external/vpopmail/bin/vadduser [EMAIL PROTECTED] lalala mystique:~# /var/external/vpopmail/bin/vmoduser -C lelele [EMAIL PROTECTED] Error. Domain was not found in the assign file Notice the blank space after "Domain". Vpopmail configure line: ./configure --prefix=/usr/local/external --enable-postgres=y --enable-roaming-users=y --enable-pgsql-logging=y --enable-clear-passwd=y [EMAIL PROTECTED] --enable-vpopuser=vpopexternal System = debian stable + linux 2.6.0-test6. Qmail has maildir++ patch applied and qmailqueue patch. Apart from that its a clean installation. Regards, Juan Alonso Art3mis.com pgp0.pgp Description: PGP signature
[vchkpw] vmoduser
first question:- is there any more explanationon the vmoduser usage like set no dialup flag, set bounce mail flag, set no external relay flag, set V_USER0 to V_USER3 flag second question:- if one user have two flag... and I just want to remote one of the flag..HOW tq -- Regards Kenneth Ling ranhill engineers and constructors sdn bhd
[vchkpw] vmoduser question
Hi, I would like to setup quota for every user in the domain xxx.ss. Could I use vmoduser -q 20MB xxx.ss? Is this 20MB for every user? thanks bird
Re: [vchkpw] vmoduser core dumps when using whole domain
On Monday, February 10, 2003, at 01:49 PM, Taylor Dondich wrote: I was using vpopmail 5.2 awhile ago and everything worked fine; however, after upgrading to 5.3.9, vmoduser now core dumps when you specify an entire domain to modify instead of just a specific e-mail address. Any ideas? I cannot reproduce this. Can you provide more information? Specfically: configure options if using cdb, a sample of the vpasswd file to see if that is broken Regards, Bill Shupp
[vchkpw] vmoduser core dumps when using whole domain
I was using vpopmail 5.2 awhile ago and everything worked fine; however, after upgrading to 5.3.9, vmoduser now core dumps when you specify an entire domain to modify instead of just a specific e-mail address. Any ideas? Taylor Dondich
[vchkpw] vmoduser segfaults when modifying domain
When using vmoduser for entire domains, it segfaults. I'm using the vpopmail 5.3.9_1 port on FreeBSD. Any ideas? Taylor Dondich