View Single Post
  #16  
Old 13th December 2011, 00:45
cbj4074 cbj4074 is offline
Senior Member
 
Join Date: Nov 2010
Posts: 392
Thanks: 29
Thanked 58 Times in 50 Posts
Default

I should mention also that the method for accessing SquirrelMail at webmail.example.com, as described in the tutorial, does work. (Before attempting it, however, please see my posts in this related thread for common pitfalls regarding the cited tutorial: http://www.howtoforge.com/forums/sho...t=52042&page=4 .)

That said, a more robust implementation would be to create a copy of the default SquirrelMail configuration file for Apache (these instructions are Debian-specific [which includes Ubuntu], so adapt accordingly)

Code:
# cp /usr/share/squirrelmail/config/apache.conf /etc/apache2/.conf/squirrelmail.conf
and then replace the default <VirtualHost></VirtualHost> section

Code:
#<VirtualHost 1.2.3.4>
#  DocumentRoot /usr/share/squirrelmail
#  ServerName webmail.example.com
#</VirtualHost>
with:

Code:
<VirtualHost *:80>
DocumentRoot /usr/share/squirrelmail
ServerName webmail.example.com
</VirtualHost>

<VirtualHost *:443>
DocumentRoot /usr/share/squirrelmail
ServerName webmail.example.com
</VirtualHost>
Don't forget to reload Apache:

Code:
# service apache2 force-reload
This adaptation accounts for any IP address and for SSL connections.

Last edited by cbj4074; 13th December 2011 at 02:29.
Reply With Quote