[PHP] - SMTP 错误和响应码

翻译说明

原文地址:SMTP errors and reply codes

在使用 SMTP 邮箱服务时,如果不能正常发送邮件会收到一个错误提示,本文档为 SMTP 邮件服务在发生错误时的返回的 code 的释义及对应的详细错误信息说明,最后还有对应的解决方法。

本文可作为 SMTP 错误查阅表,也是个人学习英语的练习稿(第一次当翻译),不一定完全符合原意,仅作为参考。

中英文对照

Sometimes your SMTP server may return a particular error message. The problem is that it will generally be very cryptic, like “550 Requested action not taken: mailbox unavailable” or “421 Try again later”. What does these numbers mean?

有时你的 SMTP 服务可能会返回某些特定的错误提示,但它们通常都很神秘,例如:“550 Requested action not taken: mailbox unavailable”,又或者:“421 Try again later”,那么这些数字是什么意思?

First of all: not any reply code is an error. Sometimes it’s just a response containing a detail about the server or an answer to a command. Secondly: any code consist of three digits, and each conveys a particular information. The first one defines whether the server has accepted the command, fulfilled an action, run into a temporary issue, encountered an error etc; the second and the third one refine the description further, stating if there’s been a syntactic problem, or a connection trouble etc.

首先,响应码都不是错误。有时候它只是包含关于服务器的详细信息或者一条命令的响应信息。其次,所有的响应码都由三个数字组成,每一个数字都传达了特定的信息。第一个数字表明服务器是否已经接受了命令、完成一个动作、遇到一个临时性的问题或者遇到一个错误等等。第二和第三个数字是对类型的进一步补充,如果说有语法问题或者连接问题等等。

Unfortunately, different servers sometimes use these codes in a different way, making the whole thing even more complicated… Anyhow, the most critical series of error messages is the 5xx one, and especially the ones from 550 to 559. In particular, you will probably get a lot of 550 SMTP error codes – that is, a problem that concerns the recipient’s email address.

不幸的是,不同的服务器有时会以不同的方法去使用这些响应码,使事情变得更复杂……无论如何,最关键的是 5xx 类型的错误,特别是从 550 开始到 559 之间的响应码。你可能会收到许多 550 SMTP 错误——涉及收件人邮箱地址的问题。

Finally, remember that it’s much easier to deal with these error codes if you choose to rely on a professional SMTP server that will help you solve any issue. turboSMTP, for instance, comes with a 24/7 customer support: you can try it free and forget once for all these issues.

最后,记住使用专业的 SMTP 服务器,处理这些问题会简单得多。例如 turboSMTP 提供 7*24 小时的客户支持,您可以免费试用而忽略这些问题。

And here’s a list of the main SMTP error or reply messages, with an explanation and a tip about what to do.

这里有一个关于 SMTP 错误或者返回消息的列表,包含如何操作及说明的提示。

SMTP 响应码及其对应含义与解决方案

101

The server is unable to connect

服务器无法连接。

Try to change the server’s name (maybe it was spelt incorrectly) or the connection port.

尝试改变服务器名称(可能是拼写错了)或者端口。

111

Connection refused or inability to open an SMTP stream.

连接被拒绝或无法打开 SMTP 流。

This error normally refers to a connection issue with the remote SMTP server, depending on firewalls or misspelled domains. Double-check all the configurations and in case ask your provider.

此错误通常是指远程 SMTP 服务器的连接问题,具体取决于防火墙或拼写错误的域。仔细检查所有配置,也许可以询问您的提供商。

211

System status message or help reply.

系统状态响应信息或者响应帮助。

It comes with more information about the server.

它附带了更多关于服务器的信息。

214

A response to the HELP command

对帮助命令的响应。

It contains information about your particular server, normally pointing to a FAQ page.

它包含有关特定服务器的信息,通常指向 FAQ 页面。

220

The server is ready.

服务器准备好了。

It’s just a welcome message. Just read it and be happy that everything is working (so far)!

这只是一个欢迎消息,看到这条消息说明一切工作正常(到目前为止)。

221

The server is closing its transmission channel. It can come with side messages like “Goodbye” or “Closing connection”.

服务器正在关闭传输通道,可能看到附加消息“Goodbye”或“Closing connection”。

The mailing session is going to end, which simply means that all messages have been processed

