Webmail url for all users.

Discussion in 'General' started by ozgurerdogan, Dec 20, 2019.

  1. ozgurerdogan

    ozgurerdogan Member

    I want to use Webmail.domain.com format for all users. How would I do that ? Thanks in advance.
     
  2. Taleman

    Taleman Well-Known Member HowtoForge Supporter

  3. ozgurerdogan

    ozgurerdogan Member

    Do you really want to help ? Please also tell me how to allow ALL domain in server to access to that subdomain in format of mail.domain.com ?
     
  4. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    I do not understand what that means.
    From what you wrote in your previous thread and this, I assume you want to have Roundcube at address mail.domain.com. This should just work.
    If you have several domains on that server and want to have an e-mail server for all of them, then you set the MX record for all those domains pointing to your e-mail server.
    If what you want is something else, please explain more.
     
  5. ozgurerdogan

    ozgurerdogan Member

  6. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    So the url should be different for each user, that is main.usera.com, mail.userb.com etc?
    That is problematic, what do plan to do to get ceritificates working for each of those domains? If you do not care about certificates, creating aliasdomain for each of user domains should work. Let's Encrypt allows 100 domains per certificate, so if you have less than that users even certificates should work.
     
  7. ozgurerdogan

    ozgurerdogan Member

    There must be a way of doing in apache virtual host fons. I will search more.
     
  8. Steini86

    Steini86 Active Member

    I do not know a way in ISPconfig to do that for all domains (and I don't know, if that would be a clever feature to allow this). You can do it manually by using an alias domain. However, you have to do make an alias for each domain. On the pro site, that will also ensure your SSL certificate is valid for them.

    Apache itself supports wildcards in the alias domain, so you could add this to your vhost:
    Code:
    ServerAlias         mail.*
    . But that will be overwritten by an ispconfig update and it will not include a valid LetsEncrypt certifcate.
     
  9. Jesse Norell

    Jesse Norell Well-Known Member Staff Member Howtoforge Staff

    You could make a server level config (not using ISPConfig's interface) for webmail.* to be served from the roundcube installation, but your users will get certificate errors when doing so as @Taleman said. I use a generic redirect for webmail.* to the main webmail url, which works fine on port 80 and also works on 443 with a certificate error on the first connect (users can bookmark the destinationfor the future). I also have a redirect for customer.com/webmail/ urls.
     

Share This Page