location: Diff for "thunderbird"

Institute of Mathematics - PublicMathWiki:

Differences between revisions 3 and 4
Revision 3 as of 2009-08-17 15:10:31
Size: 4919
Editor: dcaspar
Comment:
Revision 4 as of 2009-08-17 15:10:55
Size: 4912
Editor: dcaspar
Comment:
Deletions are marked like this. Additions are marked like this.
Line 79: Line 79:
=== Establishing the SSH tunnel on the commandline === === Establishing the SSH tunnel for experts ===

Thunderbird

Sending Mails (SMTP) over an SSH tunnel

It is possible to send mails from outside our university using our mail server over an SSH-tunnel. To do this, you need two things:

  • a SSH client like Putty or SSH Secure Shell
  • an additional profile in Thunderbird for our mail server

The configuration of both the ssh client and thunderbird is described below. I've you are an advanced user and used to using SSH, especially in a shell, scroll down to get a very short explanation how you can establish the SSH tunnel using the ssh comandline tool.

Configuring the SSH client

As an example, we will demonstrate here how you have to configure SSH Secure Shell to build up an SSH tunnel to our network allowing you to use our mail server.

Download and install SSH Secure Shell. You can download it from this location, its is free for non-commercial use.

Start SSH Secure Shell. If you use it for the first time, you need to create a new profile. Click on "File -> Profiles -> Add Profile ..." and enter a name for your profile.

/home/c/dcaspar/Desktop/Images/sshsecshell1.png

In the example, we created a new profile called "dc".

Now, you need to configure the profile just created. Open the configuration windows via "File -> Profiles -> Edit Profiles ..." and select your profile from the displayed list. Make sure that the "Connections"-Panel is shown on the right side. Fill in the host name, your username and the portnumber as shown in the following table. The other options should work fine.

Host Name:

mathssh.uzh.ch

User Name:

your own username

Port Number:

22

sshsecshell2.png

Now select the "Outgoing Tunneling"-Panel on the right and Click on "Add...". In the opened window, provide the following information as described bellow:

Display Name

a name for this tunnel, e.g. "smtp"

Type

TCP

Listen Port

Enter a port above 1023, e.g. 25025

Destination Host

mail.math.uzh.ch

Destination Port

2525

sshsecshell2b.png

sshsecshell3.png

Click two times on "Ok" to store the Tunnel and close both the "Add New Outgoing Tunnel" window and the "Profiles" window.

Configure Thunderbird

Next, you need to configure Thunderbird to use your SSH tunnel. Open Thunderbird, open your account settings via "Tools -> Account Settings..." and select "Outgoing Server (SMTP)" on the left.

thunbird1.png

Now, click on "Add..." on the right to bring up the "SMTP Server" window. Enter the following information:

Description

Enter a description/name for this smtp server (optional)

Server Name

127.0.0.1

Port

the port you entered as listening port for your SSH tunnel (see section above), e.g. 25025 like in the example

Check "Use name and password" and enter your username. Select "TLS" under "Use secure connection".

thunbird2.png

Click "Ok" two times to close both windows and save the configuration. You are now ready to use SSH tunneling to send your mails.

Sending mails over the SSH tunnel

To send mails over the SSH tunnel you need to connect to our network with your SSH client. In SSH Secure Shell, simply select your profile from "File -> Profiles -> [name of your profile]" and SSH Secure Shell will try automaticaly to connect to our network. Enter your password if you are asked for it.

usage1.png

SSH Secure Shell tells you in the lower left corner if you are connected to our network or not. If you are connected, write your mails as usual. Before sending a mail you should check you use the proper mailserver for this mail. To do this, click on "Tools -> Account Settings..." in the window you composed your mail, select your account name on the left and make sure you selected the proper option under "Outgoing Server" on the right. Then close the window by clicking "Ok" and send your mail.

usage2.png

usage3.png

If you're done with your mails, simply close SSH Secure Shell.

Establishing the SSH tunnel for experts

If you are used to using SSH, especially via the ssh commandline tool in a shell, you can simply create the necessary SSH tunnel with the following command:

ssh [username]@mathssh.uzh.ch -L [ListeningPort]:mail.math.uzh.ch:2525

As an example, user dc creates an SSH tunnel with listening port 25025 with the following command:

ssh dc@mathssh.uzh.ch -L 25025:mail.math.uzh.ch:2525

Open URLs (no/wrong Browser)

  • Edit > Preferences > Advanced > Config Editor

thunderbird.firefox.png

PublicMathWiki: thunderbird (last edited 2024-02-08 14:38:27 by crose)