Most Android phones use the Gmail app as their email app, and it works with any IMAP mailbox, not just Gmail addresses. This guide adds your MdmHost cPanel mailbox to the Gmail app with secure settings. Samsung Email and Outlook for Android use the same values.
Before you start
- The full email address and password.
- The server hostname from cPanel → Email → Email Accounts → Connect Devices. See email server settings.
Add the account in the Gmail app
- Open Gmail, tap your profile picture (top right) → Add another account.
- Choose Other. Do not choose Google, even if you use Gmail for other mail.
- Enter your full email address and tap Manual setup (on some versions Next then choose the type).
- Choose Personal (IMAP).
- Enter the mailbox password and tap Next.
- Incoming server settings:
- Username: full email address
- Server: server hostname
- Port:
993 - Security type: SSL/TLS
- Outgoing server settings:
- Require sign-in: on
- Username and password: same as incoming
- SMTP server: server hostname
- Port:
465, Security type SSL/TLS (or587with STARTTLS)
- Choose the sync frequency (every 15 minutes is a good balance) and tick Notify me when email arrives.
- Set the account name and the display name for outgoing mail, then tap Next.
Samsung Email
- Open Samsung Email → menu → Settings → Add account → Other.
- Enter address and password, tap Manual setup → IMAP account.
- Use the same incoming and outgoing values as above, then tap Sign in.
Note: Gmail on Android shows the folders of your cPanel mailbox as labels. Moving a message to a label moves it to that folder on the server.
What to check afterwards
- Send a test message to another address and reply to it.
- Open webmail and confirm the test appears in Sent. If not, the app is saving sent items locally only; this is a limitation in some versions of the Gmail app and not a problem with your mailbox.
Troubleshooting
"Couldn't open connection to server"
The server name or port is wrong, or mobile data/Wi-Fi blocks the port. Use the hostname and port 993, and try another network.
"Authentication failed"
Use the full email address as username. Check the password by logging in to webmail. If several devices use an old password, your IP may be blocked; see fix login problems.
Mail stops syncing
Android battery saving can stop background sync. In Settings → Apps → Gmail → Battery, choose Unrestricted. In Gmail account settings, check that Sync Gmail / Sync email is on.
Certificate warnings
Replace mail.yourdomain.com with the server hostname in both server settings.
