Override webmail

liammcdaid

New member
Joined
Jul 27, 2008
Messages
1
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?
 
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'); ?>
 
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

:)
 
Back
Top