Users have reported that the problems described below with using Mail.app through SSH tunnels seem to have disappeared with recent versions of either Mail.app or the ssh client. We keep the description however, just in case somebody still uses an older version.
Mail.app has problems using secure pop (pop with SSL and/or TLS) and SSL imap (imap with SSL) through SSH tunnels. Imap with TLS seems to work however.
The only way Mail.app seems to work with the new mail server (mail2|pop2|imap2) is by using imap with TLS. This must be configured in a slightly misleading way: You have to configure Mail to use the standard imap port (but remember that you have to fill in the local end-port of the tunnel that connects to the standard imap port), but at the same time enable the `use SSL' checkbox.
Direct contact with the mail server gives no problems, you can/must use either pop or imap with SSL enabled.
Possible configurations:
| Connection type | Server name | Port | Enable SSL | SSH tunnel | Comment |
|---|---|---|---|---|---|
| Direct contact using pop | pop2.cs.kuleuven.be | 995 | yes | no | only from within cs.kuleuven.be |
| Direct contact using imap | imap2.cs.kuleuven.be | 993 | yes | no | only from within cs.kuleuven.be |
| Imap via SSH tunnels | localhost | 9143 | yes | ssh -L 9143:imap2.cs.kuleuven.be:143 (For Tiger: didn't work anymore) ssh -L 9993:imap2.cs.kuleuven.be:993 (For Leopard) |
instead of 9993 you can choose any (free) port number you like |
| Pop via SSH tunnels | not possible | ||||
Joris Klerkx reported however that he got imap working with SSL through SSH tunnels using http://www.leapingbytes.com/almostvpn
Remarks: