Re: [vchkpw] Development versions

2002-09-22 Thread Justin R. Miller

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Said George Minich on Sat, Sep 21, 2002 at 10:33:07PM -0400:

 If you do not mind me asking, is anyone using the DEVELOPENT versions
 of Vpopmail and the addon packages in a development environment? If
 so, have you had problems and/or loss of data.  Based on the docs, the
 latest and greatest looks mostly like bugfixes.  Should I be concerned
 with rolling it out in a small ISP environment?

I'm using it in a medium ISP environment -- 13,000 domains.  This
includes qmailadmin, vqadmin, and courier. 

- -- 
[!] Justin R. Miller [EMAIL PROTECTED]
Encrypted email preferred (key 0xC9C40C31)

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.0.7 (FreeBSD)

iD8DBQE9jXMd94d6K8nEDDERAl2AAJ49spbfoEe0tfWZi5Z7tc9CMDV1OgCfbgfb
nSdml51yMYo4DI9qbQeQv6A=
=Iqcc
-END PGP SIGNATURE-



[vchkpw] server migration, password issues (again)

2002-09-22 Thread Werner Schalk

Hello,

it's me again.
My question is quite the same:
Is there a way to get the passwords
of local users as I am the admin
and want to migrate all users to
another server (which already IS setup
up)? 

At least some domains
should be set up on my new server
and therefor I need the passwords
of the users to create them...
otherwise each user must re-create
him- or herself. Is there a way to
do this? Which method is used to encrypt
the user's passwords?

Bye and thanks,
Werner.




[vchkpw] file permission error

2002-09-22 Thread Werner Schalk

Hello,

when I try to login using qmailadmin
I get the following error message:

file permission error
/home/vpopmail/domains/mydomain.com/postmaster/Maildir/1032672395.qw

Now the permissions of that directory look
like this:
server1:/home/vpopmail/domains/mydomain.com/postmaster/Maildir# ls -la
total 20
drwx--5 vpopmail vchkpw   4096 Aug 12 20:36 .
drwx--3 vpopmail vchkpw   4096 Aug  6 14:26 ..
drwx--2 vpopmail vchkpw   4096 Aug  6 14:26 cur
drwx--2 vpopmail vchkpw   4096 Aug  6 14:26 new
drwx--2 vpopmail vchkpw   4096 Aug  6 14:26 tmp

That's exactly how the other directories
look like...

What is messed up here?

Bye and thanks,
Werner.




Re: [vchkpw] Development versions

2002-09-22 Thread Michael Bowe

- Original Message -
From: Justin R. Miller [EMAIL PROTECTED]
To: VPOPMAIL LIST [EMAIL PROTECTED]
Sent: Sunday, September 22, 2002 5:37 PM
Subject: Re: [vchkpw] Development versions

 I'm using it in a medium ISP environment -- 13,000 domains.  This
 includes qmailadmin, vqadmin, and courier.

Hi Justin

If you dont mind me asking, I was curious as to what sort of spec hardware
are you using to support that number of domains?

Michael.





Re: [vchkpw] file permission error

2002-09-22 Thread H. D. Lee

On 2002.09.22_10:32:51_+, Werner Schalk wrote:
 Hello,
 

Hello,

 when I try to login using qmailadmin
 I get the following error message:
 
 file permission error
 /home/vpopmail/domains/mydomain.com/postmaster/Maildir/1032672395.qw
 
 Now the permissions of that directory look
 like this:
 server1:/home/vpopmail/domains/mydomain.com/postmaster/Maildir# ls -la
 total 20
 drwx--5 vpopmail vchkpw   4096 Aug 12 20:36 .
 drwx--3 vpopmail vchkpw   4096 Aug  6 14:26 ..
 drwx--2 vpopmail vchkpw   4096 Aug  6 14:26 cur
 drwx--2 vpopmail vchkpw   4096 Aug  6 14:26 new
 drwx--2 vpopmail vchkpw   4096 Aug  6 14:26 tmp
 
 That's exactly how the other directories
 look like...
 
 What is messed up here?
 

What is the permission, owner and group of the qmailadmin binary in the
cgi-bin directory? Is it setuid and setgid to vpopmail and vchkpw? Also
double check every directory that are parents to the Maildir for correct
permissions.

 Bye and thanks,
 Werner.
 

-- 
H. D. Lee



Re: [vchkpw] server migration, password issues (again)

2002-09-22 Thread H. D. Lee

On 2002.09.22_09:55:44_+, Werner Schalk wrote:
 Hello,
 

Hello,

 it's me again.  My question is quite the same:

Please post only once. This is free support public mailing list.

 Is there a way to get the passwords of local users as I am the admin
 and want to migrate all users to another server (which already IS
 setup up)? 

Did you read an answer to you question by Copy Wright? If you want to
setup each users on the server manually. You can retain the old password
of every  users by enabling the password learning feature of vpopmail.
Next time they login, vchkpw will learn their password.

