• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

redirect webmail.mydomain.com to another url

R

Roosta21

Guest
I am changing my mx settings to another server, I want the same webmail address to go to another site.. how do redirect webmail.mydomain.com It seems to be hard wired in some server level conf.. to always take it to horde. but I can't find a way to change it
 
Hi

The easiest way would be to configure it by making a new entry in your DNS server. However, I think this is not what you want, since this would be too easy and obvious to post that question in here.

So the following certainly is not the best solution, but you may want to try to edit the file /usr/share/psa-horde/index.php and put the following line of code as the first line of the file:

<?php header('Location: http://www.example.com/blah/'); exit(); ?>

The better solution would be to do a server-configured redirect in the apache config file, I found something at
/etc/httpd/conf.d/zz010_psa_httpd.conf

I know it is possible to do some permanent redirections with the apache config, but have forgotten about how doing that. However, I have the strong feeling that by upgrading Plesk, both of these modifications would get lost.

Greetings, Greg
 
Originally posted by gregi

I know it is possible to do some permanent redirections with the apache config, but have forgotten about how doing that.

Correct, there is an entry in the httpd.conf that redirects headers from http://webmail.* to Horde IIRC.
 
Where is that in http.conf can't seem to find it........ yeah your right if you change anything in zz010_psa_httpd.conf.(which is httpd.conf) an if you resst plesk and it get changed but if you'll let let me know what change.....
 
Thanks for the reply.. will try theses..i've tried adding the domain in plesk webmail.mydomain.com then setting up a meta refresh to another site.. but still automatically gets forwarded to horde.. it must be as the redirect to Horde is set at higher level within the server config.. don't seem to be able ti find anywhere though.
 
Basically I removed all of the text in the httpd.conf that related to horde, and it stopped redircting
 
Back
Top