Lots of people have reported problems (such as getting 404 Not Found errors) using the SquirrelMail webmail package in their web sites created through ISPConfig 3. If you have followed the “Perfect Server” guides for ISPConfig 3, you have SquirrelMail already installed, but if you are still having the same problems, then this guide is for you. This guide explains how to configure SquirrelMail on an Ubuntu 10.10 server so that you can use it from within your web sites (created through ISPConfig).
SquirrelMail’s Apache configuration is in the file/etc/squirrelmail/apache.conf, but this file isn’t loaded by Apache because it is not in the /etc/apache2/conf.d/ directory. Therefore we create a symlink called squirrelmail.conf in the/etc/apache2/conf.d/ directory that points to/etc/squirrelmail/apache.conf and reload Apache afterwards:
cd /etc/apache2/conf.d/
ln -s ../../squirrelmail/apache.conf squirrelmail.conf
/etc/init.d/apache2 reload
That’s it already – /etc/apache2/conf.d/squirrelmail.conf defines an alias called /squirrelmail that points to SquirrelMail’s installation directory /usr/share/squirrelmail.
Now go to the PHP open_basedir field on the Options tab of your web site in ISPConfig and add the directories/usr/share/squirrelmail and /etc/squirrelmail (that’s the directory where SquirrelMail’s configuration is stored) to the line, e.g. as follows:
Wait two or three minutes until ISPConfig has updated the site configuration. You can now access SquirrelMail from your web site as follows:
http://www.example.com/squirrelmail
You can also access it from the ISPConfig control panel vhost as follows (this doesn’t need any configuration in ISPConfig):
http://server1.example.com:8080/squirrelmail
If you’d like to use the alias /webmail instead of /squirrelmail, simply open/etc/apache2/conf.d/squirrelmail.conf…
vi /etc/apache2/conf.d/squirrelmail.conf
… and add the line Alias /webmail /usr/share/squirrelmail:
Ref:
https://www.howtoforge.com/enabling-squirrelmail-for-your-web-sites-on-an-ispconfig-3-server-ubuntu-10.10