Re: [vchkpw] Unable to pop mails

2003-08-25 Thread Tanmaya Anand



Hi,
 
Thanks, it has authenticated, but is not fetching 
mail from my Maildir.
 
Regards,
Tanmaya

  - Original Message - 
  From: 
  Tom Collins 

  To: vpopmail list 
  Sent: Sunday, August 24, 2003 9:07 
  PM
  Subject: Re: [vchkpw] Unable to pop 
  mails
  On Sunday, August 24, 2003, at 05:16 AM, Tanmaya Anand 
  wrote:
  All the domains i have 
configured are wroking fine via sqwebmail. but i am unable to use it via any 
email clientlike 
Outlook Express.Make sure you 
  configure the email client to use the full email address as the 
  username:POP/IMAP user: [EMAIL PROTECTED]POP/IMAP server: 
  mail.domain.com--Tom 
  Collins[EMAIL PROTECTED]http://sniffter.com/ - info on the 
  Sniffter hand-held Network Tester


[vchkpw] Compiling courier-imap to work with vpopmail

2003-08-25 Thread Bård Tommy Nilsen



Hello
 
Trying to use 
courier-imap with vpopmail, but it fails
 
 
i use 
courier-imap-2.0.0
 
 
 
$ export 
CFLAGS="-DHAVE_OPEN_SMTP_RELAY"
$ ./configure --without-authdaemon 
--with-authvchkpw
$ make
 
then it 
fails
 
/usr/bin/ld: cannot 
find -lvpopmail*** Error code 1
 
Stop in 
/usr/home/bardtomm/courier-imap-2.0.0/authlib.*** Error code 
1
 
Stop in 
/usr/home/bardtomm/courier-imap-2.0.0/authlib.*** Error code 
1
 
Stop in 
/usr/home/bardtomm/courier-imap-2.0.0.
 
 
What could i be 
doing wrong ??
 
 
Bård 
Tommy


[vchkpw] Clear Passwords

2003-08-25 Thread Andrej Dragicevic
Hello List,

I want to get all passwords from vpopmail (ver. 5.2) accounts. If I use
vuserinfo with -p option, the function returns a crypted password. How
do I get clear password from the returned string, for example with
PHP???

TIA. 




Re: [vchkpw] Compiling courier-imap to work with vpopmail

2003-08-25 Thread Oden Eriksson
måndagen den 25 augusti 2003 12.13 skrev Bård Tommy Nilsen:
> Hello
>
> Trying to use courier-imap with vpopmail, but it fails
>
>
> i use courier-imap-2.0.0
>
>
>
> $ export CFLAGS="-DHAVE_OPEN_SMTP_RELAY"
> $ ./configure --without-authdaemon --with-authvchkpw
> $ make
>
> then it fails
>
> /usr/bin/ld: cannot find -lvpopmail
> *** Error code 1
>
> Stop in /usr/home/bardtomm/courier-imap-2.0.0/authlib.
> *** Error code 1
>
> Stop in /usr/home/bardtomm/courier-imap-2.0.0/authlib.
> *** Error code 1
>
> Stop in /usr/home/bardtomm/courier-imap-2.0.0.
>
>
> What could i be doing wrong ??
>
>
> Bård Tommy

Reading the docs?

Well..., you could do it like I do, check attached files.

-- 
Regards // Oden Eriksson, Deserve-IT.com

courier-imap
Description: application/shellscript
--- authlib/preauthvchkpw.c	2003-03-12 03:51:27.0 +0100
+++ authlib/preauthvchkpw.c.oden	2003-06-09 12:50:17.0 +0200
@@ -27,7 +27,7 @@
 static const char rcsid[]="$Id: preauthvchkpw.c,v 1.18 2003/03/12 02:45:55 mrsam Exp $";
 
 
-#undef HAVE_OPEN_SMTP_RELAY
+/* #undef HAVE_OPEN_SMTP_RELAY */
 /* Disabled, pending fix */
 
 int auth_vchkpw_pre(const char *userid, const char *service,
@@ -63,9 +63,9 @@
 make_user_dir(User, Domain, uid, gid);
 vpw=vauth_getpw(User, Domain);
 }
-#ifdef ENABLE_AUTH_LOGGING
+/* #ifdef ENABLE_AUTH_LOGGING */
 vset_lastauth(User, Domain, service);
-#endif
+/* #endif */
 
 }
 free(usercopy);
