Error map

SMTPServerDisconnected: Connection unexpectedly closed Python: smtplib.SMTPServerDisconnected: Connection unexpectedly closed

Email / SMTP · layer 2, Network

Open the full error page →

Centre: this error. First ring: errors it is linked with (8). Outer ring: what those are linked with. Colours show the layer of a request each error belongs to. Click any dot to re-centre the map on it; hover to follow its connections. The centre dot opens the error page.

SMTPServerDisconnected: Connection unexpectedly closed — Python: smtplib.SMTPServerDisconnected: Connection unexpectedly closed (Email / SMTP)SMTPServerD…421 4.7.0 Try again later (rate limited) — SMTP: 421 4.7.0 Our system has detected an unusual rate of unsolicited mail originating from your IP address. Mail sent from your IP address has been temporarily rate limited (Email / SMTP)421 4.7.0 Try again…450 4.7.1 Greylisted, please try again later — SMTP: 450 4.7.1 <user@example.com>: Recipient address rejected: Greylisted, see http://postgrey.schweikert.ch/help/example.com.html (Email / SMTP)450 4.7.1 Greyliste…452 4.2.2 Mailbox full / over quota — SMTP: 452 4.2.2 The email account that you tried to reach is over quota (Email / SMTP)452 4.2.2 Mailbox f…SSL: WRONG_VERSION_NUMBER (SMTP port) — SMTP: [SSL: WRONG_VERSION_NUMBER] wrong version number — SMTP over SSL on a STARTTLS port (Email / SMTP)SSL: WRONG_VERSION_…451 4.3.0 Local error in processing — SMTP: 451 4.3.0 Error: queue file write error / 451 Requested action aborted: local error in processing (Email / SMTP)451 4.3.0 Local err…ConnectionRefusedError [Errno 111] (SMTP) — Python: ConnectionRefusedError: [Errno 111] Connection refused — smtplib connect to localhost:25 (Email / SMTP)ConnectionRefusedEr…Helo command rejected: need fully-qualified hostname — SMTP: 504 5.5.2 <localhost>: Helo command rejected: need fully-qualified hostname (Email / SMTP)Helo command reject…SMTPAuthenticationError (Python) — Python: smtplib.SMTPAuthenticationError: (535, b'5.7.8 Username and Password not accepted') (Email / SMTP)SMTPAuthenticationE…SMTP Error: Could not authenticate — WordPress / PHPMailer: SMTP Error: Could not authenticate / SMTP connect() failed (WordPress)SMTP Error: Could n…550 5.7.1 — 550 5.7.1 Relaying denied / Message rejected as spam / Unauthenticated email not accepted (Email / SMTP)550 5.7.1550 5.7.26 — 550 5.7.26 This mail has been blocked because the sender is unauthenticated (SPF/DKIM/DMARC) (Email / SMTP)550 5.7.26452 4.5.3 Too many recipients — SMTP: 452 4.5.3 Your message has too many recipients / 452 Too many recipients received this hour (Email / SMTP)452 4.5.3 Too many …552 5.3.4 Message size exceeds fixed limit — SMTP: 552 5.3.4 Message size exceeds fixed maximum message size (Email / SMTP)552 5.3.4 Message s…550 5.7.1 Blocked using zen.spamhaus.org — SMTP: 550 5.7.1 Service unavailable; Client host [203.0.113.5] blocked using zen.spamhaus.org (Email / SMTP)550 5.7.1 Blocked u…550 5.1.1 — 550 5.1.1 The email account that you tried to reach does not exist (User unknown) (Email / SMTP)550 5.1.1553 5.7.1 Sender address rejected: not owned by user — SMTP: 553 5.7.1 <noreply@example.com>: Sender address rejected: not owned by user user@example.com (Email / SMTP)553 5.7.1 Sender ad…554 5.7.1 Service unavailable; client host rejected — SMTP: 554 5.7.1 Service unavailable; Client host [203.0.113.5] blocked / 554 5.7.1 <mail.example.com>: Client host rejected: Access denied (Email / SMTP)554 5.7.1 Service u…530 5.7.0 Authentication Required — SMTP: 530 5.7.0 Must issue a STARTTLS command first / 530 5.7.1 Authentication required (Email / SMTP)530 5.7.0 Authentic…Nodemailer: Greeting never received — Nodemailer: Error: Greeting never received (code: 'ETIMEDOUT', command: 'CONN') (Email / SMTP)Nodemailer: Greetin…self-signed certificate (SMTP TLS) — Nodemailer: Error: self signed certificate in certificate chain (code: 'ESOCKET') / unable to verify the first certificate (Email / SMTP)self-signed certifi…550 5.4.1 Recipient address rejected: Access denied — SMTP: 550 5.4.1 Recipient address rejected: Access denied. AS(201806281) [DB5EUR03FT015.eop-EUR03.prod.protection.outlook.com] (Email / SMTP)550 5.4.1 Recipient…554 5.4.14 Hop count exceeded - possible mail loop — SMTP: 554 5.4.14 Hop count exceeded - possible mail loop (Email / SMTP)554 5.4.14 Hop coun…534 5.7.9 Application-specific password required — SMTP: 534-5.7.9 Application-specific password required. Learn more at https://support.google.com/accounts/answer/185833 (Email / SMTP)534 5.7.9 Applicati…Nodemailer: ETIMEDOUT / ECONNECTION — Nodemailer: Error: connect ETIMEDOUT 142.250.27.108:465 (code: 'ETIMEDOUT', command: 'CONN') (Email / SMTP)Nodemailer: ETIMEDO…sendmail: not found (PHP mail) — PHP: sh: 1: /usr/sbin/sendmail: not found — mail() returns false (Email / SMTP)sendmail: not found…Outbound port 25 blocked — SMTP: telnet smtp.example.com 25 — Connection timed out (cloud provider blocks port 25) (Email / SMTP)Outbound port 25 bl…550 5.7.25 PTR record required — SMTP: 550-5.7.25 The IP address sending this message does not have a PTR record setup, or the corresponding forward DNS entry does not point to the sending IP (Email / SMTP)550 5.7.25 PTR reco…No MX record / Domain not found — SMTP: 550 5.1.2 Domain not found / 554 5.4.4 Unable to resolve MX / Host or domain name not found (Email / SMTP)No MX record / Doma…Postfix: Host or domain name not found — Postfix: status=deferred (Host or domain name not found. Name service error for name=example.com type=A: Host not found, try again) (Email / SMTP)Postfix: Host or do…535 5.7.8 Username and Password not accepted — SMTP: 535-5.7.8 Username and Password not accepted. Learn more at https://support.google.com/mail/?p=BadCredentials (Email / SMTP)535 5.7.8 Username …SmtpClientAuthentication is disabled for the Tenant — SMTP: 535 5.7.139 Authentication unsuccessful, basic authentication is disabled / SmtpClientAuthentication is disabled for the Tenant (Email / SMTP)SmtpClientAuthentic…Nodemailer: EAUTH Invalid login — Nodemailer: Error: Invalid login: 535-5.7.8 Username and Password not accepted (code: 'EAUTH', responseCode: 535) (Email / SMTP)Nodemailer: EAUTH I…

