[vchkpw] vpopmail+mysql problem

2003-12-22 Thread Yalcin Cekic

Hi All,

I have a mail box with qmail+vpopmail(5.3.27)+mysql(4.0.15)+qmailadmin(1.0.27)
I recently receive a error like
vmysql: sql error[1]: Can't create database 'vpopmail'. Database
exists
or
delivery 39175: failure:
vmysql:_sql_error[1]:_Can't_create_database_'vpopmail'._Database_exists/vmysql:
_sql_error[3]:_No_Database_Selected/Sorry,_no_mailbox_here_by_that_name._vpopmail_
(#5.1.1)/ 

I dont know what is the problem.
Any help is welcome

Y.C



Re: [vchkpw] vpopmail+ldap developer?

2003-12-22 Thread Michael Bowe
- Original Message - 
From: Michael Bowe [EMAIL PROTECTED]
 I am currently in the process of producing documentation along with a set
of
 patches, so that we can ensure the LDAP module is good to go for the
 upcoming 5.4 release

OK that has been done.
Changes have been uploaded to CVS

I haven't heavily tested all the various parts of vpopmail+ldap, but in
general everything looks to be functional.

Michael.



Re: [vchkpw] Vpopmail 5.4.0-pre2 released

2003-12-22 Thread Erwin Hoffmann
Hi Tom,

please check my page http://.fehcom.de/qmail/smtpauth.html

for a patch against vcheckpw regarding C/R.

regards.
--eh.

At 21:24 21.12.03 -0700, Tom Collins wrote:
http://vpopmail.sf.net/

Thanks to many testers for uncovering bugs in the
last pre-release.  We should have some more
documentation (limits docs from Shupp) and LDAP
docs/bugfixes (from Bowe) before the final release.

*** Note that the configure option for setting the authentication
*** module has changed.  Instead of --enable-mysql, use
*** --enable-auth-module=mysql.

5.4.0-pre2 - released 21-Dec-03

Casey Zacek
- Keep vlimits_setflags() in vlimits.c when mysql-limits is
   enabled. [858109]
- Create maildirsize file when adding new user. [858994]

Tom Collins
- open_smtp_relay(): fix address conversion of ':::127.0.0.1'
   ip format, move code to function and replace calls to
   getenv(TCPREMOTEIP). [858586]
- When optimizing adddomain, rebuild users/cdb after each addition
   instead of postponing. [859707, temporary fix]
- Move maildir_to_email() from vdelivermail.c into vpopmail.c,
   replace dupe code that tries to do the same thing. [859098]
- Fix domain quota checks to work with hashed directories. [859098]
- Fix bug when calling format_maildirquota() with NOQUOTA.
- Document use of NOQUOTA in vadduser. [862315]
- Fix Makefile so `make install` works from checked out CVS. [863862]

Michael Bowe
- Revise configure script so choice of auth module is now OR
   rather than AND.
   Auth module selection now uses the format :
   --enable-auth-module=cdb|mysql|pgsql|ldap|sybase|oracle|activedir
   Rather than :
   --enable-mysql --enable-pgsql --enable-ldap etc
   If the old style is used, then the configure script will output
   and error and will advise the user of the updated syntax. [855691]
- Removed the code that created a vpopmail.config.sh file each
   time the configure script is run. This file is never used,
   and a more accurate result can be achieved by using
   ./config.status --recheck [860271]
- Update the vldap/qmailUser.schema so that it contains the
   required definition for 'clearPassword' [810999]
- Modify vpopbull, so that within each domain, the users are
   processed alphabetically. The idea behind this is to give the
   operator some idea of how far through the mailout we are.




Dr. Erwin Hoffmann | FEHCom | http://www.fehcom.de/
Wiener Weg 8, 50858 Cologne | T: +49 221 484 4923 | F: ...24


RE: [vchkpw] Vpopmail 5.4.0-pre2 released

2003-12-22 Thread Remo Mattei
Wrong address here is the right one

http://www.fehcom.de/qmail/smtpauth.html

to many  Erwin. 

Remo Mattei
Network Security Engineer
cell 801-808-unix
email [EMAIL PROTECTED]

-Original Message-
From: Erwin Hoffmann [mailto:[EMAIL PROTECTED] 
Sent: Monday, December 22, 2003 7:19 AM
To: [EMAIL PROTECTED]; vpopmail list
Cc: Tom Collins
Subject: Re: [vchkpw] Vpopmail 5.4.0-pre2 released

Hi Tom,

please check my page http://.fehcom.de/qmail/smtpauth.html

for a patch against vcheckpw regarding C/R.

regards.
--eh.

At 21:24 21.12.03 -0700, Tom Collins wrote:
http://vpopmail.sf.net/

Thanks to many testers for uncovering bugs in the
last pre-release.  We should have some more
documentation (limits docs from Shupp) and LDAP
docs/bugfixes (from Bowe) before the final release.

*** Note that the configure option for setting the authentication
*** module has changed.  Instead of --enable-mysql, use
*** --enable-auth-module=mysql.

5.4.0-pre2 - released 21-Dec-03

Casey Zacek
- Keep vlimits_setflags() in vlimits.c when mysql-limits is
   enabled. [858109]
- Create maildirsize file when adding new user. [858994]

Tom Collins
- open_smtp_relay(): fix address conversion of ':::127.0.0.1'
   ip format, move code to function and replace calls to
   getenv(TCPREMOTEIP). [858586]
- When optimizing adddomain, rebuild users/cdb after each addition
   instead of postponing. [859707, temporary fix]
- Move maildir_to_email() from vdelivermail.c into vpopmail.c,
   replace dupe code that tries to do the same thing. [859098]
- Fix domain quota checks to work with hashed directories. [859098]
- Fix bug when calling format_maildirquota() with NOQUOTA.
- Document use of NOQUOTA in vadduser. [862315]
- Fix Makefile so `make install` works from checked out CVS. [863862]

Michael Bowe
- Revise configure script so choice of auth module is now OR
   rather than AND.
   Auth module selection now uses the format :
   --enable-auth-module=cdb|mysql|pgsql|ldap|sybase|oracle|activedir
   Rather than :
   --enable-mysql --enable-pgsql --enable-ldap etc
   If the old style is used, then the configure script will output
   and error and will advise the user of the updated syntax. [855691]
- Removed the code that created a vpopmail.config.sh file each
   time the configure script is run. This file is never used,
   and a more accurate result can be achieved by using
   ./config.status --recheck [860271]
- Update the vldap/qmailUser.schema so that it contains the
   required definition for 'clearPassword' [810999]
- Modify vpopbull, so that within each domain, the users are
   processed alphabetically. The idea behind this is to give the
   operator some idea of how far through the mailout we are.




Dr. Erwin Hoffmann | FEHCom | http://www.fehcom.de/
Wiener Weg 8, 50858 Cologne | T: +49 221 484 4923 | F: ...24


[vchkpw] [semi-OT] Pop3 auth

2003-12-22 Thread Andrea Riela
Hi folks,
I need your suggestions.

I've to do that: I would open my smtp relay for pop3 users with ssl auth.
That is, the pop3 users couldn't use my smtp relay, pop3-ssl users ya.

I've to implement two vchkpw binaries? Or wich type of solution?
Could you send me your advices?
Thanks for patience and support
Regards
Andrea



Re: [vchkpw] Vpopmail 5.4.0-pre2 released

2003-12-22 Thread Oden Eriksson
måndagen den 22 december 2003 05.24 skrev Tom Collins:
 http://vpopmail.sf.net/

Hi Tom, I get this:

gcc -I. -Icdb  -g -O2 -Wall -c vpopmail.c
vpopmail.c: In function `open_smtp_relay':
vpopmail.c:2454: warning: unused variable `cp'

Here's the errors from compiling it against dietlibc:

diet -Os gcc -march=pentium -static -nostdinc -I. -Icdb  -Os 
-march=pentium -pipe -nostdinc -D_BSD_SOURCE -D_GNU_SOURCE -Wall -c 
vpopmail.c
vpopmail.c: In function `randltr':
vpopmail.c:560: warning: `random' is deprecated (declared at 
/usr/lib/dietlibc/include/stdlib.h:51)
vpopmail.c: In function `mkpasswd3':
vpopmail.c:588: warning: `srandom' is deprecated (declared at 
/usr/lib/dietlibc/include/stdlib.h:52)

