Gmail provides a guide here: https://support.google.com/mail/answer/21289
If see error messages such as "Connection refused" when connecting your account to Gmail, use the following connection details instead of the ones provided in cPanel
| Setting | Value |
|---|---|
| Username | Email address (e.g. [email protected]) |
| Password | Email password |
| POP Server | Server hostname e.g. server1.xxx.zumedns.com (not mail.yourdomain.com) |
| Port | 995 |
| Always use a secure connection | Yes |