Re: [vchkpw] Re: Problems with vchkpw

2005-04-27 Thread Jeffrey Wong
I found my error.  In the transition I had pointed vpopmail to the
same database, but hadn't copied the /var/qmail/users/* and
/var/qmail/control/rcpthosts over.

On 4/26/05, zrr [EMAIL PROTECTED] wrote:
 Ok, what about this, did you do this:
 http://zeno.davaz.com/zrr.php?n=Main.Qmail
 
 especially:
 check the conf-files
 
1. for Gentoo do not forget to edit /var/qmail/control/conf-common
2. and /var/qmail/control/conf-pop3d - change Authentication to:
3. /var/vpopmail/bin/vchkpw
4. Enjoy ;-)
 
 Best
 Zeno
 
 On 4/26/05, Jeffrey Wong [EMAIL PROTECTED] wrote:
  I'm not sure what file you're referring to.  I've only installed
  qmail-1.03-r13 and vpopmail-5.4.6-r1 so far.
  As far as I know, the problem isn't with authlib.  It's somewhere in
  the internals of vpopmail.  Or so it seems.
 
  On 4/26/05, zrr [EMAIL PROTECTED] wrote:
   What is in your authlibd file. The file where you spicy the
   authentication module. I'm running the same Gentoo packages as you as
   well on my PPC 2.6.11 and every works very sweet. As I can remember I
   could not authenticate as well just because my authlibd file had all
   the authentication programs listed in it instead of one.
  
   HTH
   Zeno
  
   On 4/26/05, Jeffrey Wong [EMAIL PROTECTED] wrote:
I'm trying to setup a new mailserver with qmail and vpopmail.  I've
installed both, and have setup user accounts.  I'm running into
problems when trying to test the setup to make sure things are
working.
   
Running this command:
printf [EMAIL PROTECTED] | vchkpw `which id` 30
yields this result:
uid=0(root) gid=0(root)
groups=0(root),1(bin),2(daemon),3(sys),4(adm),6(disk),10(wheel),11(floppy),20(dialout),26(tape),27(video)
   
I run the same command on a working server and get this:
uid=89(vpopmail) gid=89(vpopmail)
groups=0(root),1(bin),2(daemon),3(sys),4(adm),6(disk),10(wheel),11(floppy),20(dialout),26(tape),27(video),35(games)
   
I can't authenticate any users on the new server.  My best guess is
that the discrepancy between the two outputs is the source of the 
problem.
   
Some extra information:
Both servers are running Gentoo Linux.  The server with the problem is
running kernel 2.6.10.  The working server is running kernel 2.4.26.
Though the kernel version isn't the source of the problem as I was
able to make a clean install on a 2.6 kernel without any problems.
   
Can someone point me to where this problem may be coming from?
   
  
 



Re: [vchkpw] Re: Problems with vchkpw

2005-04-27 Thread zrr
Great, Congratulations!

Best form Zurich
Zeno

On 4/27/05, Jeffrey Wong [EMAIL PROTECTED] wrote:
 I found my error.  In the transition I had pointed vpopmail to the
 same database, but hadn't copied the /var/qmail/users/* and
 /var/qmail/control/rcpthosts over.
 
 On 4/26/05, zrr [EMAIL PROTECTED] wrote:
  Ok, what about this, did you do this:
  http://zeno.davaz.com/zrr.php?n=Main.Qmail
 
  especially:
  check the conf-files
 
 1. for Gentoo do not forget to edit /var/qmail/control/conf-common
 2. and /var/qmail/control/conf-pop3d - change Authentication to:
 3. /var/vpopmail/bin/vchkpw
 4. Enjoy ;-)
 
  Best
  Zeno
 
  On 4/26/05, Jeffrey Wong [EMAIL PROTECTED] wrote:
   I'm not sure what file you're referring to.  I've only installed
   qmail-1.03-r13 and vpopmail-5.4.6-r1 so far.
   As far as I know, the problem isn't with authlib.  It's somewhere in
   the internals of vpopmail.  Or so it seems.
  
   On 4/26/05, zrr [EMAIL PROTECTED] wrote:
What is in your authlibd file. The file where you spicy the
authentication module. I'm running the same Gentoo packages as you as
well on my PPC 2.6.11 and every works very sweet. As I can remember I
could not authenticate as well just because my authlibd file had all
the authentication programs listed in it instead of one.
   
HTH
Zeno
   