But it compiles! I will test later on if it works too ;)

BTW. Very clean from warnings now, thanks! Also the configure OR thing is 
great!




Re: [vchkpw] [not-OT] Pop3 auth

2003-12-22 Thread Jeremy Kitchen
On Mon, 2003-12-22 at 08:30, Andrea Riela wrote:
 Hi folks,
 I need your suggestions.
 
 I've to do that: I would open my smtp relay for pop3 users with ssl auth.
 That is, the pop3 users couldn't use my smtp relay, pop3-ssl users ya.
 
 I've to implement two vchkpw binaries? Or wich type of solution?
 Could you send me your advices?

yes, two vchkpw binaries, one with and one without
--enable-roaming-users=y

-Jeremy
-- 
Jeremy Kitchen [EMAIL PROTECTED]



Re: [vchkpw] vchkpw +remote mysql +fail auth

2003-12-22 Thread Hlio Rubens Kamogawa
Sorry

If I didn't myself clear. When using SMTP AUTH, I run:

/var/qmail-in/bin/qmail-smtpd www.centralserver.com.br \
/var/vpopmail/bin/vchkpw /bin/true 21

And even so, I get the error message:
-ERR this user has no $HOME/Maildir

I changed the authtype var, so it would be always SMTP,
but it didn't solve my problem.

