Re: fetchmail and ssh
Thanks,
It's working now. I used your suggested rc file, but the bo fetchmail
choked on it. Then I downloaded the fetchmail source from hamm
and compiled it on bo. Your suggestion works fine with the latest
fetchmail. The docs for the new fetchmail are also better. Thanks also
to Obi who sent similar info in private email.
On Mon, Mar 30, 1998 at 11:08:00PM -0500, Ngo Bach Long wrote:
> This is what I put in my .fetchmailrc
>
> poll picton.eecg.utoronto.ca protocol pop3 via localhost port 8110
> username bach password krakthis
> preconnect "ssh -f -L 8110:picton.eecg.utoronto.ca:110 picton.eecg.utoronto.ca sleep 20 </dev/null >/dev/null"
>
> So the following might work for you:
>
> poll mail.alantro.com proto pop3 via localhost port 2110
> preconnect "ssh -f -L 2110:mail.alantro.com:110 mail.alantro.com sleep 20 </dev/null >/dev/null"
> user lee, with password password, is lee here
> fetchall
>
> A similar example is given in the fetchmail man page (just search for "ssh").
> (I'm using the fetchmail 4.3.9-1 package that comes with hamm)
>
> The /dev/null stuff seems to be important; I couldn't get the ssh+fetchmail
> combination to work when I removed the /dev/null I/O redirection.
>
> The "sleep 20" is also important. Basically ssh connects to your mail
> server and maps port 2110 on your machine to port 110 on the mail
> server, then quits after 20 seconds or after all forwarded connections
> are terminated.
>
> Tell me how it goes.
>
> >
> > Here is part of my .fetchmailrc for my closest attempt:
> >
> > poll mail.alantro.com proto pop3
> > port 2110
> > preconnect "ssh -L 2110:127.0.0.1:110 mail.alantro.com"
> > user lee, with password password, is lee here
> > fetchall
> >
> >
> > When I run "fetchmail mail.alantro.com" it opens a shell on
> > mail.alantro.com. When I exit the shell, it seems to stall until I hit
> > Ctrl-C.
>
>
> --
> To UNSUBSCRIBE, email to debian-user-request@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
--
Lee Bradshaw lee@sectionIV.com (preferred)
Alantro Communications lee@alantro.com
--
To UNSUBSCRIBE, email to debian-user-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Reply to: