Why do search and email server show "Could not connect"?

Typically this means the tomcat container for James and the search service are not running. You can restart this with the commands shown below. You may need to set the JAVA_HOME environment variable to the location of your JDK.

sh /usr/local/sourceforge/dist/james/james-2.2.0/bin/phoenix.sh stop
sh /usr/local/sourceforge/dist/james/james-2.2.0/bin/phoenix.sh start