PDA

View Full Version : Override webmail



liammcdaid
07-27-2008, 03:57 PM
i have a domain setup on a direct admin server for hosting. however i have a seperate dedicated email server. i want to over ride the webmail directory link on just that one domain. is it possible and if so how?

proHSP
07-28-2008, 08:06 AM
Yes, just edit /etc/httpd/conf/extra/httpd-alias.conf
Replace

Alias /squirrelmail "/var/www/html/squirrelmail/"
Alias /roundcube "/var/www/html/roundcube/"
Alias /uebimiau "/var/www/html/uebimiau/"
Alias /webmail "/var/www/html/webmail/"
Alias /atmail "/var/www/html/atmail/"

With something like

Alias /squirrelmail "/var/www/html/mailredirect.php"
Alias /roundcube "/var/www/html/mailredirect.php"
Alias /uebimiau "/var/www/html/mailredirect.php"
Alias /webmail "/var/www/html/mailredirect.php"
Alias /atmail "/var/www/html/mailredirect.php"

And put to /var/www/html/mailredirect.php

<? header('Location: yourwebmaildomain.com'); ?>

rvn2k
03-23-2011, 02:34 PM
I'm having this same problem, but the fix would override /webmail for all my domains, I want to override it only for 1 specific domain.. any idea how can I do this??


Thanks

:)

zEitEr
03-23-2011, 11:40 PM
Use mod_rewrite for that.