Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am trying to bring up squirrelmail using tomcat. I would like know if that is possible at all. This is because i already have tomcat running on that server for my application. Ido not want to start an apache server just for squirrelmail. PLease suggest if there is any documentation on this. I have googled a lot and could not find a solution.

In short my question is how to configure squirrelmail with tomcat

share|improve this question
up vote 0 down vote accepted

PHP/Java Bridge is what you're looking for.

  1. Download the JavaBridgeTemplate621.war file, and drop it into your Tomcat’s webapps directory. If unpackWARs="true" autoDeploy="true" is set in conf/server.xml, this file will be unpack automatically.

    Access to to see if it shows your phpinfo().

  2. Download SquirrelMail to /usr/share/tomcat6/webapps/JavaBridgeTemplate621 directory, copy the config file cp config/config_default.php config/config.php and then browse to

Good luck.

share|improve this answer
I am getting the following exception on the browser. PHP not found. Please install php-cgi. PHP test command was: [php-cgi, -v]$Process.start(‌​8)$‌​) – user1241438 Sep 15 '12 at 2:57
Which distro are you using? – quanta Sep 15 '12 at 3:02
when you distro you mean PHP/Java bridge? – user1241438 Sep 15 '12 at 3:06
I mean the operating system, if Linux, which distribution? – quanta Sep 15 '12 at 3:07
INFO: Deploying web application archive /opt/apps/apache-tomcat-7.0.30/webapps/javabridge.war Fatal Error: Failed to start PHP [php-cgi, -v], reason: Cannot run program "php-cgi" (in directory "/root"): error=2, No such file or directory Could not start FCGI server: PHP not found. Please install php-cgi. PHP test command was: [php-cgi, -v] Timeout waiting for PHP FastCGI daemon Could not connect to server – user1241438 Sep 15 '12 at 3:08

Each webmail need to 5 things :

  1. MTA hostname
  2. MDA port number such as 143
  3. Your protocol of course webmails uses imap.
  4. SMTP hostname
  5. SMTP port number such as 25.

Please consider type of authentication , For example , Do you have SSL, TLS , plain text. It's doesn't related to tomcat or apache.

share|improve this answer
i guess my question is how to configure squirrelmail with tomcat – user1241438 Sep 14 '12 at 2:57

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.