Directly related (8)

421 4.7.0 Try again later (rate limited)Email / SMTP

SMTP: 421 4.7.0 Our system has detected an unusual rate of unsolicited mail originating from your IP address. Mail sent from your IP address has been temporarily rate limited

The receiving server (often Gmail or Outlook) is temporarily throttling your mail because the volume or reputation of your sendin…

450 4.7.1 Greylisted, please try again laterEmail / SMTP

SMTP: 450 4.7.1 <user@example.com>: Recipient address rejected: Greylisted, see http://postgrey.schweikert.ch/help/example.com.html

The recipient server deliberately rejected the first delivery attempt from an unknown sender (greylisting) and expects a legitima…

452 4.2.2 Mailbox full / over quotaEmail / SMTP

SMTP: 452 4.2.2 The email account that you tried to reach is over quota

The recipient's mailbox has exceeded its storage quota, so the server will not accept new mail for now.

SSL: WRONG_VERSION_NUMBER (SMTP port)Email / SMTP

SMTP: [SSL: WRONG_VERSION_NUMBER] wrong version number — SMTP over SSL on a STARTTLS port

Your client tried to start TLS immediately on a port where the server speaks plain SMTP first (or the reverse), so the handshake…

451 4.3.0 Local error in processingEmail / SMTP

