Results 1 to 3 of 3

Thread: IMAP Access Over SSH Tunnel?

  1. #1
    greenleaf108 is offline Sugar Community Member
    Join Date
    Jan 2007
    Posts
    23

    Default IMAP Access Over SSH Tunnel?

    Hi folks:

    This is sort of a unique situation, but maybe one of you has an idea how to do it. I'm trying to connect SugarCRM to an IMAP server that is only available via an SSH tunnel. My question is - how can I securely establish a tunnel for the web server to use to synchronize emails?

    Right now my apache webserver user is set up with no login shell, which I would rather not change. I don't mind typing in my private SSH key passcode to establish the tunnel manually, but how can I do this as the apache user?

    thanks

    Greenleaf

  2. #2
    greenleaf108 is offline Sugar Community Member
    Join Date
    Jan 2007
    Posts
    23

    Default Re: IMAP Access Over SSH Tunnel?

    Ok I figured this out. If anyone's interested, here's how to do it:

    1. The ssh tunnel does not need to be running as apache. I was thankfully mistaken on this point. Set up your SSH tunnel as a normal, unprivileged user from your SugarCRM server to your IMAP server.
    2. Open whatever port you used for the forwarding on your firewall if needbe. I recommend only allowing localhost to connect to the port, for added security. The rest of the world doesn't need to be probing your SSH-tunneled IMAP server.
    3. Enter your IMAP user settings inside SugarCRM, using localhost and the port you specified above.
    4. Voila - SSH-tunneled access to your IMAP server from within SugarCRM.

    The only thing you will have to remember is that the secure tunnel will need to be re-established every time you reboot the server or lose connectivity.
    Last edited by greenleaf108; 2007-01-26 at 04:20 AM. Reason: Want to clarify some things

  3. #3
    tdp
    tdp is offline Sugar Community Member
    Join Date
    Sep 2005
    Posts
    74

    Default Re: IMAP Access Over SSH Tunnel?

    2. Open whatever port you used for the forwarding on your firewall if needbe. I recommend only allowing localhost to connect to the port, for added security. The rest of the world doesn't need to be probing your SSH-tunneled IMAP server.
    Could you elaborate a bit more on this? My understanding of an ssh tunnel is that the only port you need open is the SSH port (usually 22) on the server end. You shouldn't need to touch the firewall for the forwarded port.
    Todd Pihl

    Human Worklfows LLC
    Rockville, Maryland USA

    Slackware 11.0 running kernel 2.6.17.6
    MySQL 5.0.24a
    PHP 5.1.6
    Apache 1.3.37

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Help Wanted: MS Access conversion?
    By stephenmchugh in forum Classifieds
    Replies: 2
    Last Post: 2011-04-10, 07:27 AM
  2. 2 Companies & Multiple Access Levels
    By bulsworth in forum Help
    Replies: 10
    Last Post: 2007-01-18, 10:34 PM
  3. ACLRoles - new access - Team/Reports_To
    By elRey in forum Feature Requests
    Replies: 1
    Last Post: 2006-10-31, 12:39 AM
  4. Replies: 0
    Last Post: 2006-04-10, 06:31 PM
  5. Access to Tasks
    By km in forum Help
    Replies: 1
    Last Post: 2004-11-05, 04:34 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •