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

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

Discussion in 'Plesk 10.x for Linux Issues, Fixes, How-To' started by DarkFurios, Oct 5, 2011.

  1. DarkFurios

    DarkFurios New Pleskian

    12
    85%
    Joined:
    Oct 5, 2011
    Messages:
    6
    Likes Received:
    0
    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.
     
  2. IgorG

    IgorG Forums Analyst Staff Member

    49
    24%
    Joined:
    Oct 27, 2009
    Messages:
    24,547
    Likes Received:
    1,240
    Location:
    Novosibirsk, Russia
  3. DarkFurios

    DarkFurios New Pleskian

    12
    85%
    Joined:
    Oct 5, 2011
    Messages:
    6
    Likes Received:
    0
    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?
     
  4. IgorG

    IgorG Forums Analyst Staff Member

    49
    24%
    Joined:
    Oct 27, 2009
    Messages:
    24,547
    Likes Received:
    1,240
    Location:
    Novosibirsk, Russia
  5. DarkFurios

    DarkFurios New Pleskian

    12
    85%
    Joined:
    Oct 5, 2011
    Messages:
    6
    Likes Received:
    0
    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.
     
  6. IgorG

    IgorG Forums Analyst Staff Member

    49
    24%
    Joined:
    Oct 27, 2009
    Messages:
    24,547
    Likes Received:
    1,240
    Location:
    Novosibirsk, Russia
    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.
     
  7. DarkFurios

    DarkFurios New Pleskian

    12
    85%
    Joined:
    Oct 5, 2011
    Messages:
    6
    Likes Received:
    0
    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: Oct 12, 2011
  8. IgorG

    IgorG Forums Analyst Staff Member

    49
    24%
    Joined:
    Oct 27, 2009
    Messages:
    24,547
    Likes Received:
    1,240
    Location:
    Novosibirsk, Russia
    Sorry, but I think that it will be more effectively to ask it on Atmail forum than on Plesk forum :)
     
  9. DarkFurios

    DarkFurios New Pleskian

    12
    85%
    Joined:
    Oct 5, 2011
    Messages:
    6
    Likes Received:
    0
    Ok, thank you anyway ;-)
     
  10. Justin_G

    Justin_G Guest

    0
     
    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?
     
  11. Flamenetworks

    Flamenetworks Basic Pleskian

    23
    90%
    Joined:
    Mar 5, 2004
    Messages:
    52
    Likes Received:
    0
    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!
     
  12. DarkFurios

    DarkFurios New Pleskian

    12
    85%
    Joined:
    Oct 5, 2011
    Messages:
    6
    Likes Received:
    0
    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 ;)
     
Loading...