邮件会话即将结束,意味着所有邮件都已处理完毕。

250

Its typical side message is “Requested mail action okay completed”: meaning that the server has transmitted a message.

典型的附加消息是“Requested mail action okay completed”,表示服务器已发送消息。

The oppsite of an error: everything has worked and your email has been delivered.

一切正常,您的邮件已发送。

251

“User not local will forward”: the recipient’s account is not on the present server, so it will be relayed to another.

非本地用户转发,收件人的帐户不在当前服务器上,因此它将被转发到另一个服务器。

It’s a normal transfer action. For other information check out our article on what is an SMTP server.

这是正常的转发动作,请查看 SMTP 服务器的条款。

252

The server cannot verify the user, but it will try to deliver the message anyway.

服务器无法验证用户,但它会继续尝试发送邮件。

The recipient’s email account is valid, but not verifiable. Normally the server relays the message to another one that will be able to check it.

收件人的邮件帐户有效,但无法验证。通常服务器会将消息转发给另一个能够检查它的服务器。

354

The side message can be very cryptic (“Start mail input end .”). It’s the typical response to the DATA command.

附带消息可能非常神秘(“Start mail input end .”)这是对 DATA 命令的特有响应。

The server has received the “From” and “To” details of the email, and is ready to get the body message.

服务器已收到电子邮件的发件人和收件人详细信息,并准备好获取正文消息。

420

“Timeout connection problem”: there have been issues during the message transfer.

连接超时问题:消息传输期间出现问题。

This error message is produced only by GroupWise servers. Either your email has been blocked by the recipient’s firewall, or there’s a hardware problem. Check with your provider.

此错误消息仅由 GroupWise 服务器生成。邮件被收件人的防火墙阻止或者存在硬件问题,请咨询供应商。

421

The service is unavailable due to a connection problem: it may refer to an exceeded limit of simultaneous connections, or a more general temporary problem.

由于连接问题服务器不可用:可能是因为同时连接数超出限制,或者普通的临时问题。

The server (yours or the recipient’s) is not available at the moment, so the dispatch will be tried again later.

服务器(您的或收件人的)目前不可用,因此稍后将重试发送。

422

The recipient’s mailbox has exceeded its storage limit.

收件人的邮箱已经超出其存储限制。

Best is to contact contact the user via another channel to alert him and ask to create some free room in his mailbox.

最好通过其他渠道联系到用户,并提醒他为邮箱增加新的空间。

431

Not enough space on the disk, or an “out of memory” condition due to a file overload.

没有足够的硬盘空间或者由于文件过载导致内存不足。

This error may depend on too many messages sent to a particular domain. You should try again sending smaller sets of emails instead of one big mail-out.

该错误可能是由于向特定的域发送了过多的消息,您应该尝试发送较小的邮件而不是一次性发送大邮件。

432

Typical side-message: “The recipient’s Exchange Server incoming mail queue has been stopped”.

典型的附带信息:“The recipient’s Exchange Server incoming mail queue has been stopped”收件人的 Exchange Server 邮件队列已停止。

It’s a Microsoft Exchange Server’s SMTP error code. You should contact it to get more information: generally it’s due to a connection problem.

这是微软的 Exchange 服务的 SMTP 错误码,您应该联系它获取更多的信息:通常是由于连接的问题。

441

The recipient’s server is not responding.

收件人的服务器未响应。

There’s an issue with the user’s incoming server: yours will try again to contact it.

用户的传入服务器有问题,您将再次尝试进行联系。

442

The connection was dropped during the transmission.

传输期间连接断开。

A typical network connection problem, probably due to your router: check it immediately.

典型的网络链接问题,可能是由于你的路由器造成的:立即检查它。

446

The maximum hop count was exceeded for the message: an internal loop has occurred.

超出了最大计数:发生内部循环。

Ask your SMTP provider to verify what has happened.

咨询你的服务商发生了什么。

447

Your outgoing message timed out because of issues concerning the incoming server.

由于传入服务器问题,发送消息超时。

This happens generally when you exceeded your server’s limit of number of recipients for a message. Try to send it again segmenting the list in different parts.

当超过服务器的邮件收件人数限制时,通常会发生这种情况。尝试再次发送它,将列表分割为不同的部分。

449

A routing error.

路由错误。

