Skip site navigation (1)Skip section navigation (2)
Date:      08 Jul 2000 13:43:13 -0700
From:      Harry Putnam <reader@newsguy.com>
To:        freebsd-mobile@FreeBSD.ORG
Subject:   Ssh from FreeBSD laptop to view mail 
Message-ID:  <m2r994l5em.fsf@reader.ptw.com>

next in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?m2r994l5em.fsf>