Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Pine, ssh and Cyrus imapd

0 views
Skip to first unread message

Simon Higgs

unread,
Mar 13, 2002, 11:10:01 AM3/13/02
to
I'm trying to read mail from a Cyrus imap server via ssh.
The session is started, and the publickey is accepted. Pine then closes
the ssh session, and falls back to password authentication. I guess it
then connects to port 143, and the cyrus imapd is started by inetd.

Is this correct.
ssh-command= %s %s -q -l %s exec /usr/sbin/%sd
(imapd is /usr/sbin/imapd)

TIA, Simon.

btw, can pine create new folders on the server, or would this have to
be done before-hand and the specified in the .pinerc?

Will Yardley

unread,
Mar 13, 2002, 11:33:54 AM3/13/02
to
In article <slrna8uueo.bh.pl...@test.higgs.org>, Simon
Higgs wrote:

> I'm trying to read mail from a Cyrus imap server via ssh.
> The session is started, and the publickey is accepted. Pine then closes
> the ssh session, and falls back to password authentication. I guess it
> then connects to port 143, and the cyrus imapd is started by inetd.
>
> Is this correct.
> ssh-command= %s %s -q -l %s exec /usr/sbin/%sd
> (imapd is /usr/sbin/imapd)

if you're using cyrus imapd, this might not work.... what happens when
you ssh to the machine with that command; ie:
ssh hostname -q -l username exec /usr/sbin/imapd

you want it to say something like:
* PREAUTH Ready.
or
* PREAUTH [0.0.0.0] IMAP4rev1 2000.281 at Wed, 13 Mar 2002 08:29:09 -0800 (PST)

i'm not sure how this would work with cyrus, or whether it will work at
all.

i made this work with courier imapd by making /etc/imapd with this in
it:
zugzug% cat /etc/rimapd
#!/bin/sh
umask 077

/usr/bin/imapd 2> /dev/null Maildir

otherwise it doesn't work because if you run the courier binary directly
it sends stderr along with stdout (since it's not being run by courier's
standard facilities).

i know that cyrus works differently, and i'm not sure if it's possible
to do this - cyrus is really designed to be a "sealed" system. you
might want to ask in a forum for cyrus, since someone there might know
better.

note that the imapd binary is being executed directly, so inetd isn't
really involved at all here.

--
No copies, please.
To reply privately, simply reply; don't remove anything.

Nancy McGough

unread,
Mar 13, 2002, 12:42:40 PM3/13/02
to
On 13 Mar 2002 Simon Higgs (please.us...@ntlworld.com) wrote:
> btw, can pine create new folders on the server, or would this have to
> be done before-hand and the specified in the .pinerc?

Pine can (of course!) create folders on the IMAP server, but
first you need to add the server to your list of
folder-collections (or news-collections (either will work)). I
walk through doing this here

Setting Local and Remote Folder Collections
<http://www.ii.com/internet/messaging/pine/pc/#setFolders>

The example IMAP server that I use is fastmail.fm, which is
running Cyrus, so it should be especially relevant to you.

HTH,
Nancy
^x


REFERENCE:
The message I'm replying to -- and this entire thread & group --
may be available at

<http://groups.google.com/groups?selm=slrna8uueo.bh.pl...@test.higgs.org>

--
ii Main Pine Page: <http://www.ii.com/internet/messaging/pine/>

Nancy McGough <http://www.ii.com/> Infinite Ink
--= Sent via Pine 4.44: IMAP, NNTP & ESMTP for Unix/Win/MacOS X =--

0 new messages