@@ -84,19 +84,19 @@
 if ( vpw->pw_gid & NO_POP ) {
 return(-1);
 } else {
-#ifdef HAVE_OPEN_SMTP_RELAY
+/* #ifdef HAVE_OPEN_SMTP_RELAY */
 /* open the relay to pop users */
 open_smtp_relay();
-#endif
+/* #endif */
 }
 } else if ( strcmp("imap", service) == 0 ) {
 if ( vpw->pw_gid & NO_IMAP ) {
 return(-1);
 } else {
-#ifdef HAVE_OPEN_SMTP_RELAY
+/* #ifdef HAVE_OPEN_SMTP_RELAY */
 /* open the relay to imap users */
 open_smtp_relay();
-#endif
+/* #endif */
 }
 }
 


Re: [vchkpw] Clear Passwords

2003-08-25 Thread Evren Yurtesen
unless you compiled in clear password support in vpopmail when you were
installing it, you can not get.
if you didnt compile in at first and now all your passwords are encrypted.
There is no way of getting the clearpassword for you.
why do you need it anyway?

On Mon, 25 Aug 2003, Andrej Dragicevic wrote:

> Hello List,
> 
> I want to get all passwords from vpopmail (ver. 5.2) accounts. If I use
> vuserinfo with -p option, the function returns a crypted password. How
> do I get clear password from the returned string, for example with
> PHP???
> 
> TIA. 
> 
> 
> 




Re: [vchkpw] Compiling courier-imap to work with vpopmail

2003-08-25 Thread Oden Eriksson
tisdagen den 26 augusti 2003 12.38 skrev Oden Eriksson:
> måndagen den 25 augusti 2003 12.13 skrev Bård Tommy Nilsen:
> > Hello
> >
> > Trying to use courier-imap with vpopmail, but it fails
> >
> >
> > i use courier-imap-2.0.0
> >
> >
> >
> > $ export CFLAGS="-DHAVE_OPEN_SMTP_RELAY"
> > $ ./configure --without-authdaemon --with-authvchkpw
> > $ make
> >
> > then it fails
> >
> > /usr/bin/ld: cannot find -lvpopmail
> > *** Error code 1
> >
> > Stop in /usr/home/bardtomm/courier-imap-2.0.0/authlib.
> > *** Error code 1
> >
> > Stop in /usr/home/bardtomm/courier-imap-2.0.0/authlib.
> > *** Error code 1
> >
> > Stop in /usr/home/bardtomm/courier-imap-2.0.0.
> >
> >
> > What could i be doing wrong ??
> >
> >
> > Bård Tommy
>
> Reading the docs?
>
> Well..., you could do it like I do, check attached files.

You should proably use this patch too (attached):

-- 
Regards // Oden Eriksson, Deserve-IT.comdiff -Naur courier-imap-1.6.2/courier-imap.sysvinit.in courier-imap-1.6.2.oden/courier-imap.sysvinit.in
--- courier-imap-1.6.2/courier-imap.sysvinit.in	2002-11-17 09:54:28.0 +0100
+++ courier-imap-1.6.2.oden/courier-imap.sysvinit.in	2002-12-31 14:12:24.0 +0100
@@ -1,4 +1,4 @@
-# @SHELL@
+#! @SHELL@
 #
 # This is a sample /etc/init.d file for Courier-IMAP
 #
@@ -47,46 +47,6 @@
 		fi
 		;;
 	esac
-
-	POP3DSTART=""
-	POP3DSSLSTART=""
-
-	if test -f @sysconfdir@/pop3d
-	then
-		. @sysconfdir@/pop3d
-	fi
-
-	case x$POP3DSTART in
-	x[yY]*)
-		# Start daemons.
-		@libexecdir@/pop3d.rc start
-		echo -n " pop3"
-		;;
-	esac
-
-	if test -f @sysconfdir@/pop3d-ssl
-	then
-		. @sysconfdir@/pop3d-ssl
-	fi
-
-	case x$POP3DSSLSTART in
-	x[yY]*)
-		if test -x $COURIERTLS
-		then
-
-		# First time we start this, generate a dummy SSL certificate.
-
-			if test ! -f $TLS_CERTFILE
-			then
-echo -n " generating-SSL-certificate..."
-@datadir@/mkpop3dcert >/dev/null 2>&1
-			fi
-			@libexecdir@/pop3d-ssl.rc start
-			echo -n " pop3-ssl"
-		fi
-		;;
-	esac
-
 	echo ""
 	;;
 stop)
