webmail.domain.com not accepting credentials

Sometimes we faced an issue as:

webmail.domain.com is not accepting username and password

However if we access webmail with domain.com/webmail then the username and password was accepting.

In order to get this issue resolved, We need  to enable Proxy sub domains as below :
WHM >> Main >> Server Configuration >> Tweak Settings >>Proxy subdomains.