• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

How to change Horde Webmail-URL (webmail.domain.com)

DarkFurios

New Pleskian
Hello,

I have Plesk 10.2.0 with Horde webmail installed.

I want to change the URL webmail.domain.com into mail.domain.com. How can I achieve this?

Best regards.
 
Hey IgorG,

thank you for your fast reply.

I replaced every existence of "webmail" with "mail". I did this in the following folders/files.

In /usr/local/psa/admin/conf/templates/default/
atmail.php
atmailcom.php
domainWebmail.php
horde.php

and in /etc/psa-webmail/horde/imp/
servers.php

After that I restarted the apache2 and psa daemon with:
/etc/init.d/apache2 restart
/etc/init.d/psa restart

Horde is only reachable via "webmail.domain.com". At "mail.domain.com" I only get the Default Parallels Page.

A restart of the server didn't change anything.

Do know what to do now?
 
Great, it works!

For everyone who tries the same thing:

I have Debian installed, so I went to:
/opt/psa/admin/conf/templates/

If you have a non-DEB based system go to:
/usr/local/psa/admin/conf/templates/

Make a custom template directory:
mkdir custom

Copy the domainWebmail.php from the default/ folder to the custom/ folder:
cp default/domainWebmail.php custom/domainWebmail.php

Go to the custom/ folder and modify the subdomain in the domainWebmail.php.

Check the modified template if it is PHP valid:
php -l domainWebmail.php

Go to /usr/local/psa/admin/bin/
and generate new configuration files:
./httpdmng --reconfigure-all

Maybe a --reconfigure-server oder --reconfigure-domain <domain-name> is enough but I don't know ;-)

Now, it should be working.

For sure, first I reset the changes from my first reply.

Thank you so much for your help IgorG.
 
Really, implemented in 10.x templates technology allows you to customize your web hosting environment as you want. I don't know why it is used so rarely.
 
If you know how to do this, it is really very simple and nice.

Now, I have another problem you can help me maybe with.

When I go to mail.domain.com my webmailer (Atmail) opens.
Atmail appends the hole domain, mail.domain.com, to the login box.
I just want the domain.com there.

Yet I tried this:
http://forum.atmail.com/viewtopic.php?id=1047
But it has no effect.

And at:
http://atmail.com/kb/2006/specifying-the-default-domain-on-the-login-page/
http://atmail.com/kb/2010/auto-detect-domain-name-in-login-page/

I can't find these files.

Do you have any hint for me?

Greetings
 
Last edited:
Sorry, but I think that it will be more effectively to ask it on Atmail forum than on Plesk forum :)
 
Very helpful thread - I was able to change the subdomain for webmail (Horde) on my Plesk 11 server no problem.

However, the link within the client's control panel (the little icon beside each email address under the 'Mail' tab) is still pointing to the old subdomain.

How would I go about updating this link to the new webmail subdomain?
 
Hello guys,

I'm trying to change webmail URL too, but following the guide on http://download1.parallels.com/Ples...nistration-guide/index.htm?fileName=68693.htm it doesn't work. Probably I'm missing something. :(

I just want to change http://webmail.<domain>.<ext> to http://vps.<domain>.<ext>/webmail

The operation seems to be quite simple:

1) created "custom" directory into /opt/psa/admin/conf/templates/default

2) copied domainWebmail.php into /opt/psa/admin/conf/templates/default/custom

3) changed domainWebmail.php to:

<?php echo AUTOGENERATED_CONFIGS; ?>

<?php /** @var Template_VariableAccessor $VAR */ ?>
<?php
if (!$VAR->domain->webmailActive) {
echo "# Domain is disabled or suspended\n";
return;
}
?>
ServerAlias "vps.<?php echo $VAR->domain->asciiName ?>/webmail"
<?php foreach ($VAR->domain->mailAliases AS $alias): ?>
ServerAlias "vps.<?php echo $alias->asciiName ?>/webmail"
<?php endforeach; ?>

4) rebuilt virtual hosts config with /usr/local/psa/admin/bin/httpdmng --reconfigure-all

but when I try to open the new URL, I get "[error] [client 2.x.x.x] File does not exist: /var/www/vhosts/default/htdocs/webmail"

Any ideas, please?
Thank you very much!
 
Hi,

you should copy the template (2) into "/opt/psa/admin/conf/templates/custom" not "/opt/psa/admin/conf/templates/default/custom" and rebuild your config.

I hope it will work then ;)
 
Back
Top