Why can I not connect to the mail server?

Email & Webmail | Updated 2026

If your email client cannot connect to the mail server, the issue is usually one of four things: wrong server settings, wrong port, a firewall blocking the connection, or your IP has been temporarily blocked due to failed login attempts. Here is how to diagnose and fix each one.

01. Check Your Server Settings

Verify these settings in your email client:

  • Incoming server: mail.yourdomain.com
  • Outgoing server (SMTP): mail.yourdomain.com
  • Username: Your full email address (e.g., you@yourdomain.com)
  • Password: The password set for this email account in cPanel

The most common mistake is using just the username portion (like "john") instead of the full email address. See What Are My Mail Server Names for complete settings.

02. Check Ports and Encryption

The port and encryption type must match. Using SSL on a non-SSL port (or vice versa) will cause the connection to fail silently:

  • IMAP: Port 993 with SSL/TLS, or port 143 with STARTTLS
  • POP3: Port 995 with SSL/TLS, or port 110 with STARTTLS
  • SMTP: Port 465 with SSL/TLS, or port 587 with STARTTLS

Do not use port 25 for outgoing mail. Many ISPs block it, and it does not support encryption.

03. Check for Firewall Blocks

If you entered your password incorrectly several times, the server firewall may have temporarily blocked your IP address. This is a brute-force protection measure.

Use our Firewall Unblock tool to check and unblock your IP. After unblocking, make sure your email client has the correct password before it tries to connect again, or it will get blocked again immediately.

Tip

If your email client is configured with the wrong password, it may try to connect every few minutes automatically. Each failed attempt counts toward the firewall block threshold. Fix the password in your email client before unblocking your IP.

04. Test With Webmail

Webmail bypasses your email client and network entirely. If webmail works at my.ultrawebhosting.com:2096:

  • The server is working normally
  • Your email account and password are valid
  • The problem is in your email client settings, your local network, or your ISP

If webmail also fails, reset your password in cPanel > Email > Email Accounts > Manage.

05. ISP Port Blocking

Some internet service providers block email ports to prevent spam. If you cannot connect on the standard ports, try these alternatives:

  • SMTP port 587 instead of 465 (with STARTTLS)
  • SMTP port 26 as a last resort (available on Ultra Web Hosting servers)

If you are on a corporate or school network, their firewall may block email ports entirely. Try connecting from a different network (like your phone's hotspot) to confirm.

Still Cannot Connect?

Open a ticket with the exact error message from your email client and a screenshot of your account settings. We will check the server side.

Open a Support Ticket

Quick Recap

  1. Test webmail first - If it works, the server is fine
  2. Verify server, port, and encryption match - SSL on 993/995/465, STARTTLS on 143/110/587
  3. Username must be your full email address
  4. Check for IP blocks - Use the firewall unblock tool after failed login attempts
  5. Try port 587 or 26 if your ISP blocks standard email ports

Fixing email connection issues · Last updated March 2026 · Browse all Email articles

  • 618 Users Found This Useful

Was this answer helpful?

Related Articles

Folders in Roundcube Are Missing

Email & Webmail | Updated March 2026 If you log into Roundcube Webmail and your Sent,...

Fixing Outlook SSL Certificate Warnings

Email & Webmail | Updated March 2026 If Outlook shows a certificate warning like "The...

Outlook: Error 0x800CCC0D-E

Email & Webmail | Updated 2026 Outlook error codes 0x800CCC0D and 0x800CCC0E mean the...

Error 503 Valid RCPT Command Must Precede DATA

Email & Webmail | Updated March 2026 The error "503 valid RCPT command must precede DATA"...

Importing and Exporting Email in Horde

Exporting Your Emails from Horde In the navigation menu at left click on your general...



Save 30% on web hosting - Use coupon code Hosting30