Question

How to change webmail.domain.com to mail.domain.com in cPanel

Hello I’v moved to using cPanel/WHM instead of CWP and in CWP, we all use mail.domain.com as webmail URL and when moved to cPanel it changed to webmail.domain.com as webmail URL

is there any way to do that ?

maybe change default webmail.domain.com to be mail.domain.com as a main webmail login URL or adding mail.domain.com to be an alias of webmail.domain.com or make mail.domain.com redirect to webmail.domain.com somehow, without creating **mail **subdomain or use .htaccess in virtual sub-domain or anywhere and do the redirect from webmail.domain.com to mail.domain.com on it?

Thanks and waiting for your answers. Regards,


Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

Hi @MotazHakim,

So, there should be a couple of ways to do this. The first one should be fairly easy using DNS.

What you can do is add your mail.domain.com DNS as a CNAME which leads to webmail.domain.com . This should be enough when you load mail.domain.com to see the content of webamil.

If you want another solution, I’ve checked the cPanel forums for you and this is what I saw that can most probably help you out:

https://forums.cpanel.net/threads/ssl-for-proxy-subdomain-or-redirection.458681/

Hope this helps!