4 messages in net.sourceforge.lists.courier-usersRe: [courier-users] Re: pine questions
FromSent OnAttachments
Will YardleyDec 10, 2001 9:05 pm 
Sam VarshavchikDec 10, 2001 9:23 pm 
Will YardleyDec 10, 2001 10:12 pm 
Will YardleyDec 10, 2001 10:30 pm 
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:Re: [courier-users] Re: pine questionsActions...
From:Will Yardley (will@hq.newdream.net)
Date:Dec 10, 2001 10:12:40 pm
List:net.sourceforge.lists.courier-users

Sam Varshavchik wrote:

i can't do something like this:

jazz [~]% ssh zugzug exec /etc/rimapd Maildir * PREAUTH Ready. INFO: LOGIN, user=user, ip=[127.0.0.1] a01 login william mypassword a01 NO Error in IMAP command received by server.

(with or without 'Maildir' after /etc/rimapd)

but it works properly if i telnet to port 143 and login the same way.

Right. Two things are different:

1) You need to dump stderr. stderr is used for logging. You don't see stderr on port 143 connection, because stderr gets dumped to syslog. If you do an rsh, stderr then gets in with stdout.

i can presumably get rid of the errors by doing:

jazz [~]% ssh zugzug exec "/etc/rimapd 2> /dev/null Maildir" * PREAUTH Ready.

presumably this will use the user's shell, so if the user has a c-related shell, putting the '2> /dev/null' in the ssh-command won't work; i guess i could do something to execute 'sh' first.....

2) As you can see, starting imapd this way will make it come up in preauthenticated state. This is really pine's breakage. Pine should be smart enough to pick off the server's * PREAUTH response, and forego authentication.

is there a workaround of any sort for number 2?

uw-imapd also seems to come up pre-authenticated, so i'm not cclear what the exact difference is here:

(courier) jazz [~]% ssh zugzug exec "/etc/rimapd 2> /dev/null Maildir" * PREAUTH Ready. a01 select inbox * FLAGS (\Draft \Answered \Flagged \Deleted \Seen \Recent) * OK [PERMANENTFLAGS (\Draft \Answered \Flagged \Deleted \Seen)] Limited * 14 EXISTS * 0 RECENT * OK [UIDVALIDITY 997096522] Ok a01 OK [READ-WRITE] Ok

(uw) jazz [~]% ssh dot exec /etc/rimapd * PREAUTH [0.0.0.0] IMAP4rev1 2000.281 at Mon, 10 Dec 2001 21:56:36 * -0800 (PST) a01 select inbox * 1 EXISTS * 0 RECENT * OK [UIDVALIDITY 1003884121] UID validity status * OK [UIDNEXT 2] Predicted next UID * FLAGS (\Answered \Flagged \Deleted \Draft \Seen) * OK [PERMANENTFLAGS (\* \Answered \Flagged \Deleted \Draft \Seen)] * Permanent flags a01 OK [READ-WRITE] SELECT completed

these seem pretty much the same, and yet i haven't been able to get it to work on the courier machine.

has anyone gotten this to work successfully?