See also

Also, for most users, the campus VPN will be a better option for protecting connection from off-campus. See

Create an ssh tunnel to the IMAP server to make the IMAP connection local to the server. This works around a number of issues that can arise when using IMAP remotely.

You can use ssh keys and ssh-agent to make it more convenient to connect to the IMAP server, see SshKeys.


Download the attached file sshmail. It is configured for edit it if you use a different server. Also, if your username is different on the server than on the client, you'll need to specify your username.

Then setup your email client like this:

  • Email client settings specifying the server:

  • Client settings for the outgoing server:

  • Details of the outgoing server settings:

Using it

To use this, you must open the ssh tunnel. Run the script sshmail from the command line, ssh will ask for your password to Your email client will asked for the password to "localhost", here you again give your password to (this is for the actual IMAP connection).

-- TomRockwell - 31 Aug 2006
Topic attachments
I Attachment Action Size Date Who Comment
outgoing_server_details.pngpng outgoing_server_details.png manage 21 K 31 Aug 2006 - 20:38 TomRockwell Details of the outgoing server settings
outgoing_server_settings.pngpng outgoing_server_settings.png manage 53 K 31 Aug 2006 - 20:38 TomRockwell Client settings for the outgoing server
server_settings.pngpng server_settings.png manage 68 K 31 Aug 2006 - 20:37 TomRockwell Email client settings specifying the server
sshmailEXT sshmail manage 176 bytes 02 Jan 2007 - 00:21 TomRockwell bash script for opening the ssh tunnel
Topic revision: r13 - 16 Oct 2009, TomRockwell
This site is powered by FoswikiCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding Foswiki? Send feedback