Like error 432, it’s related only to Microsoft Exchange. Use WinRoute.

与 432 错误一样,它只与微软的 Exchange 有关,使用 WinRoute

450

“Requested action not taken – The user’s mailbox is unavailable”. The mailbox has been corrupted or placed on an offline server, or your email hasn’t been accepted for IP problems or blacklisting.

请求的操作未执行-用户邮箱不可用。邮箱已损坏或放置在脱机服务器上,或者您的电子邮件因 IP 问题或黑名单而未被接受。

The server will retry to mail the message again, after some time. Anyway, verify that is working on a reliable IP address.

服务器将在一段时间后重试发送邮件。无论如何,请验证是否正在使用可靠的 IP 地址。

451

“Requested action aborted – Local error in processing”. Your ISP’s server or the server that got a first relay from yours has encountered a connection problem.

请求的操作已中止–处理过程中出现本地错误。您的 ISP 服务器或从您的服务器获得第一个中继的服务器遇到连接问题。

It’s normally a transient error due to a message overload, but it can refer also to a rejection due to a remote antispam filter. If it keeps repeating, ask your SMTP provider to check the situation. (If you’re sending a large bulk email with a free one that can be a common issue)

这通常是由于消息过载导致的暂时性错误,但也可能是由于远程反垃圾邮件过滤器导致的拒绝。如果不断重复,请让您的 SMTP 提供程序检查情况。(如果你正在发送一封大容量的免费电子邮件,这可能是一个常见问题)

452

Too many emails sent or too many recipients: more in general, a server storage limit exceeded.

发送的电子邮件太多或收件人太多:一般来说是超过服务器存储限制。

Again, the typical cause is a message overload. Usually the next try will succeed: in case of problems on your server it will come with a side-message like “Out of memory

同样是消息过载,通常下一次尝试会成功:如果服务器出现问题,它会附带一条消息,如“内存不足”。

471

An error of your mail server, often due to an issue of the local anti-spam filter.

邮件服务器的错误,通常是由于本地反垃圾邮件过滤器的问题。

Contact your SMTP service provider to fix the situation.

请与 SMTP 服务提供商联系以解决此问题。

500

A syntax error: the server couldn’t recognize the command.

语法错误:服务器无法识别该命令。

It may be caused by a bad interaction of the server with your firewall or antivirus. Read carefully their instructions to solve it.

这可能是由于服务器与防火墙或防病毒软件的影响造成的。仔细阅读他们的说明来解决这个问题。

501

Another syntax error, not in the command but in its parameters or arguments.

另一个语法错误,不是命令中而是参数。

In the majority of the times it’s due to an invalid email address, but it can also be associated with connection problems (and again, an issue concerning your antivirus settings)

大多数情况下是由于无效的邮箱地址,但也可能与连接问题(再次,一个有关您的防病毒设置的问题)有关。

502

The command is not implemented

命令还未实现。

The command has not been activated yet on your own server. Contact your provider to know more about it.

命令仍未在你的服务器上激活,请联系你的服务商了解更多关于它的详情。

503

The server has encountered a bad sequence of commands, or it requires an authentication.

服务器遇到错误的命令序列,或者需要验证。

In case of “bad sequence”, the server has pulled off its commands in a wrong order, usually because of a broken connection. If an authentication is needed, you should enter your username and password.

在“坏序列”的情况下,服务器以错误的顺序执行命令,通常是因为连接断开。如果需要身份验证,则应输入用户名和密码。

504

A command parameter is not implemented.

一个命令的参数没有实现。

Like error 501, is a syntax problem; you should ask your provider.

与 501 错误一样,是一个语法问题,请咨询服务商。

510/511

Bad email address.

错误的邮箱地址。

One of the addresses in your TO, CC or BBC line doesn’t exist. Check again your recipients’ accounts and correct any possible misspelling.

“收件人”、“抄送”或“bbc”行中的某个地址不存在。再次检查收件人的帐户并更正任何可能的拼写错误。

512

A DNS error: the host server for the recipient’s domain name cannot be found.

DNS错误:找不到收件人域名的主机服务器。

Check again all your recipients’ addresses: there will likely be an error in a domain name (like mail@domain.coom instead of mail@domain.com).

再次检查所有收件人的地址:域名中可能有错误(例如 mail@domain.coom 而不是 mail@domain.com)。

