Skip to main content

Redirect Webmail Page

Comments

9 comments

  • Jcats
    Hello there, Never done it before but you can try copying: /var/cpanel/templates/apache2_4/ea4_main.default to /var/cpanel/templates/apache2_4/ea4_main.local and then modify /var/cpanel/templates/apache2_4/ea4_main.local try doing a find and replace for webmail and replace with mail. then restart Apache If anything breaks you can remove .local
    0
  • cmonego
    Hello, I would like to keep webmail.domain.tld and just create one more entry for mail.domain.tld, is it possible? In version 3 of Easyapache, this worked here, but when we upgrade to version 4, when I try to access mail.domain.tld, it does not access webmail. []'s
    0
  • Jcats
    In that case, just copy the entries that exist for webmail and use mail instead. I don't recall mail.domain.tld ever working too be honest. We still have servers running EA3 and I just tested on a few domains and it doesn't bring to webmail so maybe you had something custom done a while back?
    0
  • cmonego
    Hello, Exactly, something was done to make it work in EA3. I did not manage this server when it was done, so I do not know what was done. For this reason, I would like to know how to make this work in EA4, so we can keep the same pattern that was running. []'s
    0
  • cPanelMichael
    Hello, I don't recommend manually configuring the mail subdomain for webmail access. Here's a quote from the
    0
  • cmonego
    Hello Michael, Is there any other way to do this? I already have the ServerAlias mail.domain.tld created in apache conf. As I mentioned earlier, when we had EA3, mail.domain.tld would normally open webmail, but now EA4 does not. []'s
    0
  • cPanelMichael
    Hello, There's no supported method of setting up a custom "mail" subdomain without interfering with the AutoSSL feature. You'd have to remove the entries for "mail.domain.tld" from the domain configuration files in the /var/cpanel/userdata/$username/ directories: Mail Subdomain added as alias to main domain in httpd.conf Thank you.
    0
  • cmonego
    Michael, What it takes and basically this: how to change domain.com/webmail to mail.domain.com The user should use mail.domain.tld instead of webmail.domain.tld, due to the peculiarities that we have internally. Is it still possible to perform the procedure reported in post 165526? []'s
    0
  • cPanelMichael
    Hello, It's possible, yes. However it's unsupported and will break AutoSSL functionality for the "mail" subdomain. You'd have to remove the entries for "mail.domain.tld" from the domain configuration files in the /var/cpanel/userdata/$username/ directories as referenced on this thread: Mail Subdomain added as alias to main domain in httpd.conf You'd then modify the Apache template files to include the "mail" subdomain as a proxy subdomain. Thank you.
    0

Please sign in to leave a comment.