On Thu, 2003-11-27 at 08:45, leam wrote: > Pardon my lack of imap understanding; if I have an imap server and I > have a seperate physical machine as a workstation can I: > 1. Use a GUI on the workstation > --and-- > 2. a mutt-ish type client if I ssh in remotely to the imap server? Yes, absolutely. Your choice of mail client does not depend necessarily on local vs. remote. I happen to use evolution on my laptop and--when my laptop isn't handy--mutt via ssh. On the laptop I have a script at ~/bin/tunnel (see attached) that gets sourced in my .bashrc file. Evolution is configured to use localhost:7143 for retrieving and localhost:7025 for sending. This means that evolution works without reconfig whether I'm at home or anywhere else having an Internet connection with ssh through the firewall. My laptop is wireless, so it also means that my imap traffic is _always_ encrypted, plus the firewalls on my laptop and wireless gateway only have to allow ssh ports. HTH, Paul
#!/bin/sh # set up ssh forwarding so that evolution # does not have to be reconfigured between # work and home # plus: encrypted! LAPTOP_AT_HOME="192\.168\.1\.14" TUNNEL=1 if [ $TUNNEL -eq 1 ]; then #/sbin/ifconfig -a | grep "192\.168\.1\.14" > /dev/null 2>&1 /sbin/ifconfig -a | grep $LAPTOP_AT_HOME > /dev/null 2>&1 if [ $? -eq 0 ]; then # home IMAP_SERVER="192.168.1.234" SMTP_SERVER="192.168.1.234" else # remote IMAP_SERVER="`ipgw`" SMTP_SERVER="`ipgw`" # note: ipgw is a separate script that digs the # dyndns ip of my gateway and returns just the ip # (I have a reason for separating it this way, # but most folks could just use the dns name) fi netstat -ln | grep 127.0.0.1:7143 > /dev/null 2>&1 if [ $? -eq 1 ]; then ssh -fNL 7143:192.168.1.234:143 $IMAP_SERVER fi netstat -ln | grep 127.0.0.1:7025 > /dev/null 2>&1 if [ $? -eq 1 ]; then ssh -fNL 7025:192.168.1.234:25 $SMTP_SERVER fi fi