托梦是什么意思| 什么动物倒着走| 一抽一抽的打嗝叫什么| 有湿热吃什么中成药| 广州立冬吃什么| 尿结石是什么症状表现| 阴性阳性什么意思| 女孩叫兮兮是什么意思| 今天什么时候下雨| 十八岁成人礼送什么礼物| 过年送什么礼物好| 尿臭是什么原因男性| 蜜蜂吃什么食物| special是什么意思| 23年属什么| swell是什么牌子| 8月20号什么星座| 什么病可以申请低保| 什么的东西| 梦见蜈蚣是什么预兆| 血钾查什么项目| 摸头是什么意思| 肾虚吃什么食物能补| 阑尾炎手术后可以吃什么水果| 什么是超标电动车| 反法西斯是什么意思| 六月十六什么星座| 额头上有痣代表什么| 下午六点是什么时辰| 保家仙都有什么仙| 身份证复印件是什么| 敏字五行属什么| 丢钱是什么预兆| 什么除湿气效果最好| 暮春是什么时候| 分开后我会笑着说是什么歌| 为什么会得牙周炎| 钠是什么| 睡觉经常流口水是什么原因| sc1是什么意思| 黄瓜不能和什么食物一起吃| 专升本要考什么| 二尖瓣反流吃什么药| 元朝是什么民族| 食是代表什么生肖| 深海鱼油有什么作用| 51年属什么生肖| 搞破鞋是什么意思| 各什么己| 什么什么不生| 半套什么意思| 海藻是什么植物| 众望所归是什么意思| 今天会开什么生肖| 喝白糖水有什么好处和坏处| 轻描淡写是什么意思| 440分能上什么大学| 马加大是什么字| 人类的祖先是什么| 荷花是什么季节| 天梭手表属于什么档次| 双手麻是什么原因| 什么样的女人不能娶| 潜能什么意思| 什么鱼炖豆腐好吃| 尿血是什么病| 三合一是什么意思| 同房肚子痛是什么原因| 尿道炎用什么药治疗最好| 四月十号是什么星座| 隐形眼镜半年抛是什么意思| 身体发冷是什么原因| 鼻子上火是什么原因引起的| 男人分手是什么感觉| 8月29日是什么星座| 一个火一个旦读什么字| 牙齿黑是什么原因| 什么是痉挛| 怀孕分泌物是什么样的| 宝石蓝配什么颜色好看| 每天尿都是黄的是什么原因| 乐捐是什么意思| 肾脏不好吃什么食物好| 头晕四肢无力是什么原因| michaelkors是什么牌子| 精液长什么样| 马驹是什么意思| 牙痛 吃什么药| 个人送保是什么意思| meshor是什么牌子的手表| 3月1日是什么星座| 连襟是什么关系| 什么花适合室内养| 超市是什么意思| 手指上的月牙代表什么| 医德是什么| 梦到吃苹果是什么意思| 看望病人买什么东西好| 托塔李天王的塔叫什么| 果酸有什么作用| 肌酸激酶偏低是什么原因| 精神病吃什么药最好| 三丧日是什么意思| 空窗期是什么意思| 手麻吃什么药| 为什么会无缘无故长痣| 看正月初一是什么生肖| 梦见朋友怀孕了是什么意思| 女性内分泌失调吃什么药| 戒腊什么意思| 为什么胸闷一吃丹参滴丸就好| 梦见蟒蛇是什么预兆| 欣是什么意思| 电风扇不转是什么原因| 没什么打什么| 牛巴是什么| 牙齿上有黑点是什么原因| 隐翅虫咬到擦什么药膏| 脸上不出汗是什么原因| 阴茎溃疡用什么药| 袁绍和袁术是什么关系| 子宫为什么会长息肉| 新生儿痤疮是什么引起的| 什么东东| 乳腺属于什么科室| 片的第二笔是什么| 女人吃知了有什么好处| 生精补精吃什么药最快| 一把把什么| 直视是什么意思| 海参是补什么的| 吃谷维素有什么副作用| 扁食是什么| 口舌麻木吃什么药| 下肢水肿是什么原因| 离异什么意思| 情系是什么意思| 开塞露是什么| 总放屁还特别臭是什么原因| 为什么会尿频尿急| 总流口水是什么原因| 什么是西米| 什么原因引起甲亢| 阴道感染用什么药| 馀事勿取什么意思| 吃大蒜有什么好处| 孕检无创是检查什么的| 眼睛老是肿着是什么原因造成的| 做梦买房子是什么预兆| 820是什么意思| 白玉蜗牛吃什么| hrd是什么意思| 微信为什么加不了好友| 穷思竭虑什么意思| 滥竽充数的充是什么意思| 徒木立信是什么意思| 1960属什么生肖| 9999是什么意思| 呼吸道感染吃什么药| 血管瘤有什么危害吗| 阴道炎用什么药效果好| 满族八大碗都有什么菜| 梅干菜是什么菜| 夏朝前面是什么朝代| 鼻子旁边长痘是什么原因| suv是什么意思| 偏头痛什么原因引起的| 凶猛的动物是什么生肖| 无偿献血证有什么用| 气溶胶传播是什么意思| 纳豆是什么豆子| 掉头发是因为什么| 乙木的根是什么| 存在是什么| 长方形的纸可以折什么| 六爻小说讲的什么| 精液发黄是什么原因引起的| 商鞅变法是什么时期| 恋爱观是什么| 六月生日是什么星座| 什么是瑜伽| 智能手环什么品牌好| gr什么意思| 无花果和什么不能一起吃| 领证需要准备什么| 石榴什么时候开花| 清明上河图描绘的是什么季节的景象| 支原体感染有什么症状| 正剧是什么意思| 头晕吃什么| 夏的五行属什么| 倒立有什么好处和坏处| 手指甲上有竖纹是什么原因| 脚心疼痛是什么原因引起的| 下眼袋大是什么原因引起的| 屈光不正是什么| 葡萄和什么不能一起吃| 途字五行属什么| 耳石症是什么症状| 十一月份什么星座| 医生为什么会建议竖切| 药店属于什么行业| 木糖醇是什么东西| 冠状动脉钙化是什么意思| 神经性皮炎用什么药好| 孕妇梦见坟墓是什么预兆| 梦见烧纸钱是什么意思| 别出心裁是什么生肖| 开心果是什么意思| 儿童矮小挂什么科| 嘴突然歪是什么原因造成的| 检验葡萄糖用什么试剂| 凌晨三点是什么时辰| 失恋是什么意思| 胃糜烂是什么症状| 蛇胆疮是什么引起的| 蓝莓什么季节成熟| 女性失眠吃什么药最好| 喉咙痛可以吃什么水果| 什么清什么白| 桉是什么意思| 深呼吸有什么好处| 萎缩性胃炎能吃什么水果| 睾丸是什么意思| 肿气肿用什么药比较好| 胆囊大是什么原因| 男人射的快是什么原因| 人是什么生物| 头发出汗多是什么原因| 阿斯顿马丁什么档次| 棘突是什么意思| 吃羊肉有什么好处| 劳力士手表什么档次| 肺阴不足的症状是什么| 尿胆红素2十是什么意思| 2017年属什么生肖| 孕妇生气对胎儿有什么影响| 刺身什么意思| 二十二岁属什么| 头晕目眩吃什么药| 为什么放屁特别臭| 姜字五行属什么| 眉毛中间长痘痘是什么原因| 2是什么数| 挖空细胞是什么意思啊| 院感是什么意思| 过敏性紫癜有什么症状| 月经期间吃什么| 晗字五行属什么| 男性左下腹疼痛是什么原因| 卑职是什么意思| 1935年是什么生肖| 精梳棉是什么面料| 晚上睡觉流口水是什么原因| 灰指甲什么样| 金银花泡水喝有什么好处| 3月14日是什么日子| 章鱼属于什么类动物| 说话鼻音重是什么原因| 石女是什么意思啊| 心气虚吃什么中成药| 眼角有眼屎是什么原因| 莲子适合什么人吃| 吃蒸苹果有什么好处| 百度
Skip to main content

