RSH - an unpleasant guest from the past

Published: 2006-03-04 13:25 UTC. Tags: software sugarcrm

Yesterday I spent some time evaluating the Open Source version of SugarCRM, since the salespeople at work wants to see if a CRM can help them.

I installed an extension called ZuckerMail to allow reading of mail stored on our IMAP server, and was irritated by the long time it took to get the list of mail, or to read a single mail.

I did some strace:ing, but that didn't help very much - it only revealed the fact that something was waiting for 10 seconds. A process listing however revealed that there was several rsh procesess trying to contact the IMAP server. Also, my firewall's log had blocked several connection attempts from this machine to the IMAP server on port 22 (ssh).

Aha.. but why!

It turns out that the IMAP library for PHP is built on top of the ancient c-client library from the UW IMAP. If you're trying to make an connection without explicitly telling it that you want to connect with ssl (something the GUI for configuring the connection did not have an option for - only STARTTLS, which is another thing), the c-client library tries to run rimapd on the host via rsh. There is a /usr/bin/rsh on the machine, linked to /usr/bin/ssh via /etc/alternatives (Debian sarge).

You can turn this behaviour off in a configuration file for c-client. I solved the problem a bit more drastically - by removing /usr/bin/rsh. This made all IMAP operations go much faster.

←← previous blog entry next blog entry →→

Comment by Daniel Shakhmundes

Created Fri, 5 Jan 2007 18:59:07 +0000

Hi Erik,

First-off, as this is my first comment on your blog, I would just like to say that I think you have done a great job here!

I found this entry while searching the following on Google: c-client fedora php sugarcrm
As you may guess, I found your blog while seeking a solution to making IMAP functional in SugarCRM (for inbound email and the Sugar mail client).

I was curious if you have had any experience with SugarCRM recently. I took a look at ZuckerMail, which seems to be deprecated, since SugarCRM now has the email functionality built-in out-of-the-box. I solved my problem in the meanwhile (had to rebuild apache after installing the c-client), but thanks for providing some food-for-thought :-)

Regards,
Shak
Dot Connect Inc.

Comment by Simon Bohlin

Created Thu, 5 Apr 2007 06:53:33 +0000

When I read about SugarCRM, it seemed to require licensing fees even if you want to use the community/open source download.

Then I found the completely open-source vTiger. Commercial support form India :) and one swede at oldenburg.se who's rebranding it as "OC CRM". Swedish translations on the way...

Post a comment

Posting of comments have been disabled for now. Too much spam.