I'm reposting this from the vmailmgr list from April 22nd. Maybe someone watching the BincIMAP list can help.
I've been trying to get BincIMAP version 1.2.7final to work with vmailmgr ver 0.96.9. I followed the instructions at http://projectdream.org/publications/bincimap.html with no success.
I think the checkvpw program of vmailmgr and BincIMAP are not playing together well.
I'll try to supply the relevant information below.
----------
First I want to show you the vmailmgr virtual account is setup correctly and works with pop3 and vmailmgr:
[EMAIL PROTECTED] joe]$ telnet qmail.zackynet.com 110 Trying 10.200.1.2... Connected to qmail.zackynet.com. Escape character is '^]'. +OK <[EMAIL PROTECTED]> user zackynet-jztest +OK pass testpass +OK list +OK 1 1199 . quit +OK Connection closed by foreign host. ---------- Here's me trying to login to imap using 3 different ways to specify a virtual user name, they all fail:
[EMAIL PROTECTED] joe]$ telnet qmail.zackynet.com 143 Trying 10.200.1.2... Connected to qmail.zackynet.com. Escape character is '^]'. * OK Welcome to Binc IMAP Copyright (C) 2002-2004 Andreas Aardal Hanssen at 2004-04-23 09:53:47 PDT 1 LOGIN zackynet-jztest testpass 1 NO LOGIN failed: Login failed. Either your user name or your password was wrong. Please try again, and if the problem persists, please contact your system administrator. 2 LOGIN zackynet:jztest testpass 2 NO LOGIN failed: Login failed. Either your user name or your password was wrong. Please try again, and if the problem persists, please contact your system administrator. 3 LOGIN [EMAIL PROTECTED] testpass * BYE The server died unexpectedly. Please contact your system administrator for more information. Connection closed by foreign host.
Note: I contacted my system administrator but I wasn't any help. ---------- Here's my authenticaion wrapper:
[EMAIL PROTECTED] root]# cat /var/qmail/bin/bincauthwrap #!/bin/sh # # Wrapper to allow binc imap to use virtual domains (vmailmgr) # along with local mail users
export MAILDIR="$2" cd "$HOME"/"$2" exec "$@" ---------- This is my bincimap run file:
[EMAIL PROTECTED] root]# cat /var/qmail/supervise/bincimap/run #!/bin/sh # $Id: run.in,v 1.1.1.1 2003/08/18 18:06:05 andreaha Exp $ # daemontools supervise run-file for Binc IMAP Service.
exec /usr/local/bin/tcpserver -vRH -l "`hostname`" 0 143 \
/var/qmail/bin/bincimap-up \
--logtype=multilog \
--conf=/var/qmail/control/bincimap.conf -- \
/usr/local/bin/checkvpw /var/qmail/bin/bincauthwrap \
/var/qmail/bin/bincimapd Maildir 2>&1
----------
My bincimap.conf looks like this (with comments edited out):Authentication {
allow plain auth in non ssl = "yes",
auth penalty = 4,
disable starttls = "no"
}
Security {
jail path = "/var/qmail/supervise/bincimap",
jail user = "nobody",
jail group = "nobody"
}
Log {
type = "multilog",
environment ip variable = "TCPREMOTEIP"
}
Mailbox {
depot = "IMAPdir",
type = "Maildir",
path = ".",
auto create inbox = "yes",
auto subscribe mailboxes = "INBOX",
umask = "000"
}
Session {
idle timeout = 1860,
auth timeout = 60,
transfer timeout = 1200,
transfer buffer size = 1024
}
SSL {
pem file = "/var/qmail/control/bincimap.pem",
ca file = "",
ca path = "",
cipher list = "!ADH:RC4+RSA:HIGH:MEDIUM:LOW:EXP:+SSLv2:+EXP",
verify peer = "no"
}---------- Here's the bincimap log for that time period:
2004-04-23 09:53:47.062045500 tcpserver: status: 1/40 2004-04-23 09:53:47.062848500 tcpserver: pid 10913 from 10.200.1.2 2004-04-23 09:53:47.063132500 tcpserver: ok 10913 qmail.zackynet.com:10.200.1.2:143 :10.200.1.2::55860 2004-04-23 09:53:47.106879500 10913 0 [EMAIL PROTECTED]:] connection from 10.200.1.2 2004-04-23 09:54:19.587515500 10913 1 [EMAIL PROTECTED]:] <zackynet-jztest> authentication failed: wrong userid or password 2004-04-23 09:54:51.367785500 10913 2 [EMAIL PROTECTED]:] <zackynet:jztest> authentication failed: wrong userid or password 2004-04-23 09:55:13.904058500 10913 3 [EMAIL PROTECTED]:] <[EMAIL PROTECTED]> authentication failed: server returned 111 (internal error) 2004-04-23 09:55:13.904295500 10913 4 [EMAIL PROTECTED]:] shutting down - read:106 bytes, wrote:813 bytes. 2004-04-23 09:55:13.907284500 tcpserver: end 10913 status 0 2004-04-23 09:55:13.907371500 tcpserver: status: 0/40 ---------- I ran an strace of the above like this: strace -f -F -p 9804 -o ~/debug
And I posted it here: http://63.200.164.67/strace.txt ----------
I hope someone can help me make some sense out of all this.
Cheers, Joe Zacky