A股投资环境优化 价值投资理念成主流

Document Type RFC - Draft Standard (July 1994)
Obsoleted by RFC 1870
Obsoletes RFC 1427
Authors Ned Freed , Dr. John C. Klensin , Keith Moore
Last updated 2025-08-07
RFC stream Internet Engineering Task Force (IETF)
Formats
Additional resources ftp%3A//list.cren.net%3A/archives/ietf-smtp/%2A
IESG Responsible AD (None)
Send notices to (None)
RFC 1653
百度 不过在办理住房贷款时,银行一般会对房产做一个抵押登记,而带抵押登记标志的房产证,限制了房产的交易和再抵押。
Network Working Group                               J. Klensin, WG Chair
Request for Comments: 1653                                           MCI
Obsoletes: 1427                                         N. Freed, Editor
Category: Standards Track                                       Innosoft
                                                                K. Moore
                                                 University of Tennessee
                                                               July 1994

          SMTP Service Extension for Message Size Declaration

Status of this Memo

   This document specifies an Internet standards track protocol for the
   Internet community, and requests discussion and suggestions for
   improvements.  Please refer to the current edition of the "Internet
   Official Protocol Standards" (STD 1) for the standardization state
   and status of this protocol.  Distribution of this memo is unlimited.

Abstract

   This memo defines an extension to the SMTP service whereby an SMTP
   client and server may interact to give the server an opportunity to
   decline to accept a message (perhaps temporarily) based on the
   client's estimate of the message size.

