分享
 
 
 

RFC1047 - Duplicate messages and SMTP

王朝other·作者佚名  2008-05-31
窄屏简体版  字體: |||超大  

Network Working Group Craig Partridge

Request for Comments: 1047 CIC at BBN Labs

February 1988

DUPLICATE MESSAGES AND SMTP

STATUS OF THIS MEMO

An examination of a synchronization problem in the Simple Mail

Transfer Protocol (SMTP) is presented. This synchronization problem

can cause a message to be delivered multiple times. A method for

avoiding this problem is suggested. Nodding familiarity with the

SMTP specification, RFC-821, is required. Distribution of this memo

is unlimited.

INTRODUCTION

Over the past few years, the staff of the CSNET Coordination and

Information Center (CIC) has often been asked to help determine why a

single mail message is being delivered multiple times to its

recipients. In the process of tracing the problems of multiple

delivery, we have discovered that many duplicate messages are the

result of a synchronization problem in SMTP. There is a point in the

process of delivering a message where the receiving mailer knows it

has accepted the message but the sending mailer is still not sure the

message has been reliably delivered. If the SMTP conversation is

broken at this point, the sending mailer will be forced to re-deliver

the message, even though the message has already been received and

delivered by the receiving mailer.

DESCRIPTION OF THE PROBLEM

The synchronization problem occurs at the end of delivering a

message. When the sending mailer has finished sending the text of a

message, it is required to send a line containing a single dot or

period. When the receiving mailer receives this final dot, it is

eXPected to do its final message processing and either confirm

receipt of the message (with a 250 reply) or reject the message with

any one of several error codes.

Observe that there is a potential synchronization gap here. During

the period between the time the receiving mailer has determined that

it will accept the message, and the time that sending mailer gets the

250 reply, the message is active at both the sending and receiving

mailer. Until the sending mailer gets the 250 reply, it must assume

the message was not delivered. After the receiving mailer has

decided to accept the message, it must assume the message has been

delivered to it. If the communications link fails during this

synchronization gap, then the message has been duplicated. Both

mailers have active copies of the message that they will try to

deliver.

It may be hard to believe that this problem is the cause of many

duplicate messages. Intuitively, one might expect that the time

spent in the state between the final dot and its accepting 250 reply

is quite small. In practice, however, this period is often quite

long; long enough that timeouts by the sending mailer (or possibly

network failures) are quite common. Observations by the author

suggest that this synchronization problem may be the second leading

cause of duplicate messages on the Internet (second to mail loops).

Many mailers delay responding to the final dot because they are doing

sophisticated processing of the message, in an attempt to confirm

that they can deliver the message. For example, the mailers may

expand an entire mailing list to confirm that it can reach all

addressees or may attempt to physically deposit the message into the

mailboxes of local users, before confirming receipt of the final dot.

These practices are not unreasonable, but they often cause the

synchronization gap to continue for several minutes, and increase the

likelihood that the sending mailer will timeout or the network will

fail before the accepting 250 reply is sent.

AVOIDING SYNCHRONIZATION PROBLEMS

The best way to avoid the synchronization problem is to minimize the

length of the synchronization gap. In other Words, receiving mailers

should acknowledge the final dot as soon as possible and do more

complex processing of the message later.

RFC-821 (on page 22) states that unless the receiving mailer is

completely unable to process a message it should accept the message

and acknowledge any errors in processing in a separate message or

messages sent back to the originator of the message. As a result,

receiving mailers should be able to acknowledge the final dot as soon

as the message has been safely put in a non-volatile (e.g., disk)

queue for further processing. Fast acceptance of a message does not

violate RFC-821.

Some mailers can be configured to do more or less processing upon

receipt of the final dot. In such situations, the mailer should

always be configured to do less processing.

Finally, some mailers allow remote mailers only a minute or two to

acknowledge the final dot before timing out and trying again. Given

the increasing round-trip times on the Internet, and that some

processing after the final dot is required, the timeout for reply to

the final dot should probably be at least 5 minutes and a timeout of

10 minutes would not be unreasonable.

 
 
 
免责声明:本文为网络用户发布,其观点仅代表作者个人观点,与本站无关,本站仅提供信息存储服务。文中陈述内容未经本站证实,其真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
2023年上半年GDP全球前十五强
 百态   2023-10-24
美众议院议长启动对拜登的弹劾调查
 百态   2023-09-13
上海、济南、武汉等多地出现不明坠落物
 探索   2023-09-06
印度或要将国名改为“巴拉特”
 百态   2023-09-06
男子为女友送行,买票不登机被捕
 百态   2023-08-20
手机地震预警功能怎么开?
 干货   2023-08-06
女子4年卖2套房花700多万做美容:不但没变美脸,面部还出现变形
 百态   2023-08-04
住户一楼被水淹 还冲来8头猪
 百态   2023-07-31
女子体内爬出大量瓜子状活虫
 百态   2023-07-25
地球连续35年收到神秘规律性信号,网友:不要回答!
 探索   2023-07-21
全球镓价格本周大涨27%
 探索   2023-07-09
钱都流向了那些不缺钱的人,苦都留给了能吃苦的人
 探索   2023-07-02
倩女手游刀客魅者强控制(强混乱强眩晕强睡眠)和对应控制抗性的关系
 百态   2020-08-20
美国5月9日最新疫情:美国确诊人数突破131万
 百态   2020-05-09
荷兰政府宣布将集体辞职
 干货   2020-04-30
倩女幽魂手游师徒任务情义春秋猜成语答案逍遥观:鹏程万里
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案神机营:射石饮羽
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案昆仑山:拔刀相助
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案天工阁:鬼斧神工
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案丝路古道:单枪匹马
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案镇郊荒野:与虎谋皮
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案镇郊荒野:李代桃僵
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案镇郊荒野:指鹿为马
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案金陵:小鸟依人
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案金陵:千金买邻
 干货   2019-11-12
 
推荐阅读
 
 
 
>>返回首頁<<
 
靜靜地坐在廢墟上,四周的荒凉一望無際,忽然覺得,淒涼也很美
© 2005- 王朝網路 版權所有