513

“Address type is incorrect”: another problem concerning address misspelling. In few cases, however, it’s related to an authentication issue.

“地址类型不正确”:另一个有关地址拼写错误的问题。然而在少数情况下,它与身份验证问题有关。

Doublecheck your recipients’ addresses and correct any mistake. If everything’s ok and the error persists, then it’s caused by a configuration issue (simply, the server needs an authentication).

仔细检查收件人的地址并改正错误。如果一切正常并且错误仍然存在,那么这是由配置问题引起的(简单地说,服务器需要身份验证)。

523

The total size of your mailing exceeds the recipient server’s limits.

邮件的总大小超出了收件人服务器的限制。

Re-send your message splitting the list in smaller subsets.

重新发送邮件,将列表分成更小的子集。

530

Normally, an authentication problem. But sometimes it’s about the recipient’s server blacklisting yours, or an invalid email address.

通常是身份验证问题。但有时它是关于收件人的服务器黑名单你的,或一个无效的电子邮件地址。

Configure your settings providing a username+password authentication. If the error persists, check all your recipients’ addresses and if you’ve been blacklisted.

配置提供用户名+密码身份验证的设置。如果错误仍然存在,请检查所有收件人的地址以及是否已被列入黑名单。

541

The recipient address rejected your message: normally, it’s an error caused by an anti-spam filter.

收件人拒绝了你的邮件:通常是反垃圾邮件过滤器导致的错误。

Your message has been detected and labeled as spam. You must ask the recipient to whitelist you.

你的邮件地址被标记为垃圾邮件,必须要求接受者将你加入白名单。

550

It usually defines a non-existent email address on the remote side.

通常说明了一个远端不存在的邮件地址。

Though it can be returned also by the recipient’s firewall (or when the incoming server is down), the great majority of errors 550 simply tell that the recipient email address doesn’t exist. You should contact the recipient otherwise and get the right address.

尽管可能是接受者防火墙返回的消息(或者当传入服务器关闭时),绝大多数 550 错误只是说明收件人地址不存在,然后你应该联系收件人获取正确的地址。

551

“User not local or invalid address – Relay denied”. Meaning, if both your address and the recipient’s are not locally hosted by the server, a relay can be interrupted.

“用户不是本地地址或者地址无效 - 转发被拒绝”。意思是说如果你的地址和接受者的地址都不是本地服务,转发会中断。

It’s a (not very clever) strategy to prevent spamming. You should contact your ISP and ask them to allow you as a certified sender. Of course, with a professional SMTP provider like turboSMTP you won’t ever deal with this issue.

这是一个防止垃圾邮件的策略(不是很聪明)。应该联系 ISP 并要求他们允许你作为认证发件人。当然,对于像 TurboSMTP 这样的专业 SMTP 提供商,你永远不需要处理这个问题。

552

“Requested mail actions aborted – Exceeded storage allocation”: simply put, the recipient’s mailbox has exceeded its limits.

“请求邮件的操作已终止 - 超过存储配置”:简而言之,接收者的邮箱已经超出其限制。

Try to send a lighter message: that usually happens when you dispatch emails with big attachments, so check them first.

尝试发送更轻量级的消息:通常在你发送带有较大附件的邮件时会发生这种情况,所以先检查一下。

553

“Requested action not taken – Mailbox name invalid”. That is, there’s an incorrect email address into the recipients line.

“请求动作未执行 - 邮箱名称无效”。也就是说收件人的邮箱地址不正确。

Check all the addresses in the TO, CC and BCC field. There should be an error or a misspelling somewhere.

检查“收件人”、“抄送”和“密件抄送”字段中的所有地址。某个地方应该有错误或拼写错误。

554

This means that the transaction has failed. It’s a permanent error and the server will not try to send the message again.

这意味着该事务已失败。这是一个永久性错误,服务器将不再尝试发送消息。

The incoming server thinks that your email is spam, or your IP has been blacklisted. Check carefully if you ended up in some spam lists, or rely on a professional SMTP service like turboSMTP that will nullify this problem.

接收服务器认为您的电子邮件是垃圾邮件,或者您的IP已被列入黑名单。仔细检查你是否在垃圾邮件列表里,或者依赖专业的 SMTP 服务商,像 turboSMTP 来消除你的问题。

讨论

还没有人评论~