1.  Introduction

   The MIME extensions to the Internet message protocol provide for the
   transmission of many kinds of data which were previously unsupported
   in Internet mail.  One expected result of the use of MIME is that
   SMTP will be expected to carry a much wider range of message sizes
   than was previously the case.  This has an impact on the amount of
   resources (e.g., disk space) required by a system acting as a server.

   This memo uses the mechanism defined in [5] to define extensions to
   the SMTP service whereby a client ("sender-SMTP") may declare the
   size of a particular message to a server ("receiver-SMTP"), after
   which the server may indicate to the client that it is or is not
   willing to accept the message based on the declared message size and
   whereby a server ("receiver-SMTP") may declare the maximum message
   size it is willing to accept to a client ("sender-SMTP").

Klensin, Freed & Moore                                          [Page 1]
RFC 1653                 SMTP Size Declaration                 July 1994

2.  Framework for the Size Declaration Extension

   The following service extension is therefore defined:

   (1) the name of the SMTP service extension is "Message Size
       Declaration";

   (2) the EHLO keyword value associated with this extension is "SIZE";

   (3) one optional parameter is allowed with this EHLO keyword value,
       a decimal number indicating the fixed maximum message size in
       bytes that the server will accept.  The syntax of the parameter
       is as follows, using the augmented BNF notation of [2]:

           size-param ::= [1*DIGIT]

       A parameter value of 0 (zero) indicates that no fixed maximum
       message size is in force.  If the parameter is omitted no
       information is conveyed about the server's fixed maximum message
       size;

   (4) one optional parameter using the keyword "SIZE" is added to the
       MAIL FROM command.  The value associated with this parameter is a
       decimal number indicating the size of the message that is to be
       transmitted.  The syntax of the value is as follows, using the
       augmented BNF notation of [2]:

           size-value ::= 1*DIGIT

   (5) no additional SMTP verbs are defined by this extension.

   The remainder of this memo specifies how support for the extension
   affects the behavior of an SMTP client and server.

3.  The Message Size Declaration service extension

   An SMTP server may have a fixed upper limit on message size.  Any
   attempt by a client to transfer a message which is larger than this
   fixed upper limit will fail.  In addition, a server normally has
   limited space with which to store incoming messages.  Transfer of a
   message may therefore also fail due to a lack of storage space, but
   might succeed at a later time.

   A client using the unextended SMTP protocol defined in [1], can only
   be informed of such failures after transmitting the entire message to
   the server (which discards the transferred message).  If, however,
   both client and server support the Message Size Declaration service
   extension, such conditions may be detected before any transfer is

Klensin, Freed & Moore                                          [Page 2]
RFC 1653                 SMTP Size Declaration                 July 1994

   attempted.

   An SMTP client wishing to relay a large content may issue the EHLO
   command to start an SMTP session, to determine if the server supports
   any of several service extensions.  If the server responds with code
   250 to the EHLO command, and the response includes the EHLO keyword
   value SIZE, then the Message Size Declaration extension is supported.

   If a numeric parameter follows the SIZE keyword value of the EHLO
   response, it indicates the size of the largest message that the
   server is willing to accept.  Any attempt by a client to transfer a
   message which is larger than this limit will be rejected with a
   permanent failure (552) reply code.

   A server that supports the Message Size Declaration extension will
   accept the extended version of the MAIL command described below.
   When supported by the server, a client may use the extended MAIL
   command (instead of the MAIL command as defined in [1]) to declare an
   estimate of the size of a message it wishes to transfer.  The server
   may then return an appropriate error code if it determines that an
   attempt to transfer a message of that size would fail.

