Era Host hosting
EraHost – Free Domain, Cheap Hosting!
Client Area
Support 24/7
Menu

SMTP Error 110 (Connection Timed Out): Causes and Fixes

4 min read
17.07.2025

The SMTP error 110 (Connection Timed Out) occurs when your email client or server fails to connect to the SMTP server. This typically indicates network issues, firewall restrictions, incorrect SMTP settings, or the mail server being down.

SMTP Error 110 Connection Timed Out - Causes and Fixes
SMTP error 110 = TCP connect timeout. Isolate before fixing.

For related mail-stack errors, see "EHLO not accepted from server!" — Complete SMTP Error Fix, Fix: mail() Has Been Disabled for Security Reasons in PHP, and Configuring Mail Records (MX, SPF, DKIM, DMARC) in ISPmanager.

What Causes SMTP Error 110?

Firewall Blocking SMTP Ports

Some ISPs or hosting providers block SMTP ports 25, 465, or 587 to prevent spam. Your local firewall may be preventing outgoing SMTP connections.

SMTP Server is Down or Not Responding

The SMTP server may be offline, overloaded, or misconfigured.

Incorrect SMTP Settings

Wrong SMTP server address, port, or authentication settings.

DNS Resolution Issues

Your mail client cannot resolve the SMTP hostname (e.g., mail.example.com).

ISP Blocking Outbound Mail

Some ISPs block outgoing SMTP traffic on port 25 to prevent spam.

Rate Limiting by the Mail Server

The mail server may be rejecting connections if too many requests come from your IP.

How to Fix SMTP Error 110 (Connection Timed Out)

Check Your SMTP Server Address

Ensure you are using the correct SMTP hostname and port.

Example SMTP Settings

Provider SMTP Server Address Port (TLS) Port (SSL) Authentication
Gmail smtp.gmail.com 587 465 Required
Outlook smtp.office365.com 587 465 Required
Yahoo smtp.mail.yahoo.com 587 465 Required

If using a custom mail server, verify that mail.yourdomain.com is correct.

Test SMTP Connection Using Telnet

Check if the SMTP server is reachable.

Run this command (Linux/Mac/Windows)

telnet mail.example.com 587

Expected response:

220 mail.example.com ESMTP Postfix

If you get "Connection timed out" or "Could not open connection":

  • The server may be down or blocking SMTP connections.

Check SMTP Server Status

If your SMTP server is self-hosted (Postfix/Exim), restart it:

sudo systemctl restart postfix    # For Postfix
sudo systemctl restart exim       # For Exim

Check logs:

sudo tail -f /var/log/mail.log      # Postfix logs
sudo tail -f /var/log/exim_mainlog  # Exim logs

Use Alternative SMTP Ports

Some ISPs block port 25. Try these instead:

  • Port 587 > Recommended (STARTTLS)
  • Port 465 > SSL/TLS
  • Port 2525 > Alternative for some providers

Check Firewall and ISP Restrictions

Run this command to see if a firewall is blocking SMTP:

sudo iptables -L -n | grep 25

If you see DROP or REJECT, unblock SMTP:

sudo iptables -A OUTPUT -p tcp --dport 587 -j ACCEPT
sudo systemctl restart iptables

For Windows Firewall, allow outgoing SMTP:

  1. Open Windows Defender Firewall.
  2. Go to Advanced Settings > Outbound Rules.
  3. Allow port 587 (or 465) for SMTP.

If using cloud hosting:

  • Enable SMTP in security settings.
  • AWS blocks port 25 by defau?????" request unblocking from AWS Support.

Flush DNS Cache (If Using a Domain)

If your SMTP hostname (mail.example.com) is not resolving, clear DNS cache:

Windows

ipconfig /flushdns

Linux/macOS

sudo systemctl restart systemd-resolved

Check Mail Server Logs for Rejections

If your server is rejecting connections, check the logs:

Postfix Logs

sudo tail -f /var/log/mail.log

Exim Logs

sudo tail -f /var/log/exim_mainlog

Look for rate limiting or authentication failures.

Contact Your Hosting Provider

If you have tried everything and SMTP still times out, contact your:

  • Email hosting provider (e.g., Google, Microsoft, your mail host).
  • Web hosting provider (if using cPanel, DirectAdmin, or VPS).
  • ISP (if they block SMTP ports).
Linux Hosting
Reliable and fast web hosting!
  • Free domain
  • Modern servers
  • NVMe disks
  • 7-day free trial
Linux Hosting

Final Fix Summary

Cause Fix
SMTP Server is Down Restart SMTP server or contact hosting provider.
Wrong SMTP Settings Verify SMTP hostname, port, and authentication.
Firewall Blocking SMTP Ports Open port 587 or 465 in firewall settings.
ISP Blocking Port 25 Use port 587 or 465 instead.
DNS Resolution Issues Flush DNS cache and test with ping mail.example.com.
Frequently asked questions
`telnet smtp.host 587` (or 465). If it sits forever and times out, the network path is blocked — almost certainly the ISP, your firewall, or AWS-style egress filtering. If it gets `220 ESMTP` immediately, the path is open and the failure is in auth/TLS/headers, not connectivity.
All three cloud providers block outbound port 25 by default to prevent spam. AWS unblocks per-account on request via support ticket; GCP requires using a relay service (SendGrid, etc.) since port 25 is permanently blocked; Azure also requires relay or a Premium support request. For practical purposes on cloud VMs: use 587 with auth to a relay, don't fight port 25.
`tail -f /var/log/mail.log` (Postfix) or `tail -f /var/log/exim_mainlog` (Exim) and try sending. If you see no log line at all, the connection isn't reaching the daemon — port/firewall issue. If you see lines but they end in 421/450/timeout, the daemon is reachable and the failure is policy (rate-limit, RBL, tls handshake).
Port 25 is for server-to-server SMTP; many ISPs and cloud providers block outbound 25 to fight spam. Port 587 is the submission port — designed for mail-clients-to-server, requires auth, and is almost universally allowed. Modern mail clients should always use 587 with STARTTLS or 465 with implicit TLS; 25 is a legacy choice for sending.
Related articles
"EHLO not accepted from server!" — Complete SMTP Error Fix
Fixing "A Fatal Error or Timeout Occurred While Processing This Directive"
Error: 421 Too Many Connections (8) From This IP — Causes and Solutions