SMTP

SMTP 220 Service Ready vs 521 Host Does Not Accept Mail

SMTP 220 (Service Ready) is a 2xx Positive Completion response, while 521 (Host Does Not Accept Mail) is a 5xx Permanent Negative response. 220 indicates that the SMTP server is ready to begin the mail transaction. This greeting is the first response a client receives upon connecting, and it typically includes the server's hostname and software identificati In contrast, 521 means that the host does not accept mail at all. This indicates the server exists but is explicitly configured to reject all incoming email messages.

Descrição

The SMTP server is ready to begin the mail transaction. This greeting is the first response a client receives upon connecting, and it typically includes the server's hostname and software identification.

Quando você o vê

Immediately after establishing a TCP connection to the mail server on port 25, 465, or 587. This is the server's welcome banner confirming it is ready to accept commands.

Como corrigir

No fix needed — this confirms a successful connection. If you do not receive this greeting, check that the server is running, the port is correct, and no firewall is blocking the connection.

Descrição

The host does not accept mail at all. This indicates the server exists but is explicitly configured to reject all incoming email messages.

Quando você o vê

When connecting to a server that has been intentionally configured to refuse all email, such as a domain that only sends but never receives mail.

Como corrigir

Verify you are connecting to the correct mail server by checking the domain's MX records. If the domain truly does not accept mail, contact the recipient through an alternative channel.

Diferenças principais

1.

220 is a 2xx Positive Completion response, while 521 is a 5xx Permanent Negative response.

2.

SMTP 220: The SMTP server is ready to begin the mail transaction. This greeting is the first response a client receives upon connecting, and it typically includes the server's hostname and software identificati

3.

SMTP 521: The host does not accept mail at all. This indicates the server exists but is explicitly configured to reject all incoming email messages.

4.

You encounter 220 when immediately after establishing a TCP connection to the mail server on port 25, 465, or 587. This is the server's welcome banner confirming it is ready to accept commands.

5.

You encounter 521 when when connecting to a server that has been intentionally configured to refuse all email, such as a domain that only sends but never receives mail.

Quando usar qual

For 220 (Service Ready): No fix needed — this confirms a successful connection. If you do not receive this greeting, check that the server is running, the port is correct, and no firewall is blocking the connection. For 521 (Host Does Not Accept Mail): Verify you are connecting to the correct mail server by checking the domain's MX records. If the domain truly does not accept mail, contact the recipient through an alternative channel.

Saiba mais