From owner-freebsd-questions Sat Aug 5 3: 5:24 2000 Delivered-To: freebsd-questions@freebsd.org Received: from luna.osd.bsdi.com (luna.geekhouse.net [64.81.6.50]) by hub.freebsd.org (Postfix) with ESMTP id E401837B9BA for ; Sat, 5 Aug 2000 03:05:17 -0700 (PDT) (envelope-from jim@luna.osd.bsdi.com) Received: by luna.osd.bsdi.com (Postfix, from userid 1000) id 6C021319E; Sat, 5 Aug 2000 03:05:17 -0700 (PDT) Date: Sat, 5 Aug 2000 03:05:17 -0700 From: Jim Mock To: Thomas Bader Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Cannot get mail using fetchmail and ssh Message-ID: <20000805030517.F2579@luna.osd.bsdi.com> Reply-To: jim@jmock.com References: <20000805115816.A3728@trash.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20000805115816.A3728@trash.net>; from thomasb@trash.net on Sat, Aug 05, 2000 at 11:58:16AM +0200 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Sat, 05 Aug 2000 at 11:58:16 +0200, Thomas Bader wrote: > Hi > > I have the following .fetchmailrc: > > poll MYSERVER > via localhost port 1234 > protocol pop3 > user XXXX > pass "YYYY" > is bader > preconnect "ssh -i ~/.ssh/identity -x -f -L 1234:MYSERVER:110 MYSERVER sleep 20 < /dev/null > /dev/null" > > When I run "fetchmail -va", fetchmail does not connect to > localhost:1234, instead it connects to localhost:110. But I > don't have a user thomasb on localhost. > > I'd like fetchmail to connect to localhost:1234, so the > entire connection to MYSERVER would tunneled and encrypted > using ssh. Any Ideas? You can try taking the port out of your .fetchmailrc and running ``fetchmail -vaP 1234'' (you might also need -d) and see if that works. See the fetchmail man page for more info. - jim -- jim mock work: jim@osd.bsdi.com | jim@FreeBSD.org http://soupnazi.org/ BSDi Open Source Div | http://bsdi.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message