SMTP: 451 4.3.0 Error: queue file write error / 451 Requested action aborted: local error in processing

The server hit an internal problem (disk, database, content filter, DNS) while handling your message and asked you to retry later.

ConnectionRefusedError [Errno 111] (SMTP)Email / SMTP

Python: ConnectionRefusedError: [Errno 111] Connection refused — smtplib connect to localhost:25

Nothing is listening on the SMTP host and port your script connected to — often `localhost:25` because no host was given and no l…

Helo command rejected: need fully-qualified hostnameEmail / SMTP

SMTP: 504 5.5.2 <localhost>: Helo command rejected: need fully-qualified hostname

The receiving server refused your EHLO/HELO greeting because the name you sent is not a valid fully-qualified domain name.

SMTPAuthenticationError (Python)Email / SMTP

Python: smtplib.SMTPAuthenticationError: (535, b'5.7.8 Username and Password not accepted')

`smtp.login()` was rejected by the server — wrong credentials, wrong password type, or authentication not allowed for that accoun…

Two steps away (24)

SMTP Error: Could not authenticateWordPress

WordPress / PHPMailer: SMTP Error: Could not authenticate / SMTP connect() failed

The SMTP server rejected the login or couldn’t be reached — wrong credentials, app passwords required, wrong port/encryption, or…

550 5.7.1Email / SMTP

550 5.7.1 Relaying denied / Message rejected as spam / Unauthenticated email not accepted

The receiving (or your outgoing) mail server refused the message — relaying isn’t allowed, the sender isn’t authenticated, or it…

550 5.7.26Email / SMTP

550 5.7.26 This mail has been blocked because the sender is unauthenticated (SPF/DKIM/DMARC)

Gmail/Outlook rejected the message because SPF and DKIM didn’t pass for the sender’s domain (DMARC failure).

452 4.5.3 Too many recipientsEmail / SMTP

SMTP: 452 4.5.3 Your message has too many recipients / 452 Too many recipients received this hour

The server limits how many recipients a single message or sender may have; yours exceeded it.

552 5.3.4 Message size exceeds fixed limitEmail / SMTP

SMTP: 552 5.3.4 Message size exceeds fixed maximum message size

The message, including attachments after base64 encoding, is larger than the receiving or sending server accepts.

550 5.7.1 Blocked using zen.spamhaus.orgEmail / SMTP

SMTP: 550 5.7.1 Service unavailable; Client host [203.0.113.5] blocked using zen.spamhaus.org

The receiving server checked your IP in a DNS blocklist (Spamhaus, Barracuda, SORBS…) and refused your mail because it is listed.

550 5.1.1Email / SMTP

550 5.1.1 The email account that you tried to reach does not exist (User unknown)

The recipient mailbox doesn’t exist on the receiving server — a typo in the address, a deleted account, or a wrong domain.

553 5.7.1 Sender address rejected: not owned by userEmail / SMTP

SMTP: 553 5.7.1 <noreply@example.com>: Sender address rejected: not owned by user user@example.com

The SMTP server only lets an authenticated user send as addresses they own, and the From/envelope sender does not match the login.

554 5.7.1 Service unavailable; client host rejectedEmail / SMTP

SMTP: 554 5.7.1 Service unavailable; Client host [203.0.113.5] blocked / 554 5.7.1 <mail.example.com>: Client host rejected: Access denied

The server refused the connection from your IP because it is blocked by policy, not in the allowed list, or listed on a blacklist.

530 5.7.0 Authentication RequiredEmail / SMTP

SMTP: 530 5.7.0 Must issue a STARTTLS command first / 530 5.7.1 Authentication required

The server will not accept mail until you encrypt the connection (STARTTLS) and/or authenticate, and your client did neither.

