2006-07-20 07:54:37 +00:00
|
|
|
#!/bin/sh
|
|
|
|
# Nico Schottelius (c) 2001
|
|
|
|
# nico-linux at schottelius dot org
|
|
|
|
# make secure connections to your mail servers
|
|
|
|
# used at conferences / congresses / meetings
|
|
|
|
#
|
|
|
|
|
2017-07-21 14:58:47 +00:00
|
|
|
set -x
|
|
|
|
|
2017-03-08 06:37:05 +00:00
|
|
|
$HOME/bin/securemail.off
|
|
|
|
|
2006-07-20 07:54:37 +00:00
|
|
|
POP3=110
|
|
|
|
POP3S=995
|
|
|
|
IMAP=143
|
|
|
|
IMAPS=993
|
2008-11-28 11:30:16 +00:00
|
|
|
SMTP=25
|
2006-07-20 07:54:37 +00:00
|
|
|
|
|
|
|
# our secured host
|
2008-07-24 07:32:33 +00:00
|
|
|
HOST="bruehe.schottelius.org"
|
|
|
|
HOST="217.14.64.75"
|
|
|
|
HOST="creme.schottelius.org"
|
|
|
|
HOST="213.146.113.242"
|
2008-11-30 06:56:56 +00:00
|
|
|
HOST="nico@62.65.138.78"
|
2006-10-09 08:50:18 +00:00
|
|
|
HOST="home.schottelius.org"
|
2008-07-24 07:32:33 +00:00
|
|
|
HOST="nico@77.109.138.222"
|
2017-03-08 06:37:05 +00:00
|
|
|
#HOST="ssh.schottelius.org"
|
|
|
|
HOST="root@wein.ungleich.ch"
|
|
|
|
HOST="root@kaffee.ungleich.ch"
|
|
|
|
HOST="root@mx.ungleich.ch"
|
|
|
|
HOST="oneadmin@kaffee.ungleich.ch"
|
|
|
|
HOST="root@mx-hetzner01.ungleich.ch"
|
|
|
|
HOST="root@mx.ungleich.ch"
|
2008-07-24 07:32:33 +00:00
|
|
|
|
2013-10-26 21:28:38 +00:00
|
|
|
if [ $# -ge 1 ]; then
|
|
|
|
HOST=$1; shift
|
|
|
|
fi
|
|
|
|
|
2017-03-08 06:37:05 +00:00
|
|
|
# -R :4242:localhost:22 \
|
2017-07-21 14:58:47 +00:00
|
|
|
|
2013-10-26 21:28:38 +00:00
|
|
|
ssh -T -f -C -N \
|
2017-03-08 06:37:05 +00:00
|
|
|
-L2323:mx.ungleich.ch:$IMAPS \
|
|
|
|
-L4241:mx.ungleich.ch:$SMTP \
|
2013-10-26 21:28:38 +00:00
|
|
|
-L2324:imap.googlemail.com:$IMAPS \
|
|
|
|
-L2325:mail.zhaw.ch:$IMAPS \
|
2017-03-08 06:37:05 +00:00
|
|
|
-L2326:imap.googlemail.com:$POP3S \
|
|
|
|
-D 3128 "$@" \
|
|
|
|
"$HOST" && sendmail -q
|
2008-07-24 07:32:33 +00:00
|
|
|
|
2008-11-28 11:30:16 +00:00
|
|
|
# Fernzugriff
|
2013-10-26 21:28:38 +00:00
|
|
|
# ssh -T -f -C -N -R4242:localhost:22 "$HOST"
|
2008-11-28 11:30:16 +00:00
|
|
|
|
2008-11-30 06:56:56 +00:00
|
|
|
#ssh -T -f -C -N -L2342:mx2.schottelius.org:$SMTP 62.65.138.66
|
|
|
|
#ssh -T -f -C -N -L4242:imaps.schottelius.org:$IMAPS "$HOST"
|
2008-11-28 11:30:16 +00:00
|
|
|
#ssh -T -f -C -N -L2323:ddba020.netstream.ch:$POP3S "$HOST"
|
2008-07-24 07:32:33 +00:00
|
|
|
#ssh -T -f -C -N -L2342:ddba020.netstream.ch:$IMAP "$HOST"
|
2008-11-28 11:30:16 +00:00
|
|
|
#ssh -T -f -C -N -L2323:proxy001.exchange.netvs.ch:$IMAP "$HOST"
|
|
|
|
#ssh -T -f -C -N -L4223:ddba020.netstream.ch:$POP3S "$HOST"
|
2006-07-20 07:54:37 +00:00
|
|
|
|
2006-10-09 08:50:18 +00:00
|
|
|
#ssh -T -f -C -N -L2323:smtp.syhosting.ch:$IMAPS "$HOST"
|
|
|
|
#ssh -T -f -C -N -L2342:smtp.syhosting.ch:$POP3S "$HOST"
|
|
|
|
#ssh -T -f -C -N -L4242:home.schottelius.org:$IMAP "$HOST"
|
2006-07-20 07:54:37 +00:00
|
|
|
|
|
|
|
#ssh -T -f -C -N -L4242:mail.schottelius.org:$POP3 "$HOST"
|
|
|
|
#ssh -T -f -C -N -L2323:mail.schottelius.org:25 mail.schottelius.org
|
|
|
|
#ssh -T -f -C -N -L2323:mail.folz.de:110 "$HOST"
|