SSH Client for Windows
Home Download Purchase Support Manual Screenshots Media About

5.3 How To Connect to E-Mail Server with Private Shell

This topic describes how to establish a secure connection between your computer and the mail server

Requirements

  • Mail server (we assume mail.server.com): just replace it with your mail server address.
  • Server accepting SSH connections (we assume server.com)

Note:
Generally speaking, the mail server and the ssh server may have the same address: that doesn't matter.

Configuring Private Shell

  1. Create a profile to connect to server.com, see: the connect using password authentication, or the connect using public key authentication) topics
  2. In the profile settings click Tunneling
  3. Click New outgoing tunnel and create a tunnel with the following parameters for outgoing mail:
  4. Outgoing tunnels for SMTP connection

  5. Create additional outgoing tunnels for inbound mail (we create both POP3 and IMAP4):
  6. Outgoing tunnels for POP3/IMAP4 connections


    Note: You may not need all three tunnels listed above - use the following rule:
    1. Create a tunnel on the 25-th port if you're planning to send outgoing mail through Private Shell (it's for the SMTP server)
    2. Create a tunnel on the 110-th port if you're using the POP3 protocol (and want to connect to the POP3 server through Private Shell)
    3. Create a tunnel on the 143-th port if you're using the IMAP4 protocol (and want to connect to the IMAP4 server through Private Shell)
    The last two protocols (POP3 and IMAP4) are used to receive mail whereas the first one (SMTP) is used to send mail.

  7. Connect to the server using this profile.

Note:
You may clear the "Permit connections from local host only" option to allow other computers on the network to connect to the mail server. While it can be a great solution for connecting a remote workgroup it can compromise the security system.

Configuring e-mail client (assuming MS Outlook)

  1. Run Outlook
  2. Click Accounts in the Tools menu
  3. Select an account to a establish secure connection and click the Properties button
  4. In the Servers tab set Incoming and Outgoing mail servers to localhost
  5. MS Outlook settings

  6. Click OK

Important Note:
You must have Private Shell running and connected in order to use the tunneling feature. You may put Private Shell shortcut to the startup folder (e.g. "c:\Program Files\Private Shell\pshell.exe" --profile "Profile Name") and set the "Minimize to tray" option in the profile's settings.

Important Note:
Such a tunnel protects messages while they are transferred between your computer and the SSH server only. For full security, all servers including those of the recipient must have an established secure connection.


Comment On This Topic: