23 messages in net.sourceforge.lists.courier-users[courier-users] Need authProg help
FromSent OnAttachments
Mark ConstableMay 29, 2007 12:54 am 
Mark ConstableMay 30, 2007 3:35 am 
Mark ConstableMay 30, 2007 5:17 am 
Mark ConstableMay 30, 2007 6:27 am 
Sam VarshavchikMay 30, 2007 3:16 pm 
Mark ConstableMay 31, 2007 2:58 am 
Sam VarshavchikMay 31, 2007 3:59 am 
Mark ConstableMay 31, 2007 4:43 am 
Sam VarshavchikMay 31, 2007 4:08 pm 
Mark ConstableMay 31, 2007 7:52 pm 
Sam VarshavchikMay 31, 2007 9:00 pm 
Mark ConstableJun 1, 2007 12:21 am 
Sam VarshavchikJun 1, 2007 3:58 am 
Mark ConstableJun 1, 2007 5:59 am 
Aidas KasparasJun 1, 2007 7:15 am 
Sam VarshavchikJun 1, 2007 3:42 pm 
Mark ConstableJun 2, 2007 7:19 am 
Gordon MessmerJun 2, 2007 9:58 pm 
Mark ConstableJun 3, 2007 3:37 am 
Gordon MessmerJun 3, 2007 2:12 pm 
Mark ConstableJun 4, 2007 5:25 am 
Gordon MessmerJun 4, 2007 9:12 am 
Mark ConstableJun 4, 2007 10:01 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:[courier-users] Need authProg helpActions...
From:Mark Constable (mar@renta.net)
Date:May 29, 2007 12:54:05 am
List:net.sourceforge.lists.courier-users

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 daemon@mail:~$ /usr/sbin/authtest -s imap adm@netserva.org foobar Authentication FAILED: Input/output error

daemon@mail:~$ echo -e "AUTH 40\nimap\nlogin\nad@netserva.org\nfoobar" |
/etc/courier/authProg ADDRESS=adm@netserva.org 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