Regards,

Hlio Rubens Kamogawa
Central Server
http://www.centralserver.com.br
[EMAIL PROTECTED]
+55 41 324-1993

On Friday 19 December 2003 18:27, Casey Zacek wrote:
 Tom Collins wrote (at Fri, Dec 19, 2003 at 12:57:21PM -0700):
  On Friday, December 19, 2003, at 10:28  AM, H?lio Rubens Kamogawa 
wrote:
  I have tried to comment the code below the commentary but even so
   when I
  try to authenticate, vchkpw returns a error saying:
  -ERR this user has no $HOME/Maildir
 
  That's not a vpopmail error, that's a qmail-pop3d error.  It's
  quite normal for a POP3 connection to fail if the user's Maildir
  does not exist -- there isn't much you can do without one.
 
  When doing SMTP AUTH though, there isn't any reason why it should
  be necessary.

 I think the root of the problem here is that he's running qmail-pop3d
 and trying to use that for SMTP AUTH somehow.

 There's no reason to run POP3 on an SMTP only machine.

 Of course vchkpw will look for a user's Maildir if it's
 authenticating for POP3.  Try using qmail-smtpd with a patch for SMTP
 AUTH.

-- 



[vchkpw] R: [vchkpw] [not-OT] Pop3 auth

2003-12-22 Thread Andrea Riela
 yes, two vchkpw binaries, one with and one without 
 --enable-roaming-users=y

Hi Jeremy,
Thanks for your help.
What I've to do exactly? Sorry, I'm a newbie, I think :)
How I could create a second binary?
There's sybchrony between the two vchkpw?
I don't undestand, could you figure it out?

Thanks for patience and support
Regards
Andrea



Re: [vchkpw] R: [vchkpw] [not-OT] Pop3 auth

2003-12-22 Thread Jeremy Kitchen
On Mon, 2003-12-22 at 09:31, Andrea Riela wrote:
  yes, two vchkpw binaries, one with and one without 
  --enable-roaming-users=y
 
 Hi Jeremy,
 Thanks for your help.
 What I've to do exactly? Sorry, I'm a newbie, I think :)
 How I could create a second binary?
 There's sybchrony between the two vchkpw?
 I don't undestand, could you figure it out?

you run your ./configure once... with the --enable-roaming-users=y
option, then make the binaries using 'make'

vchkpw should be right there, so move it somewhere, like
/home/vpopmail/bin/vchkpw-with-roaming-users

then do a 'make clean' and re-run the ./configure without the
--enable-roaming-users=y, make, make install.

it's fairly simple.  Then you have two vchkpw binaries.  One with
roaming users, and one without.  I trust that you can determine the
rest.

-Jeremy

-- 
Jeremy Kitchen
Systems Administrator
[EMAIL PROTECTED]
Kitchen @ #qmail on EFNet - Join the party!
.
Inter7 Internet Technologies, Inc.
www.inter7.com
866.528.3530 toll free
847.492.0470 int'l
847.492.0632 fax
GNUPG key ID: 93BDD6CE



Re: [vchkpw] vchkpw +remote mysql +fail auth

2003-12-22 Thread Chris Ess
On Mon, 22 Dec 2003, [windows-1252] Hlio Rubens Kamogawa wrote:

 Sorry

 If I didn't myself clear. When using SMTP AUTH, I run:

 /var/qmail-in/bin/qmail-smtpd www.centralserver.com.br \
 /var/vpopmail/bin/vchkpw /bin/true 21

 And even so, I get the error message:
 -ERR this user has no $HOME/Maildir

[snip]

I did a grep -i on the error text and the only place I can find it on my
development server is in qmail-pop3d.c  So this would seem to be
POP3-specific.  (I could, of course, be wrong.  I'm only doing a cursory
glance here.)

This particular server is supposed to be SMTP-only, yes?  In that case, I
suggest turning off POP3 on this server (since having it there for the
time being would be pointless) and configuring whatever program you are
using to test this to use a different mailserver for POP3, e.g.  the one
that should be used for POP3 access.

Sincerely,


Chris Ess
System Administrator / CDTT (Certified Duct Tape Technician)