@@ -100,19 +60,6 @@
 		@libexecdir@/imapd-ssl.rc stop
 		echo -n " imap-ssl"
 	fi
-
-	if test -f @sysconfdir@/pop3d
-	then
-		@libexecdir@/pop3d.rc stop
-		echo -n " pop3"
-
-		if test -x $COURIERTLS
-		then
-			@libexecdir@/pop3d-ssl.rc stop
-			echo -n " pop3-ssl"
-		fi
-	fi
-
 	echo ""
 	;;
 restart)
diff -Naur courier-imap-1.6.2/imapd.rc.in courier-imap-1.6.2.oden/imapd.rc.in
--- courier-imap-1.6.2/imapd.rc.in	2002-12-24 03:31:40.0 +0100
+++ courier-imap-1.6.2.oden/imapd.rc.in	2002-12-31 14:10:31.0 +0100
@@ -43,8 +43,7 @@
 		IMAP_STARTTLS=$IMAPDSTARTTLS ; export IMAP_STARTTLS ; \
 		TLS_PROTOCOL=$TLS_STARTTLS_PROTOCOL ; \
 		@libexecdir@/couriertcpd -address=$ADDRESS \
-			[EMAIL PROTECTED]@/courierlogger \
-			-stderrloggername=imapd \
+			-user=vpopmail -group=vchkpw \
 			-maxprocs=$MAXDAEMONS -maxperip=$MAXPERIP \
 			-pid=$PIDFILE $TCPDOPTS \
 			$PORT @sbindir@/imaplogin $LIBAUTHMODULES \
diff -Naur courier-imap-1.6.2/imapd-ssl.rc.in courier-imap-1.6.2.oden/imapd-ssl.rc.in
--- courier-imap-1.6.2/imapd-ssl.rc.in	2002-12-24 03:31:40.0 +0100
+++ courier-imap-1.6.2.oden/imapd-ssl.rc.in	2002-12-31 14:10:31.0 +0100
@@ -42,8 +42,7 @@
 		. @sysconfdir@/imapd-ssl ; \
 		IMAP_TLS=1; export IMAP_TLS; \
 		@libexecdir@/couriertcpd -address=$SSLADDRESS \
-			[EMAIL PROTECTED]@/courierlogger \
-			-stderrloggername=imapd-ssl \
+			-user=vpopmail -group=vchkpw \
 			-maxprocs=$MAXDAEMONS -maxperip=$MAXPERIP \
 			-pid=$SSLPIDFILE $TCPDOPTS \
 			$SSLPORT $COURIERTLS -server -tcpd \


RE: [vchkpw] Compiling courier-imap to work with vpopmail

2003-08-25 Thread Bård Tommy Nilsen



 
the 
compiling and install goes fine, but the last stage fails
 
 
martine# make install-configure*** Error code 
2
 
Stop 
in /usr/home/bardtomm/courier-imap-2.0.0.martine# 
 
could 
have anything to do with my already installed courier-imap 
??
 
 
Bård 
Tommy
 



