[Alpine-info] Access remote_pinerc over ssh-tunneled preauth IMAP
Jonathan Hankins
jhankins at homewood.k12.al.us
Fri Feb 8 15:10:37 PST 2008
Hey,
There was an old message on comp.mail.pine about this, but no solution.
http://groups.google.com/group/comp.mail.pine/msg/fa460a52a6d2994a
Looked at the debug output, and it seems that even specifying the SSH
options in /etc/pine.conf or on the command line doesn't work, because
the code to read the remote pinerc comes very early. So, strace output
shows alpine doing:
execve("/usr/bin/rsh", ["/usr/bin/rsh", "localhost", "-l", "jhankins",
"exec", "/etc/rimapd"]
Now, on my debian box, /usr/bin/rsh is a symlink to /usr/bin/ssh.
However there is no /etc/rimapd (I am using dovecot). Since there is no
way to override rsh-command, and it never appears to try ssh-command,
creating a little wrapper as /etc/rimapd does the trick:
#!/bin/sh
exec /usr/sbin/dovecot --exec-mail imap
I don't see anything in ssh(1) (openssh) that indicates it behaves
differently when called as rsh, but didn't look too hard.
It would be nice if options specified in the global pine.conf, or manually
on the command line "took" before the attempt to read the remote pinerc.
Thanks,
-Jonathan Hankins
--
--------------------------------------------------------------------------
-- Jonathan Hankins Homewood City Schools --
-- --
-- jhankins at homewood.k12.al.us --
--------------------------------------------------------------------------
More information about the Alpine-info
mailing list