From owner-freebsd-mobile Sat Jul 8 13:43:19 2000 Delivered-To: freebsd-mobile@freebsd.org Received: from mail.networkone.net (mail.networkone.net [209.144.112.75]) by hub.freebsd.org (Postfix) with SMTP id ACD6537BB1D for ; Sat, 8 Jul 2000 13:43:17 -0700 (PDT) (envelope-from reader@newsguy.com) Received: (qmail 15450 invoked from network); 8 Jul 2000 20:43:16 -0000 Received: from adsl-117-113.ln.networkone.net (HELO reader.ptw.com) (209.144.117.113) by mail.networkone.net with SMTP; 8 Jul 2000 20:43:16 -0000 Received: (from reader@localhost) by reader.ptw.com (8.9.3/8.9.3) id NAA30324; Sat, 8 Jul 2000 13:43:13 -0700 To: freebsd-mobile@FreeBSD.ORG Subject: Ssh from FreeBSD laptop to view mail From: Harry Putnam Date: 08 Jul 2000 13:43:13 -0700 Message-ID: Lines: 36 User-Agent: Gnus/5.0807 (Gnus v5.8.7) Emacs/20.5 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Running a Toshiba 4005CDS with FreeBSD 4.0 snap 06/24 I have ssh-1.2.27 installed and use it extensively. In fact I've set my machines (personal at home machines) to only allow connections via ssh. Now I want to have a laptop running FreeBSD 4.0 networked to desktop running Redhat linux, be able to view/manipulate mail on the parent machine but don't want to setup pop, imap or special sendmail stuff. I don't want more daemons running that can be exploited from the internet. And haven't really looked into firewall technique. I realize there are other ways via scp, rsync, mirror using ssh but it seems the most convient to have the laptop users inbox be a ssh connection to the parent desktop at /var/spool/mail/$NAME I'll use procmail to send a copy of every mail to /var/spool/mail/NAME, on the parent machine. I know how to do that part. Then both machines will have full access to the mail without scewing up the others spool. I would like to just have $MAIL on the laptop set to `ssh PARENT:/var/spool/mail/$NAME' to access the procmail created spool on the parent machine. I'm pretty lost how to script this so that when a mail client is called, a ssh connection is initiated and /var/spool/mail/$NAME becomes the inbox. What would be nice is to just say `mutt' and a ssh connection is started and mail in PARENT:/var/spool/mail/$NAME is viewed, deleted saved etc. I have ssh-agent setup and do understand how to avoid password problems during connections. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message