/webmail to webmail.domain.tld

Discussion in 'Installation/Configuration' started by FredZ, Aug 29, 2019.

  1. FredZ

    FredZ Member

    I wish to address my webmail as webmail.domain.tld instead of domain.tld/webmail

    How can I accomplish this if at all in ISPC3?

    Regards

    Fred
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Create a website webmail.domain.tld and install a webmail client of your choice inside that website. or create a redirect on the redirect tab of the website to domain.tld/webmail URL.
     
  3. FredZ

    FredZ Member

    Creating a new domain and installing a webmail client isn't particularly desirable as the webclient is already installed system wide and I do not understand the point in having multiple instalations of the same application.

    Preferable I would like to change webmail access to webmail.domain.tld globaly, just the same as /webmail is a global redirect.

    I assume the change is to the alias directive in the roundcube.conf file. But I lack the knowledge or understanding to make the changes required.

    Regards

    Fred
     
  4. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    Why not do
    like @till suggested?
     
  5. nhybgtvfr

    nhybgtvfr Well-Known Member HowtoForge Supporter

    if you really don't want to install the webmail client again within it's own ispconfig3 website area, create a new vhost file in /etc/apache2/sites-available for the webmail.domain.tld domain, and set the docroot to /var/lib/roundcube
    the webmail site will have to be managed outside of ispconfig. (resyncs, site changes etc will keep resetting the docroot)
    (could possibly bind mount /var/lib/roundcube to /var/www/clients/client#/web#/web/ but no idea what problems that will cause with user/group permissions)

    if you haven't already, copy /usr/local/ispconfig/server/conf/vhost.conf.master to /usr/local/ispconfig/server/conf-custom

    in a suitable location in that file, add the line:
    RedirectMatch ^/webmail http://webmail.domain.tld/

    if you already have websites on that server, you'll need to add the line into each vhost conf file manually, and reload apache, or resync all the websites on that server from the ispconfig control panel. (can take a very long time if you have a lot of sites and apache config checking is turned on)
     
  6. FredZ

    FredZ Member

    I'm going to leave it as it is as it seems impossible to do at a global level inside ISPC3. IE webmail.anydomain.tld. And if I had 100+ domains it would be a monumental job configuring it manually. And some doamins I have already have redirects to other domains for webhosting purpose (domain.com/org/net/etc point to a single website site). And I have tried DNS redirect for the domain redirect to a single website without success.

    It is obvious that my limited knowledge and understanding makes this impossible for me, so leaving it as it is and having to live with it is my only option.

    Regards

    Fred
     

Share This Page