[vchkpw] courier pop3d

2003-08-29 Thread Tobias
Is it possible to use courier pop3d like this ?

#!/bin/sh
exec /usr/local/bin/softlimit -m 300 \
/usr/local/bin/tcpserver \
   -v -x /etc/tcp.pop3.cdb -c 30 -R 0 pop3 \
/var/qmail/bin/qmail-popup apache.telgegamers.nu \
/home/vpopmail/bin/vchkpw /usr/local/courier-imap/bin/pop3d  Maildir 21


I have tied but get AUTHFAILURE!

//Tobias



Re: [vchkpw] courier pop3d

2003-08-29 Thread tonix (Antonio Nati)
Courier pop3d is run directly by courier, as a daemon, and (as long as I 
know) cannot be run using tcpserver.

Read courier documentation.

You'll find an initial courier command file that must be run at startup time
(I have
/mypath/courier-imap-1.5.1/libexec/pop3d.rc start
as my starting command).
I'm using courier pop3d, and I find it much (a lot) faster than qmail pop3d.

Ciao,

Tonino

At 29/08/03 29/08/03 +0200, Tobias wrote:
Is it possible to use courier pop3d like this ?

#!/bin/sh
exec /usr/local/bin/softlimit -m 300 \
/usr/local/bin/tcpserver \
   -v -x /etc/tcp.pop3.cdb -c 30 -R 0 pop3 \
/var/qmail/bin/qmail-popup apache.telgegamers.nu \
/home/vpopmail/bin/vchkpw /usr/local/courier-imap/bin/pop3d  Maildir 21
I have tied but get AUTHFAILURE!

//Tobias



[EMAIL PROTECTED]Interazioni di Antonio Nati
   http://www.interazioni.it  [EMAIL PROTECTED]




Re: [vchkpw] courier pop3d

2003-08-29 Thread Jonas Pasche
Hi Tobias,

 Is it possible to use courier pop3d like this ?

Judging from your mail telling us you get AUTHFAILURE, obviously not.

The authentication model of Courier-IMAP is different from qmail's own
POP3 server. For example, the checkpassword-compatible password checker
(here: vchkpw) checks for the password, then switches its user ID to the
target user and changes into his home directory, then invoking
qmail-pop3d Maildir. Despite that, Courier's pop3d binary reads file
descriptor 3 to see if the userid/password has been succesfully
validated.

As a checkpassword compatible program doesn't set it up, you cannot use
Courier's pop3d with qmail-popup and vchkpw. Use instead Courier's
pop3login, Courier's authlib (which sets up file descriptor 3), and
Courier's pop3d. Or, simply stay with qmail's own POP3 server.

For further information, see man qmail-popup, man qmail-pop3d and:

http://www.courier-mta.org/authlib.html

Jonas




Re: [vchkpw] courier pop3d

2003-08-29 Thread Jonas Pasche
Hi Tonino,

 Courier pop3d is run directly by courier, as a daemon, and (as long as
 I know) cannot be run using tcpserver.

That's not true; actually Courier-IMAP starts the pop3login
authlibmodules pop3d chain under couriertcpd, which can be replaced
by tcpserver, if you want to. It is not a daemon; couriertcpd is the
daemon (like tcpserver).

Jonas




Re: [vchkpw] courier pop3d

2003-08-29 Thread Tobias
Ok so i can rewrite the supervise script to run with couriertcpd and
courierpop3d instead
Is it possible to get the courierpop3d to work with vpopmail  ?

