[ answering to a message posted a long time ago]
FAQ K3. begins:
'Use the plugin option. This is dead simple with IMAP: plugin "ssh
%h /usr/sbin/imapd"'
It's proving to be harder than that, perhaps because of a SOCKS proxy
(proxy.lafn.org:1080).
ssh works:
debian:/tmp/fetchmail-5.3.3# ssh -l rcymbala mail.marxists.org
/usr/sbin/imapd
* PREAUTH [247.114.25.64] IMAP4rev1 v12.264 server ready
Killed by signal 2.
Debian's stable package doesn't have SOCKS support built-in:
debian:/tmp/fetchmail-5.3.3# /usr/bin/fetchmail -V | grep This
This is fetchmail release 5.3.3+NTLM+SDPS+NLS
After ``apt-get source'' and re-compiling with '--with-socks' (because
'--with-socks5' fails) the execl() fails:
debian:/tmp/fetchmail-5.3.3# /usr/local/bin/fetchmail -V | grep This
This is fetchmail release 5.3.3+NTLM+SDPS+SOCKS
debian:/tmp/fetchmail-5.3.3# /usr/local/bin/fetchmail -v -a -k
fetchmail: 5.3.3 querying mail.marxists.org (protocol IMAP) at Sun, 08 Jul
2001 22:42:36 -0700 (PDT)
fetchmail: running ssh -l rcymbala mail.marxists.org /usr/sbin/imapd
mail.marxists.org 143
fetchmail: execl(ssh -l rcymbala mail.marxists.org /usr/sbin/imapd) failed
fetchmail: socket error while fetching from mail.marxists.org
fetchmail: Query status=2 (SOCKET)
fetchmail: normal termination, status 2
I couldn't get +NLS using "--enable-nls" and don't know whether it's
required. The run-control is:
debian:/tmp/fetchmail-5.3.3# cat /root/.fetchmailrc
poll mail.marxists.org with proto IMAP:
plugin "ssh -l rcymbala mail.marxists.org /usr/sbin/imapd"
user "rcymbala" there with password "masked"
is cymbala here options keep
SOCKS configuration:
debian:/tmp/fetchmail-5.3.3# egrep 206 /etc/socks.conf
sockd @=206.117.18.6 0.0.0.0 0.0.0.0 ppp0
What can I do or try? I've posted to
debian-user(_at_)lists(_dot_)debian(_dot_)org
but haven't seen a reply.
I ran into the same problem ; what I found here
(http://mail-index.netbsd.org/netbsd-help/1999/11/14/0000.html)
seems to work but i don't know why :
You need to create a script and call it with the plugin option
in the fetchmailrc file :
$cat ~/bin/sshmail
#!/bin/sh
exec ssh $1 /usr/local/libexec/imapd
$cat .fetchmailrc
poll crc proto imap plugin sshmail preauth ssh
Regards,
Jean