From: Brad [mailto:[EMAIL PROTECTED] 
Sent: 25. august 2003 12:26To: Bård Tommy 
Nilsen

it is having issues trying to 
link against /home/vpopmail/lib/libvpopmail.a
By default the permissions are 700 for the lib 
directory, and 600 for the library file.
As you are compiling courier as a non root user, 
you dont have permissions to the file.
 
As a work around, you can change the permissions of 
the lib dir and the library file to 777, do the compile and installation of 
copurier imap and then change the permissions back.
 
Brad 

  - Original Message - 
  From: 
  Bård 
  Tommy Nilsen 
  To: [EMAIL PROTECTED] 
  Sent: Monday, August 25, 2003 8:13 
  PM
  Subject: [vchkpw] Compiling courier-imap 
  to work with vpopmail
  
  Hello
   
  Trying to use 
  courier-imap with vpopmail, but it fails
   
   
  i use 
  courier-imap-2.0.0
   
   
   
  $ export 
  CFLAGS="-DHAVE_OPEN_SMTP_RELAY"
  $ ./configure --without-authdaemon 
  --with-authvchkpw
  $ make
   
  then it 
  fails
   
  /usr/bin/ld: 
  cannot find -lvpopmail*** Error code 1
   
  Stop in 
  /usr/home/bardtomm/courier-imap-2.0.0/authlib.*** Error code 
  1
   
  Stop in 
  /usr/home/bardtomm/courier-imap-2.0.0/authlib.*** Error code 
  1
   
  Stop in 
  /usr/home/bardtomm/courier-imap-2.0.0.
   
   
  What could i be 
  doing wrong ??
   
   
  Bård 
  Tommy


Re: AW: AW: [vchkpw] Clear Passwords

2003-08-25 Thread Evren Yurtesen
It depends on your crypt library. If you are using blowfish or something?
Mine returns md5 and it can work with both DES and MD5 at the same time (on freebsd)

I am sorry that this is not so good help to you, but you can still try the
password that vpopmail returns in your web thingy. There is a possibility
that your crypt libraries might process this password especially if this
is on the same machine. The program should use the same settings.

One thing is that you can not get your cleartext passwords anymore unless
you change all the email passwords or you clear all the user passwords and
use the password learning option, although this is little bit risky.

Evren

On Mon, 25 Aug 2003, Andrej Dragicevic wrote:

> Yes, but I need to know how is vpopmail crypting passwords. It isn't
> md5. Do you know how are passwords crypted?
> 
> For example:
> If I have a password "test", the md5 string is
> "098f6bcd4621d373cade4e832627b4f6". Vpopmail returns a string
> "$1$LObTh$LcOWUS4U6glAr2vB4oycr0" for the same password.
> 
> -Ursprüngliche Nachricht-
> Von: Evren Yurtesen [mailto:[EMAIL PROTECTED] 
> Gesendet: Montag, 25. August 2003 13:45
> An: Andrej Dragicevic
> Betreff: Re: AW: [vchkpw] Clear Passwords
> 
> isnt that web module support crypted passwords?
> 
> On Mon, 25 Aug 2003, Andrej Dragicevic wrote:
> 
> > I want to synchronize vpopmail passwords with another web module... So
> I
> > need to get all passwords from vpopmail, put them into database, so
> that
> > the web module can use these passwords for authorization...
> > 
> > 
> > 
> > -Ursprüngliche Nachricht-
> > Von: Evren Yurtesen [mailto:[EMAIL PROTECTED] 
> > Gesendet: Montag, 25. August 2003 12:44
> > An: Andrej Dragicevic
> > Cc: [EMAIL PROTECTED]
> > Betreff: Re: [vchkpw] Clear Passwords
> > 
> > unless you compiled in clear password support in vpopmail when you
> were
> > installing it, you can not get.
> > if you didnt compile in at first and now all your passwords are
> > encrypted.
> > There is no way of getting the clearpassword for you.
> > why do you need it anyway?
> > 
> > On Mon, 25 Aug 2003, Andrej Dragicevic wrote:
> > 
> > > Hello List,
> > > 
> > > I want to get all passwords from vpopmail (ver. 5.2) accounts. If I
> > use
> > > vuserinfo with -p option, the function returns a crypted password.
> How
> > > do I get clear password from the returned string, for example with
> > > PHP???
> > > 
> > > TIA. 
> > > 
> > > 
> > > 
> > 
> > 
> > 
> 
> 
> 





AW: AW: AW: [vchkpw] Clear Passwords

2003-08-25 Thread Andrej Dragicevic
Here is a sample.

$pwd = "\$1\$LObTh\$LcOWUS4U6glAr2vB4oycr0"; // this is the vpopmail
password
$decrypted = "test";



Thanks to the list, Evren and Rudi to help me understand something about
cryptography.

Andrej.


-Ursprüngliche Nachricht-
Von: Evren Yurtesen [mailto:[EMAIL PROTECTED] 
Gesendet: Montag, 25. August 2003 14:15
An: Andrej Dragicevic
Cc: [EMAIL PROTECTED]
Betreff: Re: AW: AW: [vchkpw] Clear Passwords

It depends on your crypt library. If you are using blowfish or
something?
Mine returns md5 and it can work with both DES and MD5 at the same time
(on freebsd)

I am sorry that this is not so good help to you, but you can still try
the
password that vpopmail returns in your web thingy. There is a
possibility
that your crypt libraries might process this password especially if this
is on the same machine. The program should use the same settings.

One thing is that you can not get your cleartext passwords anymore
unless
you change all the email passwords or you clear all the user passwords
and
use the password learning option, although this is little bit risky.

Evren

On Mon, 25 Aug 2003, Andrej Dragicevic wrote:

> Yes, but I need to know how is vpopmail crypting passwords. It isn't
> md5. Do you know how are passwords crypted?
> 
> For example:
> If I have a password "test", the md5 string is
> "098f6bcd4621d373cade4e832627b4f6". Vpopmail returns a string
> "$1$LObTh$LcOWUS4U6glAr2vB4oycr0" for the same password.
> 
> -Ursprüngliche Nachricht-
> Von: Evren Yurtesen [mailto:[EMAIL PROTECTED] 
> Gesendet: Montag, 25. August 2003 13:45
> An: Andrej Dragicevic
> Betreff: Re: AW: [vchkpw] Clear Passwords
> 
> isnt that web module support crypted passwords?
> 
> On Mon, 25 Aug 2003, Andrej Dragicevic wrote:
> 
> > I want to synchronize vpopmail passwords with another web module...
So
> I
> > need to get all passwords from vpopmail, put them into database, so
> that
> > the web module can use these passwords for authorization...
> > 
> > 
> > 
> > -Ursprüngliche Nachricht-
> > Von: Evren Yurtesen [mailto:[EMAIL PROTECTED] 
> > Gesendet: Montag, 25. August 2003 12:44
> > An: Andrej Dragicevic
> > Cc: [EMAIL PROTECTED]
> > Betreff: Re: [vchkpw] Clear Passwords
> > 
> > unless you compiled in clear password support in vpopmail when you
> were
> > installing it, you can not get.
> > if you didnt compile in at first and now all your passwords are
> > encrypted.
> > There is no way of getting the clearpassword for you.
> > why do you need it anyway?
> > 
> > On Mon, 25 Aug 2003, Andrej Dragicevic wrote:
> > 
> > > Hello List,
> > > 
> > > I want to get all passwords from vpopmail (ver. 5.2) accounts. If
I
> > use
> > > vuserinfo with -p option, the function returns a crypted password.
> How
> > > do I get clear password from the returned string, for example with
> > > PHP???
> > > 
> > > TIA. 
> > > 
> > > 
> > > 
> > 
> > 
> > 
> 
> 
> 









Re: [vchkpw] Unable to pop mails

2003-08-25 Thread Tanmaya Anand



Hi All,
 
Thanks its working fine now.
 
Regards,
Tanmaya

  - Original Message - 
  From: 
  Tanmaya 
  Anand 
  To: Tom Collins 
  Cc: vpopmail list 
  Sent: Monday, August 25, 2003 2:00 
  PM
  Subject: Re: [vchkpw] Unable to pop 
  mails
  
  Hi,
   
  Thanks, it has authenticated, but is not fetching 
  mail from my Maildir.
   
  Regards,
  Tanmaya
  
- Original Message - 
From: 
Tom Collins 

To: vpopmail list 
Sent: Sunday, August 24, 2003 9:07 
PM
Subject: Re: [vchkpw] Unable to pop 
mails
On Sunday, August 24, 2003, at 05:16 AM, Tanmaya Anand 
wrote:
All the domains i have 
  configured are wroking fine via sqwebmail. but i am unable to use it via 
  any email clientlike 
  Outlook Express.Make sure you 
configure the email client to use the full email address as the 
username:POP/IMAP user: [EMAIL PROTECTED]POP/IMAP server: 
mail.domain.com--Tom 
Collins[EMAIL PROTECTED]http://sniffter.com/ - info on the 
Sniffter hand-held Network 
Tester


Re: AW: AW: AW: [vchkpw] Clear Passwords

2003-08-25 Thread Evren Yurtesen
Hmm what happens if you give 098f6bcd4621d373cade4e832627b4f6 as salt? and
test with the password from vpopmail (the users decrypted password) ?

Evren

On Mon, 25 Aug 2003, Andrej Dragicevic wrote:

> Here is a sample.
> 
> $pwd = "\$1\$LObTh\$LcOWUS4U6glAr2vB4oycr0"; // this is the vpopmail
> password
> $decrypted = "test";
> 
>  if ( crypt($decrypted, "\$1\$LObTh\$") ==  $pwd) 
>   echo "success!";
> else
>   echo "failure!";
> ?>
> 
> Thanks to the list, Evren and Rudi to help me understand something about
> cryptography.
> 
> Andrej.
> 
> 
> -Ursprüngliche Nachricht-
> Von: Evren Yurtesen [mailto:[EMAIL PROTECTED] 
> Gesendet: Montag, 25. August 2003 14:15
> An: Andrej Dragicevic
> Cc: [EMAIL PROTECTED]
> Betreff: Re: AW: AW: [vchkpw] Clear Passwords
> 
> It depends on your crypt library. If you are using blowfish or
> something?
> Mine returns md5 and it can work with both DES and MD5 at the same time
> (on freebsd)
> 
> I am sorry that this is not so good help to you, but you can still try
> the
> password that vpopmail returns in your web thingy. There is a
> possibility
> that your crypt libraries might process this password especially if this
> is on the same machine. The program should use the same settings.
> 
> One thing is that you can not get your cleartext passwords anymore
> unless
> you change all the email passwords or you clear all the user passwords
> and
> use the password learning option, although this is little bit risky.
> 
> Evren
> 
> On Mon, 25 Aug 2003, Andrej Dragicevic wrote:
> 
> > Yes, but I need to know how is vpopmail crypting passwords. It isn't
> > md5. Do you know how are passwords crypted?
> > 
> > For example:
> > If I have a password "test", the md5 string is
> > "098f6bcd4621d373cade4e832627b4f6". Vpopmail returns a string
> > "$1$LObTh$LcOWUS4U6glAr2vB4oycr0" for the same password.
> > 
> > -Ursprüngliche Nachricht-
> > Von: Evren Yurtesen [mailto:[EMAIL PROTECTED] 
> > Gesendet: Montag, 25. August 2003 13:45
> > An: Andrej Dragicevic
> > Betreff: Re: AW: [vchkpw] Clear Passwords
> > 
> > isnt that web module support crypted passwords?
> > 
> > On Mon, 25 Aug 2003, Andrej Dragicevic wrote:
> > 
> > > I want to synchronize vpopmail passwords with another web module...
> So
> > I
> > > need to get all passwords from vpopmail, put them into database, so
> > that
> > > the web module can use these passwords for authorization...
> > > 
> > > 
> > > 
> > > -Ursprüngliche Nachricht-
> > > Von: Evren Yurtesen [mailto:[EMAIL PROTECTED] 
> > > Gesendet: Montag, 25. August 2003 12:44
> > > An: Andrej Dragicevic
> > > Cc: [EMAIL PROTECTED]
> > > Betreff: Re: [vchkpw] Clear Passwords
> > > 
> > > unless you compiled in clear password support in vpopmail when you
> > were
> > > installing it, you can not get.
> > > if you didnt compile in at first and now all your passwords are
> > > encrypted.
> > > There is no way of getting the clearpassword for you.
> > > why do you need it anyway?
> > > 
> > > On Mon, 25 Aug 2003, Andrej Dragicevic wrote:
> > > 
> > > > Hello List,
> > > > 
> > > > I want to get all passwords from vpopmail (ver. 5.2) accounts. If
> I
> > > use
> > > > vuserinfo with -p option, the function returns a crypted password.
> > How
> > > > do I get clear password from the returned string, for example with
> > > > PHP???
> > > > 
> > > > TIA. 
> > > > 
> > > > 
> > > > 
> > > 
> > > 
> > > 
> > 
> > 
> > 
> 
> 
> 
> 
> 
> 
> 
> 
> 




[vchkpw] LDAP or MYSQL module ??

2003-08-25 Thread Rodrigo Pinheiro
Hi,

I've a domain with 30,000 accounts +/-, it's running on iplanet solutions
I need migrate that solution to free software, because iplanet is very
expensive

I'd like to know which module to use for autentication,

LDAP or MYSQL ??

SQL is more slow LDAP,

but I seen that MYSQL module is more used and more accept.

Thanks.


Rodrigo Pinheiro




Re: [vchkpw] LDAP or MYSQL module ??

2003-08-25 Thread Evren Yurtesen
I think you would to quite well with mysql, might be little bit slower but
by practicality I believe it has more positive points than LDAP.

Plus considering todays hardware is so fast and cheap. I think little bit
speed penalty is not too big problem. Well you can always buy faster cpu
and more memory or multiple cpu.

Also onsidering that buying a supreme hardware would only cost a small 
fraction of the money you pay for iplanet. Anyhow :) of course this is my
opinion. I am sure people will have different opinions

Evren

On Mon, 25 Aug 2003, Rodrigo Pinheiro wrote:

> Hi,
> 
> I've a domain with 30,000 accounts +/-, it's running on iplanet solutions
> I need migrate that solution to free software, because iplanet is very
> expensive
> 
> I'd like to know which module to use for autentication,
> 
> LDAP or MYSQL ??
> 
> SQL is more slow LDAP,
> 
> but I seen that MYSQL module is more used and more accept.
> 
> Thanks.
> 
> 
> Rodrigo Pinheiro
> 
> 
> 




Re: [vchkpw] LDAP or MYSQL module ??

2003-08-25 Thread Nick Harring
I'm running a set of domains with about 50K users now using mysql. 
Depending on how you're going to structure the qmail+vpopmail 
environment there're a number of things you can do to overcome the 
slightly slower mysql. What I do is run a local read-only copy of the 
mysql database on each of my qmail servers, which are replicated off of 
a master read-write copy.
Delivering roughly 500K messages per day to this cluster I'm running 
three servers for qmail, vpopmail, courier-imap/pop3, squirrelmail. Two 
are dual  P3s at 1ghz, and one is a dual Athlon XP 2400+, and 
performance is more than acceptable (its a pretty darn fast cluster 
imho). The master read/write mysql database is running on a semi-ancient 
Sun E250, however there's not a lot of writing going on as I turned off 
mysql logging in vpopmail.
Hope that helps,
Nick Harring
Rodrigo Pinheiro wrote:

Hi,

I've a domain with 30,000 accounts +/-, it's running on iplanet solutions
I need migrate that solution to free software, because iplanet is very
expensive
I'd like to know which module to use for autentication,

LDAP or MYSQL ??

SQL is more slow LDAP,

but I seen that MYSQL module is more used and more accept.

Thanks.

Rodrigo Pinheiro

 





Re: AW: AW: AW: [vchkpw] Clear Passwords

2003-08-25 Thread Paul L. Allen

Andrej Dragicevic writes:

> Here is a sample.
> 
> $pwd = "\$1\$LObTh\$LcOWUS4U6glAr2vB4oycr0"; // this is the vpopmail
> password
> $decrypted = "test";
> 
>  if ( crypt($decrypted, "\$1\$LObTh\$") ==  $pwd) 
>   echo "success!";
> else
>   echo "failure!";
> ?>

That approach works but relies upon you figuring out where the salt
ends and passing it to crypt.  The more popular flavours of Unix these 
days have at least two different ways of crypting the passwords: the
old-style DES-based and the new-style variant-MD5-based.  They have
different lengths of salt for the different methods.

An easier way to do it is to use the crypted password itself as
the salt, because a crypt that can handle both styles is usually
smart enough to accept the crypted password as salt and separate the
salt out itself.  So you'll probably find that

if (crypt($decrypted, $pwd) == $pwd)

does what you want.  Well, I'm assuming that in PHP "==" is a string
comparison operator as well as a numeric comparison operator (in perl
the string comparison operator is "eq" and your "==" comparison would
almost always be true even with the wrong password because strings which 
don't look like numbers are treated as 0 in perl).

-- 
Paul Allen
Softflare Support




[vchkpw] vpopmail and imap

2003-08-25 Thread Bård Tommy Nilsen
Title: Melding



Hello
 
I am using vpopmail 
with courier-imap.
 
I am running 
squirremail (imap) and want to allow every user that logs 
into
squirremail to 
relay
 
Is it an easy way to 
do this ??
 
 
Regards
Bård Tommy 
Nilsen
 


Re: [vchkpw] vpopmail and imap

2003-08-25 Thread Evren Yurtesen
You just just let the ip address of your squirrelmail machine to be
allowed for relaying. Thats as easy as it gets :)
Just be sure that there are no proxies etc. on the squirrelmail machine
that people cant relay SPAM etc.


On Mon, 25 Aug 2003, Bård Tommy Nilsen wrote:

> Hello
>  
> I am using vpopmail with courier-imap.
>  
> I am running squirremail (imap) and want to allow every user that logs
> into
> squirremail to relay
>  
> Is it an easy way to do this ??
>  
>  
> Regards
> Bård Tommy Nilsen
>  
> 




Re: [vchkpw] Unable to pop mails

2003-08-25 Thread Michael Bowe



Do any of the mailboxes on the server work? Is it 
just this one mailbox that doesnt work?
 
You should check the permissions on the maildir. 

You can restore the default permissions for 
the whole vpopmail tree, by going back to your vpopmail source dir and 
re-running "make install-strip"
 
Also, I think I remember seeing that same error 
occur if you set the pop3d softlimit setting too low 
 
If you still have no luck, show us a copy of your pop3d run script so we can look to see if you have 
made any errors
 
Michael.

  - Original Message - 
  From: 
  Tanmaya 
  Anand 
  To: Tom Collins 
  Cc: vpopmail list 
  Sent: Monday, August 25, 2003 6:30 
  PM
  Subject: Re: [vchkpw] Unable to pop 
  mails
  
  Hi,
   
  Thanks, it has authenticated, but is not fetching 
  mail from my Maildir.
   
  Regards,
  Tanmaya
  
- Original Message - 
From: 
Tom Collins 

To: vpopmail list 
Sent: Sunday, August 24, 2003 9:07 
PM
Subject: Re: [vchkpw] Unable to pop 
mails
On Sunday, August 24, 2003, at 05:16 AM, Tanmaya Anand 
wrote:
All the domains i have 
  configured are wroking fine via sqwebmail. but i am unable to use it via 
  any email clientlike 
  Outlook Express.Make sure you 
configure the email client to use the full email address as the 
username:POP/IMAP user: [EMAIL PROTECTED]POP/IMAP server: 
mail.domain.com--Tom 
Collins[EMAIL PROTECTED]http://sniffter.com/ - info on the 
Sniffter hand-held Network 
Tester


Re: [vchkpw] LDAP or MYSQL module ??

2003-08-25 Thread Nick Harring




Michael -
I'd be happy to. I've copied the list since someone else may find the
additional detail useful.

Michael Bellears wrote:

  Hi Nick,

  
  
What I do is run a local read-only copy of the 
mysql database on each of my qmail servers, which are 
replicated off of 
a master read-write copy.
Delivering roughly 500K messages per day to this cluster I'm running 
three servers for qmail, vpopmail, courier-imap/pop3, 
squirrelmail.

  
  
Sounds nice - We are about to migrate to a multi-server environment, and
was wondering if you could answer a couple of questions for me.

Are your servers sitting behind a local director or equiv.?

Are you running a common nfs share for your clients mailbox's (i.e.
/home/vpopmail/domains)?

What happens if your master mysql box fails?

Thanks in advance,
MB
  

We're using a redundant pair of Foundry ServerIron load balancers,
though I strongly discourage you from buying such devices. My
experience is that they are very unbalanced in their load balancing,
and their interfaces (web and cli) are hideous for every day usage.
Other experiences of mine say to buy a pair of cheap linux boxes and
use Linux Virtual Servers (LVS) as a load balancing interface. Its far
more configurable to balance based on load, and is far, far cheaper to
deploy.
We're mounting /var/vpopmail/domains as an nfs mount for all of our
users maildirs from a pair of Sun E250s (which also run the MySQL
read/write DB). These are hooked up to a mirrored pair of Raid5 arrays,
with the mirroring being done by Veritas Volume Manager, and the boxes
are clustered with Veritas Cluster Services for high availability.
Again I'd not actually recommend using this setup unless you've got
these or similar pieces already paid for and lying around. Either  real
filers (such as Network Appliance, Procomm or others) or linux boxes
using tools from the Linux-HA project are what I'd recommend. I'm
looking to replace our E250s with a pair of NetApp F825c filer heads
with clustering and the whole ball of wax as high availability is an
absolute necessity in my network. 
As I mentioned previously the MySQL boxes are clustered, and the MySQL
database itself is on shared SCSI storage (part of the volume manager
setup). 
When I replace the E250s I'm thinking about instead setting up a
circular MySQL replication scheme, since MySQL tags replication data
with the originating server, so once it makes its way through the
circle it won't be applied again. My only problem so far is that this
would end up like a token ring network, in that one dead link and the
whole thing is unusable.  Otherwise I'll end up using linux-ha and some
perl scripts to dynamically reconfigure a pair of servers as
Master/Slave (when the master crashes, the slave becomes the master,
and when the previous master comes back up it automagically knows to
become the new slave). 
Let me know if there's any thing else I can answer.
Hope this helps,
Nick Harring
Webley Systems