4.  Definitions

   The message size is defined as the number of octets, including CR-LF
   pairs, but not the SMTP DATA command's terminating dot or doubled
   quoting dots, to be transmitted by the SMTP client after receiving
   reply code 354 to the DATA command.

   The fixed maximum message size is defined as the message size of the
   largest message that a server is ever willing to accept.  An attempt
   to transfer any message larger than the fixed maximum message size
   will always fail.  The fixed maximum message size may be an
   implementation artifact of the SMTP server, or it may be chosen by
   the administrator of the server.

   The declared message size is defined as a client's estimate of the
   message size for a particular message.

4.  The extended MAIL command

   The extended MAIL command is issued by a client when it wishes to
   inform a server of the size of the message to be sent.  The extended
   MAIL command is identical to the MAIL command as defined in [1],
   except that a SIZE parameter appears after the address.

Klensin, Freed & Moore                                          [Page 3]
RFC 1653                 SMTP Size Declaration                 July 1994

   The complete syntax of this extended command is defined in [5]. The
   esmtp-keyword is "SIZE" and the syntax for esmtp-value is given by
   the syntax for size-value shown above.

   The value associated with the SIZE parameter is a decimal
   representation of the declared message size in octets.  This number
   should include the message header, body, and the CR-LF sequences
   between lines, but not the SMTP DATA command's terminating dot or
   doubled quoting dots. Only one SIZE parameter may be specified in a
   single MAIL command.

   Ideally, the declared message size is equal to the true message size.
   However, since exact computation of the message size may be
   infeasable, the client may use a heuristically-derived estimate.
   Such heuristics should be chosen so that the declared message size is
   usually larger than the actual message size. (This has the effect of
   making the counting or non-counting of SMTP DATA dots largely an
   academic point.)

   NOTE: Servers MUST NOT use the SIZE parameter to determine end of
   content in the DATA command.

5.1  Server action on receipt of the extended MAIL command

   Upon receipt of an extended MAIL command containing a SIZE parameter,
   a server should determine whether the declared message size exceeds
   its fixed maximum message size.  If the declared message size is
   smaller than the fixed maximum message size, the server may also wish
   to determine whether sufficient resources are available to buffer a
   message of the declared message size and to maintain it in stable
   storage, until the message can be delivered or relayed to each of its
   recipients.

   A server may respond to the extended MAIL command with any of the
   error codes defined in [1] for the MAIL command.  In addition, one of
   the following error codes may be returned:

   (1) If the server currently lacks sufficient resources to accept a
       message of the indicated size, but may be able to accept the
       message at a later time, it responds with code "452
       insufficient system storage".

   (2) If the indicated size is larger than the server's fixed maximum
       message size, the server responds with code "552 message size
       exceeds fixed maximium message size".

   A server is permitted, but not required, to accept a message which
   is, in fact, larger than declared in the extended MAIL command, such

Klensin, Freed & Moore                                          [Page 4]
RFC 1653                 SMTP Size Declaration                 July 1994

   as might occur if the client employed a size-estimation heuristic
   which was inaccurate.

5.2  Client action on receiving response to extended MAIL command

   The client, upon receiving the server's response to the extended MAIL
   command, acts as follows:

   (1) If the code "452 insufficient system storage" is returned, the
       client should next send either a RSET command (if it wishes to
       attempt to send other messages) or a QUIT command. The client
       should then repeat the attempt to send the message to the server
       at a later time.

   (2) If the code "552 message exceeds fixed maximum message size" is
       received, the client should immediately send either a RSET
       command (if it wishes to attempt to send additional messages),
       or a QUIT command.  The client should then declare the message
       undeliverable and return appropriate notification to the sender
       (if a sender address was present in the MAIL command).

   A successful (250) reply code in response to the extended MAIL
   command does not constitute an absolute guarantee that the message
   transfer will succeed.  SMTP clients using the extended MAIL command
   must still be prepared to handle both temporary and permanent error
   reply codes (including codes 452 and 552), either immediately after
   issuing the DATA command, or after transfer of the message.