Nodemailer: Greeting never receivedEmail / SMTP

Nodemailer: Error: Greeting never received (code: 'ETIMEDOUT', command: 'CONN')

The TCP connection was made but the server never sent its SMTP `220` banner — usually a TLS mode mismatch or a firewall/proxy swa…

self-signed certificate (SMTP TLS)Email / SMTP

Nodemailer: Error: self signed certificate in certificate chain (code: 'ESOCKET') / unable to verify the first certificate

Nodemailer refused the SMTP server's TLS certificate because it is self-signed, expired, hostname-mismatched or missing its inter…

550 5.4.1 Recipient address rejected: Access deniedEmail / SMTP

SMTP: 550 5.4.1 Recipient address rejected: Access denied. AS(201806281) [DB5EUR03FT015.eop-EUR03.prod.protection.outlook.com]

Microsoft 365 / Exchange Online rejected the message because the recipient address does not exist in that tenant (Directory Based…

554 5.4.14 Hop count exceeded - possible mail loopEmail / SMTP

SMTP: 554 5.4.14 Hop count exceeded - possible mail loop

The message passed through too many mail servers (usually over 25), which almost always means two systems forward mail to each ot…

534 5.7.9 Application-specific password requiredEmail / SMTP

SMTP: 534-5.7.9 Application-specific password required. Learn more at https://support.google.com/accounts/answer/185833

The Google account has 2-Step Verification on, so SMTP clients cannot use the normal password; they need an app password (or OAut…

Nodemailer: ETIMEDOUT / ECONNECTIONEmail / SMTP

Nodemailer: Error: connect ETIMEDOUT 142.250.27.108:465 (code: 'ETIMEDOUT', command: 'CONN')

Nodemailer could not open a connection to the SMTP server before the timeout — a blocked port, wrong host, or network issue.

sendmail: not found (PHP mail)Email / SMTP

PHP: sh: 1: /usr/sbin/sendmail: not found — mail() returns false

PHP's `mail()` calls the `sendmail_path` program, but it is not installed or the path in php.ini is wrong.

Outbound port 25 blockedEmail / SMTP

SMTP: telnet smtp.example.com 25 — Connection timed out (cloud provider blocks port 25)

Connections from your server to other mail servers on port 25 time out because your cloud host or ISP blocks outbound SMTP to fig…

550 5.7.25 PTR record requiredEmail / SMTP

SMTP: 550-5.7.25 The IP address sending this message does not have a PTR record setup, or the corresponding forward DNS entry does not point to the sending IP

Gmail (and others) require your sending IP to have a reverse DNS (PTR) record that resolves back to the same IP; yours has none o…

No MX record / Domain not foundEmail / SMTP

SMTP: 550 5.1.2 Domain not found / 554 5.4.4 Unable to resolve MX / Host or domain name not found

Mail cannot be routed because the recipient domain has no MX (or A) record, or DNS for it fails.

Postfix: Host or domain name not foundEmail / SMTP

Postfix: status=deferred (Host or domain name not found. Name service error for name=example.com type=A: Host not found, try again)

Postfix could not resolve the destination domain through DNS — the resolver is down or unreachable, or the domain does not exist.

535 5.7.8 Username and Password not acceptedEmail / SMTP

SMTP: 535-5.7.8 Username and Password not accepted. Learn more at https://support.google.com/mail/?p=BadCredentials

The server received your login but rejected it — wrong username or password, an unusable password type, or a blocked sign-in.

SmtpClientAuthentication is disabled for the TenantEmail / SMTP

SMTP: 535 5.7.139 Authentication unsuccessful, basic authentication is disabled / SmtpClientAuthentication is disabled for the Tenant

Microsoft 365 turned off password-based SMTP AUTH for your mailbox or tenant; your client must use OAuth or the setting must be r…

Nodemailer: EAUTH Invalid loginEmail / SMTP

Nodemailer: Error: Invalid login: 535-5.7.8 Username and Password not accepted (code: 'EAUTH', responseCode: 535)

The SMTP server rejected the credentials passed to Nodemailer.