The other solution is to copy the appropriate files: assign, vpasswd,
and their cdb versions. Pay attention to the uid and gid, they must be
the same for old and new servers, otherwise adjust accordingly.

 At least some domains should be set up on my new server and therefor I
 need the passwords of the users to create them...  otherwise each user
 must re-create him- or herself. Is there a way to do this? Which
 method is used to encrypt the user's passwords?
 

See above, either create users with blank password and enable
--enable-learn-password, or copy the files from the old server. The
method used is crypt(3). There is no way you can decode the password
back.

 Bye and thanks, Werner.
 

-- 
H. D. Lee




Re: [vchkpw] Development versions

2002-09-22 Thread Justin R. Miller

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Said Michael Bowe on Sun, Sep 22, 2002 at 07:09:24PM +1000:

 If you dont mind me asking, I was curious as to what sort of spec hardware
 are you using to support that number of domains?

Dual 2.2GHz Xeon with 1GB of RAMBUS RAM, RAID5 array of 10k RPM Seagate
Cheetah SCSI drives on a Mylex 170 controller, and a custom compiled
FreeBSD with all the software straight out of ports.  There are some
custom patches applied, such as a hack to make SMTP-after-POP3 use a
MySQL backend instead of a .cdb file, SMTP authentication, and qmail
EXTTODO.  It pushes about 500-600 POP3 logins per minute and we have an
external machine using IMAP webmail off of it as well as
externally-available IMAP and IMAPS.  However most everybody uses POP3. 

- -- 
[!] Justin R. Miller [EMAIL PROTECTED]
Encrypted email preferred (key 0xC9C40C31)

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.0.7 (FreeBSD)

iD8DBQE9jc8r94d6K8nEDDERAkiKAJ4gpRq2lZ3TtesjakdWDRxjtcTUxwCeKXq9
BDeUnILGzv56dhmbWYW/mPI=
=OTCn
-END PGP SIGNATURE-



[vchkpw] pop + mysql

2002-09-22 Thread Hugo Escobar

Hi list:

I know this must be covered in the archives. (Sorry!)


Any comments about what happened here?:


[root@sb01 bin]# telnet localhost 110
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
+OK [EMAIL PROTECTED]
user [EMAIL PROTECTED]
+OK
pass yyy
/home/vpopmail/bin/vchkpw: error while loading shared libraries:
libc.so.6: failed to map segment from shared object: Cannot allocate
memory
-ERR authorization failed
Connection closed by foreign host.

The scenario:
RedHat 7.3
Vpopmail-5.2.1
Mysql 3.23.49





Re: [vchkpw] pop + mysql

2002-09-22 Thread Steve Fulton

At 12:14 22/09/2002 -0400, Hugo Escobar wrote:

Yes, this is a common mistake.  The answer is in the archives.  Think 
softlimit.

-- Steve

Hi list:

I know this must be covered in the archives. (Sorry!)


Any comments about what happened here?:


[root@sb01 bin]# telnet localhost 110
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
+OK [EMAIL PROTECTED]
user [EMAIL PROTECTED]
+OK
pass yyy
/home/vpopmail/bin/vchkpw: error while loading shared libraries:
libc.so.6: failed to map segment from shared object: Cannot allocate
memory
-ERR authorization failed
Connection closed by foreign host.

The scenario:
RedHat 7.3
Vpopmail-5.2.1
Mysql 3.23.49




[vchkpw] Trailer / list signature.

2002-09-22 Thread Steve Fulton

As a way of alleviating the constant clutter of questions once-and-future 
asked, I propose putting a link to the list archives in a list 
signature.  It would be one or two lines extra, but is well worth 
it.  Another potential option is to have the list rules clearly laid out 
for new subscribers, or a monthly posting of the rules.

-- Steve




Re: [vchkpw] vpopmail bug?

2002-09-22 Thread Dzuy Nguyen

Ken,

I saw this problem in 5.2.1 too.  At times, the email parser function 
just appends an extra character
to the user name.  I've debugged it and saw that the entire string 
[EMAIL PROTECTED] was passed in
correctly, but at times the user name has extra character added to it. 
 I think it's either the memory
is not clean from previous call or there is some flaw in the algorithm 
itself.  I re-wrote the email
parser function using strok() and it worked for me.  Then I saw a new 
function in 5.3 and decided to
try it and it worked.

Ken Jones wrote:

Can anyone else reproduce this problem?
What version of courier-imap are you using?

The authlib/preauthvchkpw.c file is worth checking against
the one on the inter7 page. Mysql Quits can be caused by
a program not calling mysql_close before exiting. Which in
of itself would not cause an authentication failure. 

It's worth double checking your courier-imap configuration
file. The one that specifies max client connections. 

The vpopmail ChangeLog shows the change to the email
parser function and also reports that it fixed all known problems.

To really track down the problem, lots of debugging output is needed
to isolate what is ocurring. Hopefully leading to a solution :)

Ken Jones

On Friday 20 September 2002 04:20 pm, [EMAIL PROTECTED] wrote:

I upgraded to 5.3.8 - and am still seeing this behavior.

*sigh*

Is this limited to Courier?

