• The new Python extension is now available. It allows customers to deploy and manage WSGI-based Python applications on their websites directly from Plesk.
  • The Plesk Mobile apps for iOS and Android and the Plesk Mobile Center extension have been deprecated, and are no longer available for new installations. In Plesk Obsidian 18.0.84, the Plesk Mobile Center extension will be removed from servers during the upgrade, and the Plesk Mobile apps will lose their server management features.
  • The Social Login extension has been deprecated and will be removed in Plesk Obsidian 18.0.84. After that, it will no longer be possible to log in to Plesk with a Google, Facebook, GitHub account, or with a passkey. Plesk usernames and passwords, as well as logging in with a WebPros Account, are not affected.

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