Re: [vchkpw] vchkpw +remote mysql +fail auth

2003-12-22 Thread Tom Collins
On Monday, December 22, 2003, at 08:20  AM, Hélio Rubens Kamogawa wrote:
If I didn't myself clear. When using SMTP AUTH, I run:

/var/qmail-in/bin/qmail-smtpd www.centralserver.com.br \
/var/vpopmail/bin/vchkpw /bin/true 21
And even so, I get the error message:
-ERR this user has no $HOME/Maildir
I changed the authtype var, so it would be always SMTP,
but it didn't solve my problem.
And I'll try to make myself clear.

That error message ONLY comes up in qmail-pop3d.  It does not appear 
elsewhere in the qmail source, and vpopmail will not generate it.  The 
only time you should see it is if qmail-pop3d is being run.  If you see 
it in the mail client, is the client perhaps trying to POP in before 
sending messages?  Some POP clients wait until they can successfully 
authenticate with a POP server before sending.

How are you testing SMTP AUTH?  I'd suggest manually telnetting to port 
25 and initiating an AUTH connection to see if it works.

This page includes lots of information on SMTP AUTH: 
http://www.fehcom.de/qmail/smtpauth.html

It also includes a patch toward the current version of vchkpw that 
should fix CRAM-MD5 auth (which doesn't work at the moment).  I'll be 
applying it to the CVS version soon, and it will be in the next 
vpopmail release.

--
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/


[vchkpw] Quick version question

2003-12-22 Thread Dean Henrichsmeyer
Building a production server today, 5.3.30 or 5.4.0-pre2 going to be
more stable? :)

Dean



Re: [vchkpw] Quick version question

2003-12-22 Thread Tom Collins
On Monday, December 22, 2003, at 09:54  AM, Dean Henrichsmeyer wrote:
Building a production server today, 5.3.30 or 5.4.0-pre2 going to be
more stable? :)
5.4.0-pre2 should be more stable than 5.3.30.  If you look at the 
ChangeLog, you'll see quite a few fixes between those two releases.

--
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] Help with rblsmtpd

2003-12-22 Thread webmaster
I think that might work.  Will give that a try.
Thanks!

 -Original Message-
 From: Jeremy Kitchen [mailto:[EMAIL PROTECTED] 
 Sent: Sunday, December 21, 2003 10:09 PM
 To: [EMAIL PROTECTED]
 Subject: RE: [vchkpw] Help with rblsmtpd
 
 
 On Sun, 2003-12-21 at 23:36, [EMAIL PROTECTED] wrote:
  Yes, I thought of different MX records as well but this would 
  necessitate running qmail on a separate server since I cannot run 2 
  instances of qmail-smtpd on the same port (25) on the same 
 server even 
  if each is using a different virtual IP.  At least I don't think I 
  can.
 
http://cr.yp.to/ucspi-tcp/tcpserver.html

you can specify an address for tcpserver to listen to.  Make one listen to
one address, and make another listen to the other address, then set up
different rules and such for each.

 Thanks for trying.  I am still trying to find out why is it that I 
 cannot post to the qmail list.

I had something similar to that happen to me once before, but I was able to
post from another email address, so that's what I did  Strange, indeed.

-Jeremy
-- 
Jeremy Kitchen [EMAIL PROTECTED]



[vchkpw] R: [vchkpw] [not-OT] Pop3 auth (and Courier-Imap)

2003-12-22 Thread Andrea Riela
 you run your ./configure once... with the 
 --enable-roaming-users=y option, then make the binaries using 'make'

Ok Jeremy, thanks for your help. I've created two binaries, like your
suggestions.
Now I've to install a pop3d-ssl daemon, I think Courier-Imap pop3ds
(correct?)
I'm trying to compile that, but I've a problem:

$ ./configure --with-piddir=/var/run
$ gmake (I've an OpenBSD system, but make it's the same)
...
ld: -lvpopmail: no match
collect2: ld returned 1 exit status
gmake[2]: *** [authvchkpw] Error 1
gmake[2]: Leaving directory `/src/courier-imap-2.2.1/authlib'
gmake[1]: *** [all] Error 2
gmake[1]: Leaving directory `/src/courier-imap-2.2.1/authlib'
gmake: *** [all-recursive] Error 1

Mmm ... Where is my mistake?

I've posted my question here, because

 NOTE


All questions regarding ANY vpopmail-related problems,
such as compiling/building failures, or login errors
should be referred to the vpopmail mailing list.
Vpopmail questions sent to the sqwebmail or Courier
mailing lists will be IGNORED.


Thanks for your patience and support
Regards
Andrea