• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Redirecting webmail

J

joneschw1

Guest
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.
 
Just tell them...

to deal with the change.

And i wouldn't call your users idiots, since some may now frequent this board :)
 
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.
 
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.
 
Jamesyeeoc,

Will this config still allow me to do webmail.domain.com as well?
 
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

:)
 
Back
Top