SYMPTOMS
I installed SquirrelMail and want to use webmail.domain.com domain name to access it, but Plesk configures this domain name to point to IMP Webmail location. Can it be redefined?RESOLUTION
You should redefine both HTTP(80) and HTTPS(443) VirtualHosts of Plesk Webmail and point them to SquirrelMail location.Create new configuration file like /etc/httpd/conf.d/squirrelmail.conf and put your new virtualhost configurations into it like below:
# Non-SSL host
<VirtualHost \
123.123.123.123:80 \
123.123.123.124:80 \
123.123.123.125:80 \
>
DocumentRoot /usr/share/squirrelmail
ServerName webmail
ServerAlias webmail.*
Alias /horde /usr/share/squirrelmail
<Directory /usr/share/squirrelmail>
php_admin_flag engine on
php_admin_flag magic_quotes_gpc off
php_admin_value safe_mode off
</Directory>
</Virtualhost>
# SSL host
<IfModule mod_ssl.c>
<VirtualHost \
123.123.123.123:443 \
123.123.123.124:443 \
123.123.123.125:443 \
>
DocumentRoot /usr/share/squirrelmail
ServerName webmail
ServerAlias webmail.*
Alias /horde /usr/share/squirrelmail
SSLEngine on
SSLVerifyClient none
SSLCertificateFile /etc/httpd/conf/httpd.pem
<Directory /usr/share/squirrelmail>
php_admin_flag engine on
php_admin_flag magic_quotes_gpc off
php_admin_value safe_mode off
</Directory>
</Virtualhost>
</IfModule> Replace IPs and path to SquirrelMail installation with your own values. Then restart Apache and you should be able to access SquirrelMail interface by http://webmail.domain.com.