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

"EHLO not accepted from server!" — Complete SMTP Error Fix

3 min read
05.12.2025
Error Message: EHLO not accepted from server!

This error usually indicates an issue with how your email client or server is communicating with the SMTP server. The EHLO command is used by email clients and servers to identify themselves and negotiate features during the SMTP handshake.

EHLO not accepted from server SMTP Error
"EHLO not accepted" — the server refused at the very first handshake step.

For related SMTP-handshake and connection-level errors, see SMTP Error 110 — Connection Timed Out, Gmail 550-5.7.1 "Likely Unsolicited Mail", and check-auth@verifier.port25.com.

EHLO (Extended HELO) is the modern version of HELO command in SMTP. It allows the client and server to negotiate features like authentication, encryption, and size limits.

Causes of the Error

  1. Misconfigured Email Server:
    • The SMTP server doesn't recognize or accept the EHLO command.
  2. Blocked or Invalid IP:
    • The sending IP address might be blocked or flagged as spam by the receiving server.
  3. Improper SMTP Configuration:
    • Incorrect SMTP authentication settings (username, password, port, etc.).
  4. SSL/TLS Misconfiguration:
    • The server requires encryption, but your client is not set up for SSL/TLS.
  5. Firewall or Security Rules:
    • A firewall may block SMTP traffic or restrict the EHLO command.

Verify SMTP Configuration

1. Check the SMTP Host and Port:

Typical SMTP ports:
  • Port 587: For STARTTLS (preferred for modern email clients)
  • Port 465: For SSL (older but still used)
  • Port 25: For unencrypted connections (often blocked by ISPs)

Ensure the correct host is specified (e.g., smtp.example.com).

2. Enable Authentication:

  • Use your email username and password for SMTP authentication.
  • Ensure SMTP Authentication (AUTH LOGIN) is enabled in your email client.

Check TLS/SSL Settings

1. If your server requires encryption:

  • Enable SSL/TLS in your email client or application.
  • Use port 465 for SSL or port 587 for STARTTLS.

2. Test connection with OpenSSL:

openssl s_client -starttls smtp -connect smtp.example.com:587

Look for 250 responses to confirm the server supports EHLO.

Confirm DNS and Hostname Settings

1. Ensure the sending server's hostname resolves correctly:

nslookup smtp.example.com

2. Check the PTR (reverse DNS) record for your IP address:

dig -x <IP_ADDRESS>

The PTR should resolve to a valid domain name.

Test EHLO with Telnet

1. Connect to the SMTP server:

telnet smtp.example.com 25

2. Send an EHLO command:

EHLO example.com

The server should respond with a 250 code, listing supported features.

Linux Hosting
Reliable and fast web hosting!
  • Free domain
  • Modern servers
  • NVMe disks
  • 7-day free trial
Linux Hosting

Check for IP Blocking

1. Verify if your IP address is blacklisted:

2. If blacklisted, contact the SMTP provider or follow delisting procedures.

Review Server Logs

If you control the SMTP server:

1. Check the logs for detailed error messages.

  • Postfix:
    sudo tail -f /var/log/mail.log
  • Exim:
    sudo tail -f /var/log/exim_mainlog

2. Look for errors related to EHLO or authentication.

Example SMTP Configuration

Setting Value
SMTP Host smtp.example.com
SMTP Port 587 (STARTTLS) or 465 (SSL)
Authentication Enabled
Encryption STARTTLS or SSL
Username user@example.com
Password Your email account password

Troubleshooting Table

Issue Solution
Invalid EHLO response Check SMTP host and port.
Server requires encryption Enable SSL/TLS or STARTTLS in your configuration.
Connection refused on port 25 Use port 587 or 465.
Blocked IP address Check blacklists and contact the mail provider.

Summary

The "EHLO not accepted from server!" error generally points to miscommunication between your email client and the SMTP server. By verifying your server settings, testing the connection, and ensuring proper encryption, you should be able to resolve the issue.

Frequently asked questions
Most validate three things: (1) it must be a syntactically valid FQDN (no spaces, valid TLD), (2) reverse DNS for the connecting IP should match it (forward-confirmed reverse DNS), and (3) it shouldn't be on a known dynamic-IP blacklist. Sending `EHLO localhost` or `EHLO 127.0.0.1` from public IPs is a fast way to get rejected.
After `telnet mail.example.com 25` and receiving `220 mail.example.com ESMTP`, type `EHLO yourdomain.com` — the server should reply `250-mail.example.com Hello yourdomain.com` followed by capability lines (250-PIPELINING, 250-AUTH, 250-STARTTLS). Anything starting with 4xx or 5xx is a rejection.
Port 587 (submission) typically requires the client to issue STARTTLS before any other command. Some servers reject EHLO over plain submission until a TLS layer is negotiated. Configure your client to use "STARTTLS" or "TLS" on 587. Some servers also require AUTH after STARTTLS — port 25 doesn't.
Postfix/Exim policy rejected based on configured `helo_check` / `smtpd_helo_restrictions`. Common causes: `reject_invalid_helo_hostname`, `reject_non_fqdn_helo_hostname`, `reject_unknown_helo_hostname` are enabled, and the client EHLO doesn't pass. Look at the exact rule that matched in the log; loosen if you trust the client, fix the client EHLO otherwise.
Related articles
SMTP Error 110 (Connection Timed Out): Causes and Fixes
Error: 421 Too Many Connections (8) From This IP — Causes and Solutions
/usr/sbin/sendmail -t — Sending Email with File Attachment (Script Example)