Article ID: 1775, created on Apr 3, 2007, last review on Jun 4, 2016

  • Applies to:
  • Plesk for Linux/Unix

Symptoms

I installed SquirrelMail and want to use the webmail.domain.com domain name to access it, but Parallels Plesk Panel configures this domain name to point to the IMP Webmail location. Can it be redefined?

Resolution

You should redefine both HTTP(80) and HTTPS(443) VirtualHosts of Parallels Plesk Panel Webmail and point them to the SquirrelMail location.

Create a new configuration file, like 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>

Put the file in the /etc/httpd/conf.d directory on RedHat-like operating systems; in the /etc/apache2/conf.d directory on Debian and Ubuntu; and in the /usr/local/etc/apache2/Includes directory on FreeBSD.

Replace the IPs and the path to the SquirrelMail installation with your own values. Then restart Apache and you should be able to access the SquirrelMail interface via http://webmail.domain.com.

29d1e90fd304f01e6420fbe60f66f838 a914db3fdc7a53ddcfd1b2db8f5a1b9c 56797cefb1efc9130f7c48a7d1db0f0c

Email subscription for changes to this article
Save as PDF