How could a supervisescript for that look like ?
//Tobias
- Original Message - 
From: Jonas Pasche [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, August 29, 2003 1:27 PM
Subject: Re: [vchkpw] courier pop3d


 Hi Tonino,

  Courier pop3d is run directly by courier, as a daemon, and (as long as
  I know) cannot be run using tcpserver.

 That's not true; actually Courier-IMAP starts the pop3login
 authlibmodules pop3d chain under couriertcpd, which can be replaced
 by tcpserver, if you want to. It is not a daemon; couriertcpd is the
 daemon (like tcpserver).

 Jonas




 __ NOD32 1.496 (20030828) Information __

 This message was checked by NOD32 Antivirus System.
 http://www.nod32.com






Re: [vchkpw] courier pop3d

2003-08-29 Thread Vladimir Kabanov
native vchkpw will not do authentication for courier pop3d,
possibly authvchkpw will do, possibly not.

sincerelly,
Vladimir Kabanov.

- Original Message - 
From: Tobias [EMAIL PROTECTED]
To: Jonas Pasche [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Friday, August 29, 2003 11:40 PM
Subject: Re: [vchkpw] courier pop3d


 Ok so i can rewrite the supervise script to run with couriertcpd and
 courierpop3d instead
 Is it possible to get the courierpop3d to work with vpopmail  ?

 How could a supervisescript for that look like ?
 //Tobias
 - Original Message - 
 From: Jonas Pasche [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Friday, August 29, 2003 1:27 PM
 Subject: Re: [vchkpw] courier pop3d


  Hi Tonino,
 
   Courier pop3d is run directly by courier, as a daemon, and (as long as
   I know) cannot be run using tcpserver.
 
  That's not true; actually Courier-IMAP starts the pop3login
  authlibmodules pop3d chain under couriertcpd, which can be replaced
  by tcpserver, if you want to. It is not a daemon; couriertcpd is the
  daemon (like tcpserver).
 
  Jonas
 
 
 
 
  __ NOD32 1.496 (20030828) Information __
 
  This message was checked by NOD32 Antivirus System.
  http://www.nod32.com
 
 







Re: [vchkpw] courier pop3d

2003-08-29 Thread Jonas Pasche
Hi Tobias,

please respond to the list only; I'm subscribed and don't want to get
your answers twice. Thanks.

 Ok so i can rewrite the supervise script to run with couriertcpd and
 courierpop3d instead

Especially, using Courier's pop3login and Courier's vpopmail
authentication module instead of qmail-popup and vchkpw - that's what
the source of your problem is.

 Is it possible to get the courierpop3d to work with vpopmail  ?

Yes.

 How could a supervisescript for that look like ?

You should consult the Courier IMAP list for that; this isn't vpopmail
related.

I don't have supervise scripts for pop3d, but my imapd supervise script
reads like this:

--- cut here ---
#!/bin/sh
exec 21
PREFIX=/package/host/localhost/courier-imap
exec envdir ../env \
/usr/local/bin/tcpserver -v -R 0 143 \
$PREFIX/sbin/imaplogin $PREFIX/libexec/authlib/authvchkpw \
$PREFIX/bin/imapd Maildir
--- stop cutting ---

It should be easy to implement pop3login/authvchkpw/pop3d in a similar
manner.

For full djb-style installation instructions, look here:

http://jonaspasche.de/courier-imap-daemontools.txt

It's a bit outdated, but I don't plan to update it any more; instead I
suggest the use of dovecot or bincimap.

Jonas




Re: [vchkpw] courier pop3d

2003-08-29 Thread Charles Sprickman
On Fri, 29 Aug 2003, Jonas Pasche wrote:

  How could a supervisescript for that look like ?

 You should consult the Courier IMAP list for that; this isn't vpopmail
 related.

Heh heh.  I wouldn't.  I looked at the archives and Mr. Sam is about as
helpful and caring as DJB.  The only thing I found was him calling someone
stupid for wanting to run his daemons under supervise.

Personally, I like putting things there so that they can be restarted if
they fail.  Mr. Sam, being a perfect human being, apparently has written
software that will never fail, so I guess we can all sleep easier... :)

 For full djb-style installation instructions, look here:

 http://jonaspasche.de/courier-imap-daemontools.txt

Thanks, that's good bookmark material.

 It's a bit outdated, but I don't plan to update it any more; instead I
 suggest the use of dovecot or bincimap.

Never heard of 'em.

Charles

 Jonas






Re: [vchkpw] courier pop3d

2003-08-29 Thread Jonas Pasche
Hi Charles,

 The only thing I found was him calling someone
 stupid for wanting to run his daemons under supervise.

That doesn't raise my personal opinion on him. ;-)

I care for my daemons. Therefore I want them to run supervised. If Mr.
Sam is THAT sure that his daemons will never fail, he'd better show that
through paying $500 to every admin who observes imapd crashing, instead
of calling people stupid that want to use supervise.

  It's a bit outdated, but I don't plan to update it any more; instead I
  suggest the use of dovecot or bincimap.
 
 Never heard of 'em.

Ok, so here's some advertising:


Dovecot:

http://dovecot.procontrol.fi/

Dovecot is an IMAP and POP3 server for Linux/UNIX-like systems, written
with security primarily in mind. Although it's written with C, it uses
several coding techniques to avoid most of the common pitfalls. Dovecot
can work with standard mbox and maildir formats and it's fully 
compatible with UW-IMAP and Courier IMAP servers as well as mail clients
accessing the mailboxes directly.

(Dovecot has its own authentication module for vpopmail accounts.)


Binc IMAP:

http://bincimap.org/

Binc IMAP is a GPL licensed IMAP4rev1 server for Maildir, written in
C++. It strives to be a rock solid, fast, flexible, easy to use, RFC
(standards) compliant, secure IMAP server. For those familiar with
qmail-pop3d, this IMAP server will be the natural choice. It is invoked
similarily and uses checkpassword to authenticate.

(As Binc IMAP uses a checkpassword compatible interface, it is perfectly
in harmony with vpopmail's vchkpw.)


Jonas




Re: [vchkpw] courier pop3d

2003-08-29 Thread tonix (Antonio Nati)
It's not question of being stupid or smart, just what you like and feel useful.

Anyway, I'm running all the qmail stuff since two years (courier a little 
bit lesser) without supervise, and I never had a problem.

I've examined the supervise architecture, and I don't like it.

Unique problems on MySQL, failing sometimes to work (without crashing, so 
supervise would be unuseful with it).

Ciao,

Tonino

At 29/08/03 29/08/03 +0200, you wrote:
Hi Charles,

 The only thing I found was him calling someone
 stupid for wanting to run his daemons under supervise.
That doesn't raise my personal opinion on him. ;-)

I care for my daemons. Therefore I want them to run supervised. If Mr.
Sam is THAT sure that his daemons will never fail, he'd better show that
through paying $500 to every admin who observes imapd crashing, instead
of calling people stupid that want to use supervise.
  It's a bit outdated, but I don't plan to update it any more; instead I
  suggest the use of dovecot or bincimap.

 Never heard of 'em.
Ok, so here's some advertising:

Dovecot:

http://dovecot.procontrol.fi/

Dovecot is an IMAP and POP3 server for Linux/UNIX-like systems, written
with security primarily in mind. Although it's written with C, it uses
several coding techniques to avoid most of the common pitfalls. Dovecot
can work with standard mbox and maildir formats and it's fully
compatible with UW-IMAP and Courier IMAP servers as well as mail clients
accessing the mailboxes directly.
(Dovecot has its own authentication module for vpopmail accounts.)

Binc IMAP:

http://bincimap.org/

Binc IMAP is a GPL licensed IMAP4rev1 server for Maildir, written in
C++. It strives to be a rock solid, fast, flexible, easy to use, RFC
(standards) compliant, secure IMAP server. For those familiar with
qmail-pop3d, this IMAP server will be the natural choice. It is invoked
similarily and uses checkpassword to authenticate.
(As Binc IMAP uses a checkpassword compatible interface, it is perfectly
in harmony with vpopmail's vchkpw.)
Jonas



[EMAIL PROTECTED]Interazioni di Antonio Nati
   http://www.interazioni.it  [EMAIL PROTECTED]




Re: [vchkpw] courier pop3d

2003-08-29 Thread John Simpson
On Friday, Aug 29, 2003, at 08:40 US/Eastern, Tobias wrote:

Ok so i can rewrite the supervise script to run with couriertcpd and
courierpop3d instead
Is it possible to get the courierpop3d to work with vpopmail  ?
How could a supervisescript for that look like ?
a few months ago i took /usr/lib/courier-imap/libexec/pop3d.rc and 
converted it to a daemontools run script. i don't use authdaemon, i 
use authvchkpw as my only authentication module, and i use tcpserver 
instead of couriertcpd.

http://www.jms1.net/courier/ has the details, including downloadable 
copies of the actual scripts i've been running with for the past 
several months.

hope this helps.

---
| John Simpson - KG4ZOW - Programmer at Large |
| [EMAIL PROTECTED]http://www.jms1.net/ |
---


PGP.sig
Description: PGP signature


Re: [vchkpw] courier pop3d

2003-08-29 Thread Tom Collins
On Friday, August 29, 2003, at 12:56  PM, John Simpson wrote:
i don't use authdaemon, i use authvchkpw as my only authentication 
module
Does anyone run vpopmail with authdaemon?  Version 5.2.1 won't work, 
and the early 5.3 series won't either, but most of the recent 5.3 
releases, and the 5.2.2 release should work with authdaemon.

I'd love to hear from someone who's tried with a recent version, and 
whether it worked or failed (and if it did fail, where/how did it fail).

--
Tom Collins
[EMAIL PROTECTED]
http://sniffter.com/ - info on the Sniffter hand-held Network Tester



Re: [vchkpw] courier pop3d

2003-08-29 Thread Michael Bowe
- Original Message - 
From: Tom Collins [EMAIL PROTECTED]
To: vpopmail list [EMAIL PROTECTED]
Sent: Saturday, August 30, 2003 6:38 AM
Subject: Re: [vchkpw] courier pop3d


 On Friday, August 29, 2003, at 12:56  PM, John Simpson wrote:
  i don't use authdaemon, i use authvchkpw as my only authentication
  module

 Does anyone run vpopmail with authdaemon?  Version 5.2.1 won't work,
 and the early 5.3 series won't either, but most of the recent 5.3
 releases, and the 5.2.2 release should work with authdaemon.

 I'd love to hear from someone who's tried with a recent version, and
 whether it worked or failed (and if it did fail, where/how did it fail).


Yes

I did that research a month or two back into what was causing the problem
(it was vpopmail's parse_email() function). This particular bug was fixed in
vpopmail-5.3.5

After discovering this, I went and rebuilt my server's courier-imap
  --with-authdaemon --with-authvchkpw

I have been running it in production now for a month or two
(vpopmail-5.3.24/26). Not a single problem

My guide has been updated with the instructions showing how I did it
http://www.pipeline.com.au/staff/mbowe/isp/webmail-server.htm#COURIER_IMAP

Michael.




[vchkpw] courier pop3d instead of qmail-pop3d

2003-08-28 Thread Tobias
Is it possible to run courier pop3d instead of qmail ?

How can i set it up in the run script for qmail-pop3d ?

//Tobias



Re: [vchkpw] courier pop3d instead of qmail-pop3d

2003-08-28 Thread Tom Collins
On Thursday, August 28, 2003, at 01:08  PM, Tobias wrote:
Is it possible to run courier pop3d instead of qmail ?

How can i set it up in the run script for qmail-pop3d ?
Yes it is possible, and many people do it.

Please refer to one of the excellent toaster documents out there on 
installing all of the components of a mail server.

Bill Shupp's is slightly out of date, but was a good starting point for 
me: http://www.shupp.org/.

Others have used Matt Simerson's: 
http://www.tnpi.biz/internet/mail/toaster/.

--
Tom Collins
[EMAIL PROTECTED]
http://sniffter.com/ - info on the Sniffter hand-held Network Tester