Product:
Search Type:

I installed SquirrelMail and wish it be accessed instead of Horde by URL http://webmail.domain.com.

Article ID: 1775 
Last Review: May,10 2007
APPLIES TO:
  • Plesk 8.x for Linux/Unix

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.

Please provide feedback on this article

Did this article help you solve your issue?
Yes
No
Partially
I do not know yet
 
Strongly Agree   Strongly Disagree
  9 8 7 6 5 4 3 2 1
The article is easy to understand
The article is accurate
Additional Comments:
*Please provide us with your email address in case we need to contact you.
*Please type the code you can see.
* - required fields