Change webmail.domain.com to mail.domain.com in WHM&cPanel

cuongvttt

Active Member
Jun 26, 2008
37
2
58
Hello guys,

Could you show me how to change webmail.domain.com to mail.domain.com in WHM&cPanel? so if my customers want to visit the webmail they just type mail.theirdomain.com

Thanks
 

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
5,418
694
313
cPanel Access Level
Root Administrator
Hey there! Unfortunately there is not an easy way to do that inside cPanel. cPanel specifically programs the existing proxy subdomains of cpanel, whm, webmail, autoconfig, autodiscover, cpcalendars, cpcontacts, and webdisk directly into the Apache and DNS configurations. In order to change this, you would need to make manual configuration changes to the Apache template system, and also adjust the DNS templates so those zone get created automatically.

While I don't have specific instructions for that work, documentation on Apache templates can be found here:


and I'd recommend performing this work on a test system with no live accounts first to ensure you get the configuration working how you expect.