On 4/26/05, Jeffrey Wong [EMAIL PROTECTED] wrote:
 I'm trying to setup a new mailserver with qmail and vpopmail.  I've
 installed both, and have setup user accounts.  I'm running into
 problems when trying to test the setup to make sure things are
 working.

 Running this command:
 printf [EMAIL PROTECTED] | vchkpw `which id` 30
 yields this result:
 uid=0(root) gid=0(root)
 groups=0(root),1(bin),2(daemon),3(sys),4(adm),6(disk),10(wheel),11(floppy),20(dialout),26(tape),27(video)

 I run the same command on a working server and get this:
 uid=89(vpopmail) gid=89(vpopmail)
 groups=0(root),1(bin),2(daemon),3(sys),4(adm),6(disk),10(wheel),11(floppy),20(dialout),26(tape),27(video),35(games)

 I can't authenticate any users on the new server.  My best guess is
 that the discrepancy between the two outputs is the source of the 
 problem.

 Some extra information:
 Both servers are running Gentoo Linux.  The server with the problem is
 running kernel 2.6.10.  The working server is running kernel 2.4.26.
 Though the kernel version isn't the source of the problem as I was
 able to make a clean install on a 2.6 kernel without any problems.

 Can someone point me to where this problem may be coming from?

   
  
 



[vchkpw] SMTP after POP

2005-04-27 Thread Juraj Hantak
Hi,
I have a question is smtp after POP feature supported in the newest 
Courier Imap?
I have installed courier-imap-4.0.2 and courier-authlib-0.55 everythink 
is OK but
the SMTP after POP feature is not working.

Is there any know issue or I am doing sometihing wrong?
I was looking into .c code courier-authlib-0.55 file: authvchkpw.c
   if ( (vpw-pw_flags  NO_RELAY)==0  ((strcmp(pop3, 
service)==0) || (strcmp(imap, service)==0)) ) {
   /* Michael Bowe 13th August 2003
*
* There is a problem here because open_smtp_relay needs
* to get the user's ip from getenv(TCPREMOTEIP).
* If we run --with-authvchkpw --without-authdaemon,
* then this var is available.
* But if we run --with-authvchkpw --with-authdaemon,
* then TCPREMOTEIP is null
*
* If TCPREMOTEIP isnt available, then open_smtp_relay()
* will just return() back immediately.
*/
   open_smtp_relay();
   }



--
Best regards.
Juraj Hantak



Re: [vchkpw] SMTP after POP

2005-04-27 Thread Rick Macdougall

Kyle Wheeler wrote:
On Wednesday, April 27 at 04:28 PM, quoth Juraj Hantak:
Hi,
I have a question is smtp after POP feature supported in the newest 
Courier Imap?

Courier IMAP provides neither SMTP nor POP service, so my guess is: no.
~Kyle

Hi,
Yes Courier-IMAP does provide POP service, how ever I think with the 4.x 
release, Courier no longer support POP before SMTP.

Regards,
Rick


Re: [vchkpw] SMTP after POP

2005-04-27 Thread Aran Clary Deltac
Courier IMAP provides neither POP nor SMTP services.  It provides IMAP
services.  If you are asking for IMAP before POP (sounds kinda silly to
me, but people have asked for it before), then yes, Courier IMAP can do
this.

Go to:

http://www.inter7.com/vpopmail/FAQ.txt

And check out item #34.

Aran


 Hi,

 I have a question is smtp after POP feature supported in the newest
 Courier Imap?
 I have installed courier-imap-4.0.2 and courier-authlib-0.55 everythink
 is OK but
 the SMTP after POP feature is not working.

 Is there any know issue or I am doing sometihing wrong?

 I was looking into .c code courier-authlib-0.55 file: authvchkpw.c


 if ( (vpw-pw_flags  NO_RELAY)==0  ((strcmp(pop3,
 service)==0) || (strcmp(imap, service)==0)) ) {
 /* Michael Bowe 13th August 2003
  *
  * There is a problem here because open_smtp_relay needs
  * to get the user's ip from getenv(TCPREMOTEIP).
  * If we run --with-authvchkpw --without-authdaemon,
  * then this var is available.
  * But if we run --with-authvchkpw --with-authdaemon,
  * then TCPREMOTEIP is null
  *
  * If TCPREMOTEIP isnt available, then open_smtp_relay()
  * will just return() back immediately.
  */
 open_smtp_relay();
 }






 --
 Best regards.

 Juraj Hantak







Re: [vchkpw] SMTP after POP

2005-04-27 Thread Rick Macdougall
/me wonders what the pop3d config file and libexec/pop3d.rc files are 
for in the courier directory.

Aran Clary Deltac wrote:
Courier IMAP provides neither POP nor SMTP services.  It provides IMAP
services.  If you are asking for IMAP before POP (sounds kinda silly to
me, but people have asked for it before), then yes, Courier IMAP can do
this.



Re: [vchkpw] SMTP after POP

