What's the best way to automatically swap smart hosts (sendmail)?

Marc Nozell marc at nozell.com
Tue Jul 1 11:13:05 EDT 2003


My laptop also travels between different networks (home,
work-behind-firewall and work-not-behind-firewall).

I set the smtp host for evolution (kmail, mozilla -mail, etc) to be:
localhost:2525 and then use a network-appropriate script to forward
the mail across ssh to a properly configured mail server. 

#!/bin/bash
# connect-smtp-home
# port 2525 -> SMTP on home linux server
ssh -f -C -L 2525:127.0.0.1:25 -l marc nozell.dyndns.org sleep 3600

#!/bin/bash
# connect-smtp-work
# port 2525 -> SMTP on work desktop linux server
ssh -f -C -L 2525:127.0.0.1:25 -l marc XXX.XXX.XXX sleep 3600

#!/bin/bash
# connect-smtp-work-external
# port 2525 -> SMTP on work external linux server
ssh -f -C -L 2525:127.0.0.1:25 -l nozell YYY.YYY.YYY sleep 3600

Don't know about mutt, but surely there is a way.

-marc
--
Marc Nozell <marc at nozell.com>		http://www.nozell.com/blog
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://mail.gnhlug.org/mailman/private/gnhlug-discuss/attachments/20030701/64f4d600/attachment.bin


More information about the gnhlug-discuss mailing list