[vchkpw] Quota domain

2002-08-28 Thread Marcos Dutra

Hi people


The vpopmail package has the domain quota default but, if apply the default 
quota in 1000 bytes por example in domain.com, it apply in each mailbox 
1000 bytes. 

Well is possible put 1000 bytes in a domain, not in a each mailbox? Per 
example if i have 10 mailbox, the maximum total of all mailbox is 1000 
bytes in this domain.


Thanks


Marcos Dutra



Re: [vchkpw] Quota domain

2002-08-28 Thread Eduardo Augusto Alvarenga

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Wed, 28 Aug 2002, Marcos Dutra wrote:

 The vpopmail package has the domain quota default but, if apply the default
 quota in 1000 bytes por example in domain.com, it apply in each mailbox
 1000 bytes.

 Well is possible put 1000 bytes in a domain, not in a each mailbox? Per
 example if i have 10 mailbox, the maximum total of all mailbox is 1000
 bytes in this domain.

Use a per-user domain basis, aplying system quotas to each user.

as vpopmail user do:
- --
$ sudo adduser quotauser # (add user setting it's homedir to \
~vpopmail/domains/quotauser)
$ sudo edquota quotauser # (set quota do 1000)
$ ~vpopmail/bin/vadddomain -u quotauser virtualdomain.psi.br
- --

Best Regards,

- -- 
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
 Eduardo A. Alvarenga - Analista de Suporte #179653
 Secretaria de Segurança  Pública do Estado do Pará
  Belém - Pará - (91) 223-4996 / 272-1611
 eduardo@{thrx.dyndns.org,segup.pa.gov.br}
- -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  OpenBSD Consultant: www.openbsd.org/support.html

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE9bOEapKK2uJoGDlMRAoSkAKCcszHiDog+2YmmZpz3Muyig/wiFQCfUDN/
lIhP+8lSG4anAI7Cq66RvmA=
=gU0n
-END PGP SIGNATURE-





Re: [vchkpw] Quota domain

2002-08-28 Thread Marcos Dutra


Hi Eduardo,

I will write in english because the other people didn't understand nothing =]

Well, i don't understand very well what you wrote but, i think in another 
solution them this...
Domain quota is very different then user quota, because i will management 
these domains, think more or less in 2000 domains, h this is the 
dead :-)


Marcos Dutra


Em Qua 28 Ago 2002 11:41, você escreveu:
 On Wed, 28 Aug 2002, Marcos Dutra wrote:
  The vpopmail package has the domain quota default but, if apply the
  default quota in 1000 bytes por example in domain.com, it apply in
  each mailbox 1000 bytes.
 
  Well is possible put 1000 bytes in a domain, not in a each mailbox?
  Per example if i have 10 mailbox, the maximum total of all mailbox is
  1000 bytes in this domain.

 Use a per-user domain basis, aplying system quotas to each user.

 as vpopmail user do:



Re: [vchkpw] Quota domain

2002-08-28 Thread Eduardo Augusto Alvarenga

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Wed, 28 Aug 2002, Marcos Dutra wrote:

 I will write in english because the other people didn't understand
 nothing =]

Since this is a vchkpw list, and vchkpw is written in english. It's ok to
write just in english. If you mind write me in portuguese in private.

 Well, i don't understand very well what you wrote but, i think in another
 solution them this...
 Domain quota is very different then user quota, because i will management
 these domains, think more or less in 2000 domains, h this is the
 dead :-)

I do not understand what is the problem behaving adding a user to each
domain. Aren't *YOU* going to manage this? So why not creating a script
such as

#/bin/sh
/usr/sbin/adduser -batch $1 vchkpw $1 -shell /sbin/nologin
/usr/sbin/edquota -p prebuild10mbuser $1
/home/vpopmail/bin/vadddomain -u $1 $2

running it like 'sh adddomainscript.sh quotauser domain.psi.br'. IMHO it
is not so hard to run this simple script to manage your domains in
conjunction with an web administration interface, suck as qmailadmin. 2000
simple users, *NOT* logging to your machine won't interfere on the
system's reliability.


Best Regards,

- -- 
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
 Eduardo A. Alvarenga - Analista de Suporte #179653
 Secretaria de Segurança  Pública do Estado do Pará
  Belém - Pará - (91) 223-4996 / 272-1611
 eduardo@{thrx.dyndns.org,segup.pa.gov.br}
- -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  OpenBSD Consultant: www.openbsd.org/support.html
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE9bPMMpKK2uJoGDlMRAoHIAJ9L9JRNaEn1f67rRysNpZxqugSGIACglSop
Xkm8Q2UAl6z6l81roV7JpUc=
=Owxg
-END PGP SIGNATURE-





[vchkpw] Moving from one machine to another

2002-08-28 Thread Eric Persson

I've been trying to move a vpopmail installation from one machine to 
another, but so far no luck. :/
I moved the /home/vpopmail directory and the database vpopmail. I also 
installed qmail and added vchkpw to the qmail-pop3d/run file and the 
pop3d seems to be running.

However I can not authenticate a user. The problem seems to be that the 
encrypted passwords doesnt match.
On the original machine the pw_passwd field of my testuser had the 
following string: X;mJRRXhPqoEw .
But when using  vpasswd to set the same password again it got the 
following string in pw_passwd: $1$L2fT4$jycbn1r5dlhEJclfgcZZt1

My knowledge about different encryptionmethods is limited, but is it the 
salt of the 2 different machines thats different? Or can I get hold of 
the cleartextpassword to update on the new machine with its salt?

Any help/hints/tips would be greatly appreciated and I can buy you a 
beer if you help me. ;)

Best regards,
Eric Persson





[vchkpw] vpopmail with ldap

2002-08-28 Thread Sunagawa Koji / $B:=@n(B $B9';y(B

Hi,all,

I found a bug that vpasswd can't change password
when I compiled with enable-ldap=y.

vpasswd say null pointer.


I made the patch for the bug.

---
--- vldap.c.origSat Apr  6 23:30:32 2002
+++ vldap.c Thu Aug 29 09:38:55 2002
@@ -286,6 +286,11 @@
ldap_value_free(vals);
   }

+  /* for pw_clear_passwd */
+  vpw.pw_clear_passwd = (char *)malloc((strlen( ) + 1));
+  memset((char *)vpw.pw_clear_passwd, 0, (strlen( ) + 1));
+  memcpy((char *)vpw.pw_clear_passwd, (char *)( ), strlen( ));
+
   return(vpw);
 }
 void vauth_end_getall()



---
Sunagawa Koji[EMAIL PROTECTED]
 Okinawa FreeBSD Users Group  http://www.ofug.net/~koj/