Here is my scenario for checking email:
If I'm at home I use the WiFi connection in the Z to connect to my home IMAP server. Fine, all is good and happy.
Now I go to work. In order to connect my Z at work through to my Z at home I need to first establish an ssh tunnel through to my machine at home, and reconfigure the email app to connect to the local port which goes through the ssh tunnel.
Having to switch between these two configurations is a bit of a pain. I was thinking that it would perhaps make more sense to have a little daemon running on the Z which listens on a port, and the email client connects to that local port. Once it gets a connection, the daemon could then determine which network profile is active and either forward out from that port directly to the IMAP server when I'm at home, and otherwise then create an ssh tunnel, and forward everything via that.
Does such a thing already exist somewhere?
It's not really a big project so I will put something together myself if it doesn't already exist.