Loading...
Email
Email over SMTP
SMTP enhanced status codes

SMTP enhanced status codes


This page lists all enhanced SMTP status codes returned by the SMTP API.

You typically need to explicitly handle:

  • 4xx - Temporary failures (retry recommended)
  • 5xx - Permanent failures (request must be corrected before retrying)

Codes in the 2xx and 3xx range represent normal protocol states and are generally handled automatically by SMTP client libraries.


2xx - Success

Status codeSMTP response messageCommandDescription
220 2.0.0Ready to start TLSSTARTTLSTLS handshake is ready to begin. The server accepted the STARTTLS command and the client should now initiate TLS negotiation.
221 2.0.0ByeQUITSession ended normally. The server acknowledged the client's QUIT command to close the connection.
235 2.7.0Authentication successfulAUTHThe client provided valid credentials via one of AUTH command mechanism and is now authenticated.
250 2.0.0OKRSETTransaction state has been reset by RSET command. Any in-progress (MAIL FROM / RCPT TO / DATA) state is cleared.
250 2.0.0OKNOOPKeep-alive acknowledged by NOOP command. The server is still active and the connection is healthy.
250 2.1.0Sender <address> OKMAIL FROMThe sender address was accepted by MAIL FROM command. The server validated the email address format and is ready to accept recipients.
250 2.1.5Recipient <address> OKRCPT TOThe recipient address was accepted by RCPT TO command. The server validated the email address format and added it to the recipient list.
250 2.6.0Message queued as <message_id>DATAThe message body was successfully received and processed after DATA command. Server returned UUID by which message can be tracked in the system.
Note

The <message_id> is a unique identifier assigned by the Infobip SMTP API to each accepted message. When retrieving delivery reports, you can use the <message_id> to identify which report belongs to which original message.


3xx - Intermediate

Status codeSMTP response messageCommandDescription
354End data with <CR><LF>.<CR><LF>DATAThe server is ready to receive the message body on DATA command. The client should send the email content and terminate it with a line containing a single dot.

4xx - Temporary failures

Temporary failures indicate that the request was valid but could not be processed at this time.

Status codeSMTP response messageCommandDescription
421 4.3.0Mail system failure, closing transmission channelAnyA temporary internal error occurred. The system is protecting itself by closing the connection. The client should retry after a delay.
421 4.3.2Too many connections, try again laterConnectionThe server has reached its maximum total connection limit. The client should retry after a delay.
421 4.3.2Client connection limit reachedConnectionThe client's IP address has too many simultaneous connections open. The client should reuse the opened connections or retry after a delay.
421 4.3.2Service not availableDATAThe downstream processing service is temporarily unavailable. The client should retry after a delay.
421 4.4.0Problem attempting to execute commands. Please try again later.AnyAn I/O error occurred while the server was processing the command. The connection will be closed. The client should retry after a delay.
421 4.4.2Timeout waiting for the clientAnyThe client took too long to send the next command. The server timed out and is closing the connection. The client should ensure commands are sent promptly.
421 4.4.2Timeout during DATADATAThe client took too long to transmit the message body. The server timed out and is closing the connection. The client should ensure commands are sent promptly.
421 4.4.2Connection reset during DATADATAThe TCP connection was unexpectedly reset by the client while the server was reading the message body. The client should verify connection settings and timeouts.
452 4.5.3Too many recipientsRCPT TOThe message has exceeded the maximum number of allowed recipients per transaction.

5xx - Permanent failures

Permanent failures indicate that the request cannot succeed without modification.