2005-04-27 Thread Aran Clary Deltac
 Courier IMAP provides neither POP nor SMTP services.  It provides IMAP
 services.  If you are asking for IMAP before POP (sounds kinda silly to

Augh... I mean IMAP before SMTP, which actually doesn't sound as silly.

Aran

 me, but people have asked for it before), then yes, Courier IMAP can do
 this.

 Go to:

 http://www.inter7.com/vpopmail/FAQ.txt

 And check out item #34.

 Aran


 Hi,

 I have a question is smtp after POP feature supported in the newest
 Courier Imap?
 I have installed courier-imap-4.0.2 and courier-authlib-0.55 everythink
 is OK but
 the SMTP after POP feature is not working.

 Is there any know issue or I am doing sometihing wrong?

 I was looking into .c code courier-authlib-0.55 file: authvchkpw.c


 if ( (vpw-pw_flags  NO_RELAY)==0  ((strcmp(pop3,
 service)==0) || (strcmp(imap, service)==0)) ) {
 /* Michael Bowe 13th August 2003
  *
  * There is a problem here because open_smtp_relay needs
  * to get the user's ip from getenv(TCPREMOTEIP).
  * If we run --with-authvchkpw --without-authdaemon,
  * then this var is available.
  * But if we run --with-authvchkpw --with-authdaemon,
  * then TCPREMOTEIP is null
  *
  * If TCPREMOTEIP isnt available, then open_smtp_relay()
  * will just return() back immediately.
  */
 open_smtp_relay();
 }






 --
 Best regards.

 Juraj Hantak










Re: [vchkpw] SMTP after POP

2005-04-27 Thread Aran Clary Deltac
 /me wonders what the pop3d config file and libexec/pop3d.rc files are
 for in the courier directory.

Your have courier pop3d installed, perhaps?

 Aran Clary Deltac wrote:
 Courier IMAP provides neither POP nor SMTP services.  It provides IMAP
 services.  If you are asking for IMAP before POP (sounds kinda silly to
 me, but people have asked for it before), then yes, Courier IMAP can do
 this.







Re: [vchkpw] SMTP after POP

2005-04-27 Thread Rick Macdougall

Aran Clary Deltac wrote:
/me wonders what the pop3d config file and libexec/pop3d.rc files are
for in the courier directory.

Your have courier pop3d installed, perhaps?
Hi,
No, the default installation of Courier-IMAP comes with both an IMAP and 
POP server.

Regards,
Rick


Re: [vchkpw] SMTP after POP

2005-04-27 Thread Michael Bowe
- Original Message - 
From: Juraj Hantak [EMAIL PROTECTED]


 Hi,

 I have a question is smtp after POP feature supported in the newest
 Courier Imap?
 I have installed courier-imap-4.0.2 and courier-authlib-0.55 everythink
 is OK but
 the SMTP after POP feature is not working.

IMAP-before-SMTP is possible when using Courier-IMAP v3.x. However it only
works when configured --with-authvchkpw --without-authdaemon. When
running --without-authdaemon, Courier-IMAP's authvchkpw code is able to make
use of vpopmail's roaming user functions to allow IMAP-before-SMTP
functionality. IMAP-before-SMTP is not possible when Courier-IMAP has been
complied --with-authdaemon, because in this mode the user's IP address is
not made available to the authvchkpw code (via the TCPREMOTEIP env var).
Also note that in Courier-IMAP v4.x and later, --without-authdaemon
functionality is no longer available thus preventing IMAP-before-SMTP from
working.

Courier-pop3d uses the same backend code as courier-imap, so
courier-pop-before-smtp is also not available in v4.x

Michael.



Re: [vchkpw] SMTP after POP

2005-04-27 Thread Red
naco ti je POP before SMTP ??
Rene
- Original Message - 
From: Juraj Hantak [EMAIL PROTECTED]
To: vchkpw@inter7.com
Sent: Wednesday, April 27, 2005 4:28 PM
Subject: [vchkpw] SMTP after POP


Hi,
I have a question is smtp after POP feature supported in the newest 
Courier Imap?
I have installed courier-imap-4.0.2 and courier-authlib-0.55 everythink 
is OK but
the SMTP after POP feature is not working.

Is there any know issue or I am doing sometihing wrong?
I was looking into .c code courier-authlib-0.55 file: authvchkpw.c
   if ( (vpw-pw_flags  NO_RELAY)==0  ((strcmp(pop3, 
service)==0) || (strcmp(imap, service)==0)) ) {
   /* Michael Bowe 13th August 2003
*
* There is a problem here because open_smtp_relay needs
* to get the user's ip from getenv(TCPREMOTEIP).
* If we run --with-authvchkpw --without-authdaemon,
* then this var is available.
* But if we run --with-authvchkpw --with-authdaemon,
* then TCPREMOTEIP is null
*
* If TCPREMOTEIP isnt available, then open_smtp_relay()
* will just return() back immediately.
*/
   open_smtp_relay();
   }



--
Best regards.
Juraj Hantak