1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice
  3. Dear Pleskians, I really hope that you will share your opinion in this Special topic for chatter about Plesk in the Clouds. Thank you!
    Dismiss Notice

redirect webmail.mydomain.com to another url

Discussion in 'Plesk for Linux - 8.x and Older' started by Roosta21, May 5, 2007.

  1. Roosta21

    Roosta21 Guest

    0
     
    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
     
  2. gregi

    gregi Guest

    0
     
    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
     
  3. sieb@

    sieb@ Guest

    0
     
    Correct, there is an entry in the httpd.conf that redirects headers from http://webmail.* to Horde IIRC.
     
  4. Roosta21

    Roosta21 Guest

    0
     
    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.....
     
  5. gregi

    gregi Guest

    0
     
  6. Roosta21

    Roosta21 Guest

    0
     
    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.
     
  7. Roosta21

    Roosta21 Guest

    0
     
    Basically I removed all of the text in the httpd.conf that related to horde, and it stopped redircting
     
Loading...