Status codeSMTP response messageCommandDescription
501 5.1.7Bad sender address <address>MAIL FROMThe email address provided in the MAIL FROM command is not a valid email address. Check the sender address format (for example, [email protected]).
501 5.1.7Bad recipient address <address>RCPT TOThe email address provided in the RCPT TO command is not a valid email address. Check the recipient address format (for example, [email protected]).
501 5.5.2Syntax: EHLO <hostname>EHLOThe EHLO command was sent without the required parameter. Correct syntax: EHLO mail.example.com.
501 5.5.2Syntax: HELO <hostname>HELOThe HELO command was sent without the required parameter. Correct syntax: HELO mail.example.com.
501 5.5.2Syntax: STARTTLS (no parameters allowed)STARTTLSThe STARTTLS command was sent with extra parameters. The command does not accept any arguments. Correct syntax: STARTTLS.
501 5.5.2Syntax: RCPT TO: <address> <parameters>RCPT TOThe RCPT TO command has invalid syntax. Correct syntax: RCPT TO:<[email protected]>.
501 5.5.2Syntax: AUTH <type> <initial-response>AUTHThe AUTH command has invalid syntax. Correct syntax: AUTH PLAIN <base64-credentials> or AUTH LOGIN.
501 5.5.4Syntax: MAIL FROM: <address> <parameters>MAIL FROMThe MAIL FROM command has invalid syntax.
501 5.5.4Not a valid Base64 stringAUTHThe credentials sent during AUTH are not valid Base64-encoded text. Verify the client's AUTH encoding.
501 5.5.4Does not contain NUL (\0)AUTH PLAINInvalid AUTH format. Decoded string must follow the format: <NUL>username<NUL>password.
501 5.5.4Does not contain the second NUL (\0)AUTH PLAINThe AUTH PLAIN credential string is malformed. The decoded Base64 value must follow the format: \0username\0password.
501 5.7.0Authentication canceled by clientAUTHThe client sent * during the AUTH challenge-response exchange, which cancels authentication. Re-issue the AUTH command to try again.
502 5.5.1VRFY command has been disabledVRFYThe VRFY (verify) command is disabled on this server for policy reasons.
502 5.5.1EXPN command has been disabledEXPNThe EXPN (expand mailing list) command is disabled on this server for policy reasons.
502 5.5.1Unrecognized commandAnyThe command sent by the client is not recognized by the server. Check for typos or unsupported SMTP extensions.
503 5.5.1Already authenticatedAUTHThe client is already authenticated in this session. There is no need to authenticate again.
503 5.5.1Sender already specifiedMAIL FROMA MAIL FROM command has already been issued in this transaction. Use RSET to reset the transaction before specifying a new sender.
503 5.5.1Need MAIL commandDATA / RCPT TOThe client sent DATA or RCPT TO before issuing MAIL FROM. The correct command sequence is: MAIL FROM, then RCPT TO, then DATA.
503 5.5.1Need RCPT commandDATAThe client sent DATA without specifying any recipients. Issue at least one RCPT TO command before DATA.
503 5.5.1TLS already activeSTARTTLSThe client issued STARTTLS, but a TLS session is already established on this connection. TLS negotiation cannot be performed twice.
504 5.5.4Unsupported authentication type <mechanism>AUTHThe authentication mechanism requested is not supported by this server. Use one of the mechanisms advertised in the EHLO response (for example, PLAIN or LOGIN).
504 5.5.4AUTH mechanism mismatchAUTHThe authentication mechanism specified in the AUTH command does not match the handler processing it.
504 5.5.4Unrecognized command parameter <args>HELPThe HELP command was issued with an unrecognized parameter. Issue HELP without arguments to see available topics.
530 5.7.0Must issue a STARTTLS command firstMAIL FROM / RCPT TO / DATAThe server requires TLS encryption before accepting mail commands. Issue STARTTLS and complete TLS negotiation first.
530 5.7.0Authentication requiredMAIL FROM / RCPT TO / DATAThe server requires authentication before accepting mail commands. Issue AUTH with valid credentials first.
535 5.7.8Authentication credentials invalidAUTHThe provided username/password or API key failed verification. The credentials are incorrect or the account does not exist.
550 5.3.0Server errorDATAAn unexpected internal error occurred while processing the message. Contact support if the issue persists.
550 5.7.1Unauthorized access (account blocked by policy)AUTHAuthentication succeeded, but the account or user is blocked from sending traffic due to an administrative policy (for example, blocked account).
550 5.7.1Empty sender not allowedMAIL FROMThe MAIL FROM address is empty (null sender or bounce address). This server does not accept null senders.
550 5.7.1Sender not allowedMAIL FROMThe sender address provided in MAIL FROM is not authorized for this account. The domain or address is not registered or verified.
550 5.7.1Header from domain does not align with envelope from domainDATAThe domain in the message's From header does not match the domain used in the MAIL FROM envelope sender. This is an alignment check to prevent spoofing.
552 5.3.4Message size exceeds fixed limitMAIL FROMThe SIZE parameter in MAIL FROM exceeds the server's maximum allowed message size. Reduce the message size or split into smaller messages.
552 5.3.4Message size exceeds fixed limitDATAThe total message size (body and attachments) exceeds the maximum allowed size configured on the server. Reduce the message size or split into smaller messages.
554 5.6.0Pre-mature end of <CRLF>.<CRLF>DATAThe DATA stream ended before the proper SMTP end-of-data sequence (CRLF.CRLF) was received. The message transmission was incomplete.
554 5.6.0Invalid or corrupt MIME multipartDATAThe MIME structure of the message could not be parsed. The multipart boundaries or encoding are malformed. Verify the email client's MIME formatting.
554 5.6.0Could not read the message. <e.g Local address ends with dot>DATAAn email address in the message headers (To, Cc, Bcc, From) has invalid syntax and could not be parsed.
554 5.6.0Attachment is emptyDATAPolicy rejection. One or more attachments in the message have zero bytes of content. Remove empty attachments or provide actual content.
554 5.6.0Inline image is emptyDATAPolicy rejection. One or more inline images (Content-ID referenced) have zero bytes of content. Remove empty inline images or provide actual content.
554 5.6.0Subject not presentDATAPolicy rejection. Missing Subject header.
554 5.6.0Subject too longDATAPolicy rejection. Subject header too long.
554 5.6.0Body not presentDATAPolicy rejection. The message has no text body, no HTML body, and no attachments. At least one form of content is required.


Need assistance

Explore Infobip Tutorials

Encountering issues

Contact our support

What's new? Check out

Release Notes

Unsure about a term? See

Glossary
Service status

Copyright @ 2006-2026 Infobip ltd.

Service Terms & ConditionsPrivacy policyTerms of use