5.3  Messages larger than the declared size.

   Once a server has agreed (via the extended MAIL command) to accept a
   message of a particular size, it should not return a 552 reply code
   after the transfer phase of the DATA command, unless the actual size
   of the message transferred is greater than the declared message size.
   A server may also choose to accept a message which is somewhat larger
   than the declared message size.

   A client is permitted to declare a message to be smaller than its
   actual size.  However, in this case, a successful (250) reply code is
   no assurance that the server will accept the message or has
   sufficient resources to do so.  The server may reject such a message
   after its DATA transfer.

5.4  Per-recipient rejection based on message size.

   A server that implements this extension may return a 452 or 552 reply
   code in response to a RCPT command, based on its unwillingness to
   accept a message of the declared size for a particular recipient.

Klensin, Freed & Moore                                          [Page 5]
RFC 1653                 SMTP Size Declaration                 July 1994

   (1) If a 452 code is returned, the client may requeue the message for
       later delivery to the same recipient.

   (2) If a 552 code is returned, the client may not requeue the message
       for later delivery to the same recipient.

6.  Minimal usage

   A "minimal" client may use this extension to simply compare its
   (perhaps estimated) size of the message that it wishes to relay, with
   the server's fixed maximum message size (from the parameter to the
   SIZE keyword in the EHLO response), to determine whether the server
   will ever accept the message.  Such an implementation need not
   declare message sizes via the extended MAIL command.  However,
   neither will it be able to discover temporary limits on message size
   due to server resource limitations, nor per-recipient limitations on
   message size.

   A minimal server that employs this service extension may simply use
   the SIZE keyword value to inform the client of the size of the
   largest message it will accept, or to inform the client that there is
   no fixed limit on message size.  Such a server must accept the
   extended MAIL command and return a 552 reply code if the client's
   declared size exceeds its fixed size limit (if any), but it need not
   detect "temporary" limitations on message size.

   The numeric parameter to the EHLO SIZE keyword is optional.  If the
   parameter is omitted entirely it indicates that the server does not
   advertise a fixed maximum message size.  A server that returns the
   SIZE keyword with no parameter in response to the EHLO command may
   not issue a positive (250) response to an extended MAIL command
   containing a SIZE specification without first checking to see if
   sufficient resources are available to transfer a message of the
   declared size, and to retain it in stable storage until it can be
   relayed or delivered to its recipients.  If possible, the server
   should actually reserve sufficient storage space to transfer the
   message.

