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

Redirecting webmail

Discussion in 'Plesk for Linux - 8.x and Older' started by joneschw1, Jun 13, 2005.

  1. joneschw1

    joneschw1 Guest

    0
     
    Hello all, I am migrating from a cobalt raq4 to Plesk 7.5.3. One of the differences is that on the cobalt you go to mail.domain.com/webmail and you get the webmail. In plesk, you have to go to webmail.domain.com.

    My users are idiots, and feel that this difference will disable them from using the webmail all together. Is there a way that I can make it so that if they go to mail.domain.com/webmail, the horde will still work? Thanks for the help.
     
  2. admin123

    admin123 Guest

    0
     
    Just tell them...

    to deal with the change.

    And i wouldn't call your users idiots, since some may now frequent this board :)
     
  3. joneschw1

    joneschw1 Guest

    0
     
    I should have clarified a little more. My users are end e-mail users not people that I resell CP to. I am a very small shop, that went plesk because I could "easily" migrate from a cobalt (which is not the case, but that is a totally different story).

    Telling them to deal with it isn't really a great option for me. Does anyone know how to do the redirect?

    Thanks for the help in advance.
     
  4. jamesyeeoc

    jamesyeeoc Guest

    0
     
    Modify your /home/httpd/vhosts/domain.com/conf/vhost.conf file to show the following:

    <IfModule mod_rewrite.c>
    RewriteEngine on
    RewriteMap lowercase int:tolower
    ServerAlias mail.domain.com
    RewriteCond %{HTTP_HOST} ^mail.domain.com$
    RewriteCond %{REQUEST_URI} ^/webmail
    RewriteCond %{REQUEST_URI} !error_docs
    RewriteRule ^/(.*) http://webmail.domain.com/ [L,R]
    <IfModule>

    This will auto-redirect them to your webmail. and will be processed to the normal psa-horde/imp login stuff.

    Also add the same to the vhost_ssl.conf if you want the same to apply to https://mail.domain.com/webmail

    Hope this works for you. The users will still be able to type in http://mail.domain.com/webmail and all should be good.

    And if they go to http://mail.domain.com (without the /webmail) then as it should, it will bring up the home page of the site.
     
  5. joneschw1

    joneschw1 Guest

    0
     
    Jamesyeeoc,

    Will this config still allow me to do webmail.domain.com as well?
     
  6. jamesyeeoc

    jamesyeeoc Guest

    0
     
    Yes, since it only rewrites if the URL is

    mail.domain.com/webmail

    So webmail.domain.com should still go the normal alias path (which should bring you to the exact same IMP login screen) as Plesk normally has it.

    Basically what it does is allow your users to still enter the old URL they are used to, and it auto-redirects them to the new URL:

    webmail.domain.com

    :)
     
Loading...