Quoting Dzuy Nguyen [EMAIL PROTECTED]:

There is a bug in vpopmail's email parser function which adds extra
character to the end of user login
at times, when called by courier.  Version 5.3.x has a newer email
parser which seems to work.

[EMAIL PROTECTED] wrote:

I am seeing strange behaviour on my Qmail+VpopMail(w/ MySQL)+COurier
setup.

Authenticating via IMAP works 90% of the time, but doesn't for 10%.  I

don't

seem to be able to find any pattern as to it not working - it doesn't
consistently fail in any particular manner.   The problem happens with

multiple

mail clients.

This might be a courier related issue, if so, then please tell me.  Here
is

what

I see in the mysql logs, when I try to log in to an account with a login
of

doug

(actually, it this using a webmail client, so the login is
[EMAIL PROTECTED]):

 540747 Query   select pw_name, pw_passwd, pw_uid, pw_gid,
pw_gecos, pw_dir, pw_shell from vpopmail where pw_name = doug and
pw_domain = innerworldscuba.com
540747 Quit
020915  4:36:10  540748 Connect qmail@localhost on vpopmail
540748 Query   select pw_name, pw_passwd, pw_uid,

pw_gid,

pw_gecos, pw_dir, pw_shell from vpopmail where pw_name = doug and

pw_domain =

innerworldscuba.com

..all looks good. I show failed logins like this:

020917 12:56:28  590250 Query   select pw_name, pw_passwd, pw_uid,

pw_gid,

pw_gecos, pw_dir, pw_shell from vpopmail where pw_name = dougs and

pw_domain =

innerworldscuba.com
590250 Quit
020917 12:56:33  590251 Query   select pw_name, pw_passwd, pw_uid,

pw_gid,

pw_gecos, pw_dir, pw_shell from vpopmail where pw_name = dougs and

pw_domain =

innerworldscuba.com
590251 Quit
020917 12:56:38  590252 Query   select pw_name, pw_passwd, pw_uid,

pw_gid,

pw_gecos, pw_dir, pw_shell from vpopmail where pw_name = dougs and

pw_domain =

innerworldscuba.com
590252 Quit
020917 12:57:03  590253 Query   select pw_name, pw_passwd, pw_uid,

pw_gid,

pw_gecos, pw_dir, pw_shell from vpopmail where pw_name = dougs and

pw_domain =

innerworldscuba.com
590253 Quit

-or-020917 13:20:01  590609 Query   select pw_name, pw_passwd,
pw_uid, pw_gid, pw_gecos, pw_dir, pw_shell from vpopmail where pw_name
= dougu

and

pw_domain = innerworldscuba.com
590609 Quit
020917 13:20:06  590641 Query   select pw_name, pw_passwd, pw_uid,

pw_gid,

pw_gecos, pw_dir, pw_shell from vpopmail where pw_name = dougu and

pw_domain =

innerworldscuba.com
590641 Quit

-or-

020916 10:09:48  564000 Query   select pw_name, pw_passwd, pw_uid,

pw_gid,

pw_gecos, pw_dir, pw_shell from vpopmail where pw_name = dougt and

pw_domain =

innerworldscuba.com
564000 Quit


so it appears that the piece that parses the login isn't doing what
it

is

supposed too.  Is this vchpw.. or is this something else?

Courier is compiled with --enable-workarounds-for-imap-client-bugs if

that

matters.

Anyone else seen this?  Is this a know issue at all?

Thanks in advance for the help..

-Brendan





-
Webmail Services Provided by KPG Inc.
(http://www.kpginc.com)

-
Webmail Services Provided by KPG Inc.
(http://www.kpginc.com)









[vchkpw] configure: error: /etc/lib_deps does not exist - Read Arhives

2002-09-22 Thread Matt Darcy



Hello,

I am not sure if this message belongs in this list 
or the sqwebmail list but here goest.

I have running on a redhat 7.3 server, qmail-1.03 
vpopmail-5.2.1, qmailadmin and vqadmin. 

I am trying to compile sqwebmail.

I run ./configure 
--with-cgibindir=/usr/local/apache/cgi-bin/ 
--enable-imagedir=/usr/local/apache/icons --with-authvchkpw 
--without-ispell

all looks well until I get the error 

configure: error: /etc/lib_deps does not exist - 
upgrade vpopmail to the currentversion or fix the permissions on this 
fileconfigure: error: ./configure failed for authlib

I have read through the archive and notice a lot of 
comments towards solaris not liking ~vpopmail/etc/ and set 
vpopmail_home=/export/home/vpopmail

Even though I am running redhat I thought this 
maybe of interest as my vpopmail user is called "mailadmin" so I set 
vpopmail_home=/home/mailadmin and re-ran the configure script.

I still got the same error message.

I am wondering if 

1.) the fact that the vpopmail user is mailadmin 
?
2.) do I need to set vpopmail_home ?
3.) vpopmail is working so why is sqwebmail not 
picking up ~mailadmin/etc or /home/mailadmin/etc 

I am a little lost ?

Thanks,

Matt.