`
kobe学java
  • 浏览: 262503 次
  • 性别: Icon_minigender_1
  • 来自: 苏州
社区版块
存档分类
最新评论

smtp 返回代码 信息

    博客分类:
  • java
 
阅读更多

211214220221250251252253354355421432450451452453454458459500501502503504505521530534538550551552553554571572

SMTP Server Response Codes

SMTP servers use to respond to commands using a defined set of codes. This page is a small guide to the codes mail servers may produce when you try to send mail along with their meanings. They are part of the SMTP protocol (the set of rules used to send emails).

The Meaning of the Codes
A mail server will reply to every request a client (such as MaxBulk Mailer) makes with a return code. This code consists of three numbers.

 The first generally tells whether the server accepted the command and if it could handle it. The five possible values are:

1: The server has accepted the command, but does not yet take action. A confirmation message is required.

2: The server has completed the task successfully.

3: The server has understood the request, but requires further information to complete it.

4: The server has encountered a temporary failure. If the command is repeated without any change, it might be completed.

5: The server has encountered an error.

 The second number gives more information. Its six possible values are:

0: A syntax error has occured.

1: Indicates a informational reply, for example to a HELP request.

2: Refers to the connection status.

3 and 4 are unspecified.

5: Refers to the status of the mail system as a whole and the mail server in particular.

 The last number is even more specific and shows more graduations of the mail transfer status.

This leads us to the detailed list of ESMTP server response codes, as layed down in RFC 821 and later extensions.

CodeDescription

System status, or system help reply.
Help message (for a human reader follows).
SMTP Service ready (or Ready to start TLS).
SMTP Service closing transmission channel.
OK, queuing for node node started. Requested mail action okay, completed (Requested action taken and completed).
OK, no messages waiting for node node. User not local, will forward to forwardpath(The recipient is not local to the server, but the server will accept and forward the message).
Cannot VRFY user (e.g., info is not local), but will take message for this user and attempt delivery (The recipient cannot be verified, but the server accepts the message and to attempt delivery).
OK, messages pending messages for node node started.
Start mail input; end with <CRLF>.<CRLF>. This indicates that the server is ready to accept the message itself (after you have told the server who the message is from and who you want it to be sent to).
Octet-offset is the transaction offset.
Domain service not available, closing transmission channel (The service is not available and the connection will be closed).
A password transition is needed.
Requested mail action not taken: mailbox unavailable.
ATRN request refused (The requested command failed because the user's mailbox was unavailable, for example because it was locked).
Requested action aborted: local error in processing. Unable to process ATRN request now (The command has been aborted due to a server error. Not your fault. Maybe let the admin know).
Requested action not taken: insufficient system storage (The command has been aborted because the server has insufficient system storage, it happens sometimes when sending to a lot of recipients in Bcc mode).
You have no mail.
TLS not available due to temporary reason.
Encryption required for requested authentication mechanism.
Unable to queue messages for node node.
Node node not allowed: reason.
Command not recognized: command. Syntax error (The server could not recognize the command due to a syntax error).
Syntax error, no parameters allowed (A syntax error was encountered in command arguments).
Command not implemented (This command is not implemented).
Bad sequence of commands (The server has encountered a bad sequence of commands).
Command parameter not implemented (A command parameter is not implemented).
Authentication required
Machine does not accept mail.
Must issue a STARTTLS command first.
Encryption required for requested authentication mechanism.
Authentication mechanism is too weak.
Encryption required for requested authentication mechanism.
Requested action not taken: mailbox unavailable (The requested command failed because the user's mailbox was unavailable, for example because it was not found, or because the command was rejected for policy reasons).
User not local; please try forwardpath (The recipient is not local to the server. The server then gives a forward address to try).
Requested mail action aborted: exceeded storage allocation (The action was aborted due to exceeded storage allocation).
Requested action not taken: mailbox name not allowed (The command was aborted because the mailbox name is invalid).
Transaction failed.
No external routing allowed, remote sending only allowed with authentication (Illegal relay, missing authentication, RBL/blacklisting)
Bounces are blocked due to system abuse by spammers

Blue rows correspond to successfull responses.
Rose rows correspond to delivery errors
Red rows corresppond to server errors.

分享到:
评论

相关推荐

    smtp协议代码示例集合

    6. **错误处理**:在发送SMTP命令时,服务器可能会返回错误代码。需要正确处理这些错误,例如重试、断开连接或显示错误信息给用户。 7. **关闭连接**:发送完邮件后,记得使用`QUIT`命令关闭与服务器的连接,并释放...

    smtp.cpp.rar_SMTP客户端_smtp

    5. **遵循SMTP命令和响应**:SMTP是基于命令/响应的协议,客户端发送命令(如HELO、MAIL FROM、RCPT TO、DATA等),服务器返回响应,确保正确执行每一步操作。 6. **处理错误和异常**:当遇到网络问题、权限错误或...

    SMTP及pop3客户端程序代码

    在提供的压缩包中,"SMTP及pop3客户端程序代码"可能包含了实现SMTP和POP3协议功能的源代码。这些代码可能用C++, Python, Java或其他编程语言编写,可以帮助开发者理解如何在应用程序中集成邮件发送和接收功能。通过...

    修改后的SMTP源代码,提供发送电子邮件 VC源码-网络编程

    5. **错误处理**:SMTP服务器可能会返回各种错误代码,源代码需要能够识别并适当地处理这些错误,例如重试、断开连接或向用户报告问题。 6. **断开连接**:完成邮件发送后,源代码需要正确地关闭与SMTP服务器的连接...

    SMTP Service Extension (SMTP服务认证拓展)

    - 服务器在收到成功的`AUTH`命令后,必须拒绝任何进一步的`AUTH`命令,并返回503错误代码。 - `AUTH`命令不允许在邮件事务期间使用。 #### 五、认证原理分析 SMTP服务认证扩展基于SASL框架,该框架定义了多种认证...

    smtp协议中文PDF

    - **EHLO**: 类似于HELO,但在现代SMTP服务器中更常用,用于提供额外的信息,例如支持的扩展命令等。 ##### 4.2 响应代码 - **2XX**: 成功响应,例如`250 OK`表示命令已被接受并成功执行。 - **3XX**: 转移响应,...

    基于SMTP的邮件收发系统

    - 错误处理:处理SMTP服务器可能返回的各种错误代码和异常情况。 4. 邮件系统组件: - 客户端:用户界面,允许用户撰写、读取、删除邮件,与SMTP服务器交互。 - 服务器:负责接收、存储和转发邮件,使用SMTP与...

    smtp.rar_ PHP SMTP_php smtp_smtp_smtp php

    然后,`$mail-&gt;send()`方法会尝试通过SMTP服务器发送邮件,如果发送失败,会返回错误信息。 压缩包中的"www.pudn.com.txt"可能是一份说明文档或者示例代码的来源说明,它可能包含了更多关于如何使用这些PHP脚本的...

    smtp协议源程序代码

    5. **错误处理**:处理服务器返回的响应代码,识别并适当地处理错误或异常情况。 6. **断开连接**:完成邮件发送后,正确关闭与服务器的连接。 通过分析和理解这个源代码,开发者不仅可以学习到SMTP协议的工作原理...

    VC SMTP邮件发送程序

    总结起来,【VC SMTP邮件发送程序】是一个利用SMTP协议发送邮件的应用,核心代码位于`SMTP.h`和`SMTP.cpp`中,用户可以通过配置或者界面输入信息,实现邮件的发送。不论是在VS2008还是VC6.0环境下,都可以利用这些...

    基于SMTP的邮件发送端

    如果连接失败,会返回错误信息并结束程序。 #### 2.2 认证过程 - 成功连接后,SMTP服务器会发送一条“220”消息作为欢迎信息。客户端则通过发送“AUTH LOGIN\r\n”命令请求认证。 - 服务器会响应“334”消息,接着...

    SMTP发送操作实例

    根据题目中的部分代码示例,我们可以详细解析一下SMTP的工作流程及关键命令: 1. **telnet smtp.hnu.edu.cn 25**:使用telnet工具连接到smtp.hnu.edu.cn的25端口,这是SMTP默认的服务端口。 2. **220 hnu.edu....

    一个SMTP服务器实现程序

    8. **错误处理**:在MFC程序中,需要处理可能的网络错误和SMTP协议错误,例如连接失败、超时或服务器返回错误代码。 9. **多线程**:为了提高用户体验,程序可能需要使用MFC的多线程功能,让邮件发送在后台进行,不...

    smtp_socket_test

    在`smtp_socket_test`程序中,`libsock`可能是一个包含辅助函数的库,用于封装socket操作,如错误处理、网络地址解析(`getaddrinfo()`)、连接管理等,简化了代码并提高了可读性。 总的来说,这个项目提供了实践...

    SMTP发送邮件.docx

    在给出的代码示例中,展示了如何通过SMTP发送邮件的完整过程。 首先,代码创建了一个`Socket`对象,连接到SMTP服务器(这里是`smtp.qq.com`)的25号端口。SMTP服务器通常监听这个端口以接收邮件传输请求。然后,...

    易语言简单SMTP协议

    易语言中,这通常涉及读取网络流并解析服务器返回的响应代码。 6. **断开连接**:邮件发送完毕后,应礼貌地关闭与服务器的连接,释放资源。在SMTP协议中,这通常用"QUIT"命令来完成。 在提供的压缩包文件“易语言...

    smtp_邮件发送客户端.zip

    5. **命令交互**:SMTP协议是基于命令行的,客户端发送一系列命令如HELO, MAIL FROM, RCPT TO, DATA, QUIT等,服务器则返回响应码表示成功或失败。 6. **源码修改**:根据描述,用户需要在源码中替换服务器信息、...

    smtp C语言

    SMTP(Simple Mail ...如果你打算深入研究,还需要了解错误处理和异常情况的处理,例如网络中断、超时、服务器返回错误代码等情况。同时,为了保证代码的可读性和可维护性,良好的编程风格和注释也是必不可少的。

    SMTP 简单邮件发送系统 C++语言实现

    3. **SMTP命令构造与解析**:在C++代码中,需要构造并发送符合SMTP规范的字符串命令,同时解析服务器返回的响应码和信息,以确保邮件传输的正确性。 4. **邮件格式**:SMTP传输的邮件内容遵循MIME(Multipurpose ...

    smtp.rar_it_smtp

    2. 错误处理:当邮件无法送达时,SMTP服务器会返回错误代码,说明失败原因。 3. 身份验证:许多SMTP服务器支持身份验证,以防止滥用和垃圾邮件。 4. 邮件路由:SMTP服务器根据DNS MX记录(邮件交换记录)找到正确的...

Magicbox
Global site tag (gtag.js) - Google Analytics