Enabling SquirrelMail For Your Web Sites On An ISPConfig 3 Server (Debian Lenny)
|
Submitted by falko (Contact Author) (Forums) on Fri, 2011-01-14 15:56. :: Debian | ISPConfig | Email
Enabling SquirrelMail For Your Web Sites On An ISPConfig 3 Server (Debian Lenny)Version 1.0 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 a Debian Lenny server so that you can use it from within your web sites (created through ISPConfig). I do not issue any guarantee that this will work for you!
Configuring SquirrelMailSquirrelMail'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/ 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:
Then reload Apache: /etc/init.d/apache2 reload Now you can access Squirrelmail as follows: http://www.example.com/webmail If you'd like to define a vhost like webmail.example.com where your users can access SquirrelMail, you'd have to add the following vhost configuration to /etc/apache2/conf.d/squirrelmail.conf: vi /etc/apache2/conf.d/squirrelmail.conf
Make sure you replace 1.2.3.4 with the correct IP address of your server. Of course, there must be a DNS record for webmail.example.com that points to the IP address that you use in the vhost configuration. Also make sure that the vhost webmail.example.com does not exist in ISPConfig (otherwise both vhosts will interfere with each other!). Now reload Apache... /etc/init.d/apache2 reload ... and you can access SquirrelMail under http://webmail.example.com!
Links
|





Recent comments
12 hours 51 min ago
13 hours 51 min ago
17 hours 38 min ago
18 hours 52 min ago
22 hours 28 min ago
1 day 5 hours ago
1 day 14 hours ago
1 day 16 hours ago
2 days 7 hours ago
2 days 9 hours ago