7. Example

   The following example illustrates the use of size declaration with
   some permanent and temporary failures.

      S: <wait for connection on TCP port 25>
      C: <open connection to server>
      S: 220 sigurd.innosoft.com -- Server SMTP (PMDF V4.2-6 #1992)
      C: EHLO ymir.claremont.edu
      S: 250-sigurd.innosoft.com

Klensin, Freed & Moore                                          [Page 6]
RFC 1653                 SMTP Size Declaration                 July 1994

      S: 250-EXPN
      S: 250-HELP
      S: 250 SIZE 1000000
      C: MAIL FROM:<ned@thor.innosoft.com> SIZE=500000
      S: 250 Address Ok.
      C: RCPT TO:<ned@innosoft.com>
      S: 250 ned@innosoft.com OK; can accomodate 500000 byte message
      C: RCPT TO:<ned@ymir.claremont.edu>
      S: 552 Channel size limit exceeded: ned@YMIR.CLAREMONT.EDU
      C: RCPT TO:<ned@hmcvax.claremont.edu>
      S: 452 Insufficient channel storage: ned@hmcvax.CLAREMONT.EDU
      C: DATA
      S: 354 Send message, ending in CRLF.CRLF.
       ...
      C: .
      S: 250 Some recipients OK
      C: QUIT
      S: 250 Goodbye

8. Security Considerations

   The size declaration extensions described in this memo can
   conceivably be used to facilitate crude service denial attacks.
   Specifically, both the information contained in the SIZE parameter
   and use of the extended MAIL command make it somewhat quicker and
   easier to devise an efficacious service denial attack.  However,
   unless implementations are very weak, these extensions do not create
   any vulnerability that has not always existed with SMTP. In addition,
   no issues are addressed involving trusted systems and possible
   release of information via the mechanisms described in this RFC.

9.  Acknowledgements

   This document was derived from an earlier Working Group draft
   contribution.  Jim Conklin, Dave Crocker, Neil Katin, Eliot Lear,
   Marshall T. Rose, and Einar Stefferud provided extensive comments in
   response to earlier drafts of both this and the previous memo.

10.  References

   [1] Postel, J., "Simple Mail Transfer Protocol", STD 10, RFC 821,
       USC/Information Sciences Institute, August 1982.

   [2] Crocker, D., "Standard for the Format of ARPA Internet Text
       Messages", STD 11, RFC 822, UDEL, August 1982.

   [3] Borenstein, N., and N. Freed, "Multipurpose Internet Mail
       Extensions", RFC 1521, Bellcore, Innosoft, September 1993.

Klensin, Freed & Moore                                          [Page 7]
RFC 1653                 SMTP Size Declaration                 July 1994

   [4] Moore, K., "Representation of Non-ASCII Text in Internet Message
       Headers", RFC 1522, University of Tennessee, September 1993.

   [5] Klensin, J., Freed, N., Rose, M., Stefferud, E., and D. Crocker,
       "SMTP Service Extensions", RFC 1651, MCI, Innosoft, Dover Beach
       Consulting, Inc., Network Management Associates, Inc., Silicon
       Graphics, Inc., July 1994.

   [6] Partridge, C., "Mail Routing and the Domain System", STD 14, RFC
       974, BBN, January 1986.

11.  Chair, Editor, and Authors' Addresses

   John Klensin, WG Chair
   MCI Data Services Division
   2100 Reston Parkway, 6th floor
   Reston, VA 22091
   USA

   Phone:: 1 703 715 7361
   Fax: +1 703 715 7435
   EMail: klensin@mci.net

   Ned Freed, Editor
   Innosoft International, Inc.
   1050 East Garvey Avenue South
   West Covina, CA 91790
   USA

   Phone:: +1 818 919 3600
   Fax: +1 818 919 3614
   EMail: ned@innosoft.com

   Keith Moore
   Computer Science Dept.
   University of Tennessee
   107 Ayres Hall
   Knoxville, TN 37996-1301
   USA

   EMail: moore@cs.utk.edu

Klensin, Freed & Moore                                          [Page 8]
什么肉最好吃 降肝火喝什么茶 籺是什么意思 妈祖是什么 1985年是什么年
潴留囊肿是什么意思 没有痔疮大便出血是什么原因 男性阴囊瘙痒是什么病 上半身胖属于什么体质 生气伤什么器官
渚是什么意思 农村一般喂金毛吃什么 护照免签是什么意思 s是什么意思 医保和农村合作医疗有什么区别
属相鸡与什么属相相合 三七粉不适合什么人吃 什么动物站着睡觉 经常手麻是什么原因 便秘吃什么中药
女人左下眼皮跳是什么预兆hcv7jop9ns5r.cn 落班是什么意思hcv7jop6ns6r.cn 病灶什么意思hcv9jop3ns7r.cn 杰五行属什么hcv8jop9ns8r.cn 比熊吃什么牌子的狗粮好hebeidezhi.com
什么发色显白hcv8jop2ns7r.cn 牙疼吃什么食物hcv8jop0ns2r.cn 大骨头炖什么好吃hcv7jop9ns5r.cn 叶酸起什么作用hcv9jop6ns2r.cn 耳目比喻什么hcv9jop0ns4r.cn
什么情况会染上鼠疫520myf.com 为什么卧室要用木地板hcv9jop3ns2r.cn 马蹄粉是什么粉hcv8jop8ns8r.cn 星期一右眼皮跳是什么预兆fenrenren.com 抽烟为什么会上瘾hcv8jop6ns3r.cn
推车是什么意思hcv9jop1ns5r.cn 身上痒是什么原因引起的hcv7jop6ns1r.cn 西楼是什么意思hcv8jop4ns2r.cn 小孩手足口病吃什么药hcv8jop7ns3r.cn 5.25是什么星座hcv8jop9ns2r.cn
百度