Joe,
What does the following produce? printf "zackynet-jztest\0testpass\0Y123456\0" | /usr/local/bin/checkvpw echo SUCCESS 3<&0
Note that I have to export some variables first:
[EMAIL PROTECTED] root]# export TCPLOCALHOST=10.200.1.2;export USER=zackynet;export HOME=/var/vmail/zackynet/
[EMAIL PROTECTED] root]# printf "zackynet-jztest\0testpass\0Y123456\0" | /usr/local/bin/checkvpw echo SUCCESS just_garbage_here 3<&0
SUCCESS ./users/jztest
[EMAIL PROTECTED] root]# printf "zackynet-jztest\0testpass\0Y123456\0" | /usr/local/bin/checkvpw echo SUCCESS 3<&0
./users/jztest
Interesting the way checkvpw rewrites the parameters.
After reading the other thread " binc 1.2.7final vmailmgr strace" about how the maildir parameter is qualified or not...I got things to work, without the patch, by changing the auth wrapper. Here's my new auth wrapper:What's in you run file?
#!/bin/sh # # Wrapper to allow binc imap to use virtual domains (vmailmgr) # along with local mail users
export MAILDIR="$2" cd "$HOME"/"$2" #exec "$@" exec "$1"
Henry
[EMAIL PROTECTED] root]# cat /service/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- Joe
