I'm trying to get courier-authlib-pipe 0.58-4 on Debian4 to work
and have got this far... any suggestions ?
May 29 03:18:24 us imapd-ssl: authentication error: Input/output error
May 29 03:18:24 us authdaemond: cat: write error: Broken pipe
May 29 03:21:07 us authdaemond: cat: write error: Broken pipe
May 29 03:24:31 us authdaemond: /etc/courier/authProg: line 23: echo: write
error: Broken pipe
May 29 03:25:58 us authdaemond: /etc/courier/authProg: line 23: echo: write
error: Broken pipe
# su - daemon
[EMAIL PROTECTED]:~$ /usr/sbin/authtest -s imap [EMAIL PROTECTED] foobar
Authentication FAILED: Input/output error
[EMAIL PROTECTED]:~$ echo -e "AUTH [EMAIL PROTECTED]" | /etc/courier/authProg
[EMAIL PROTECTED]
PASSWD2=foobar
UID=1
GID=1
HOME=/home/m/org/netserva/admin
MAILDIR=Maildir
OPTIONS=
QUOTA=10000000S
.
# /etc/courier ls -ltr | tail -n1
-rwxrwxr-x 1 daemon daemon 473 May 29 03:23 authProg*
# /etc/courier cat authProg
#!/bin/bash
ARGS=$(/bin/cat -)
echo $(/bin/date +'%Y%m%d %T') $ARGS >> /var/log/authprog.log
ID=$(echo $ARGS|awk '{print $5}')
PW=$(echo $ARGS|awk '{print $6}')
RESULT=$(echo "select mpath,mquota from passwd where uid='$ID' and
pw='$PW';"|sqlite3 /home/a/admin.sqlite)
if [ "x$RESULT" != "x" ]; then
MPATH=$(echo $RESULT|awk -F\| '{print $1}')
/bin/cat << EOM
ADDRESS=$ID
PASSWD2=$PW
UID=1
GID=1
HOME=$MPATH
QUOTA=10000000S
.
EOM
else
echo FAIL
fi
--markc
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
courier-users mailing list
[email protected]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users