WO2010037290A1 - Method and system for transmitting cross-domain remote mail - Google Patents

Method and system for transmitting cross-domain remote mail Download PDF

Info

Publication number
WO2010037290A1
WO2010037290A1 PCT/CN2009/073530 CN2009073530W WO2010037290A1 WO 2010037290 A1 WO2010037290 A1 WO 2010037290A1 CN 2009073530 W CN2009073530 W CN 2009073530W WO 2010037290 A1 WO2010037290 A1 WO 2010037290A1
Authority
WO
WIPO (PCT)
Prior art keywords
mail
domain
local
server
foreign
Prior art date
Application number
PCT/CN2009/073530
Other languages
French (fr)
Chinese (zh)
Inventor
林少章
Original Assignee
腾讯科技(深圳)有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 腾讯科技(深圳)有限公司 filed Critical 腾讯科技(深圳)有限公司
Publication of WO2010037290A1 publication Critical patent/WO2010037290A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail

Definitions

  • the invention belongs to the field of network communication, and in particular relates to a method and system for transmitting cross-domain remote mail. Background of the invention
  • the protocol used for email transmission is the Simple Mail Transfer Protocol (SMTP).
  • SMTP Simple Mail Transfer Protocol
  • the SMTP protocol is a store-and-forward protocol that allows mail to be sent to the final destination through a series of servers.
  • the server stores the arriving mail in a queue, waiting to be sent to the next destination, the next destination can be a local user, or a remote mail server.
  • SMTP border gateway When sending cross-domain remote mail, the user sends the mail to the SMTP border gateway by means of Webmail, smtp, Esmtp, etc. through the Mail User Agent (MUA), for example, through a browser, Windows Outlook, foxmail, etc. Gateways, BG).
  • SMTP BG provides a standard SMTP protocol to send mail, and receives mail from other mail transfer agents (MTTAs) of this mail system, and sends them to the external mail server through the public network.
  • MTTAs mail transfer agents
  • User mail from the foreign domain mail server can also be sent to the SMTP BG through the mail exchange server (Mail Exchanger, MX), and sent to other foreign domain mail servers by the SMTP BG through the public network.
  • MX mail exchange server
  • the purpose of the embodiment of the present invention is to provide a method for transmitting cross-domain remote mail, which aims to solve the problem that the existing public network transmission is used when sending cross-domain remote mail, which causes the mail to be sent slowly.
  • the embodiment of the present invention is implemented by the method for sending a cross-domain remote mail, and the method includes the following steps:
  • the message is forwarded from the domain to the foreign domain through the internal network.
  • Another object of the embodiments of the present invention is to provide a cross-domain remote mail sending system, where the system includes:
  • a relay server configured to receive a mail delivered by a user from an external domain of the domain, and send the mail to an external domain
  • the forwarding server is connected to the relay server through the internal network, and is configured to receive the mail sent by the relay server from the local domain to the external domain and send the mail to the external domain mail server.
  • FIG. 1 is a network structure diagram of a cross-domain remote mail transmission system provided by the prior art
  • FIG. 2 is a flowchart of an implementation of a method for transmitting a cross-domain remote mail according to an embodiment of the present invention
  • FIG. 3 is a cross-domain provided by an embodiment of the present invention
  • FIG. 4 is a structural diagram of a relay server according to an embodiment of the present invention
  • FIG. 5 is a structural diagram of a forwarding server according to an embodiment of the present invention. Mode for carrying out the invention
  • the remote inter-domain mail is transmitted from the local domain to the outer domain through the internal network, which can ensure the stability of the transmission of the transmitted mail, greatly improve the transmission speed of the remote cross-domain mail, and reduce the occurrence of the mail transmission interruption.
  • the internal network in the embodiment of the present invention is a local area network, and the erection method is basically the same as that of the local area network.
  • the local area to the external domain is generally connected by a dedicated line, which can ensure a relatively fast mail transmission speed and stability of mail transmission.
  • FIG. 2 shows an implementation process of a cross-domain remote mail sending method according to an embodiment of the present invention, which is described in detail as follows:
  • step S201 receiving a mail delivered by the user from the local domain to the outside domain;
  • step S202 the mail is forwarded from the local domain to the foreign domain through the internal network.
  • the message that is interrupted during the transmission is subjected to a breakpoint transmission to ensure the integrity of the mail transmission.
  • the domain sends a mail renewal request to the outer domain, and the foreign domain obtains the information of the interruption of the mail transmission according to the received mail byte, and notifies the domain where to resume the transmission, and the domain is from the interruption of the mail to The foreign domain resumes transmission of the interrupted message.
  • the local domain when the external domain mail delivery fails, the local domain receives the returned mail of the internal network, and then can resend the returned mail through the public network to the external domain in an ordinary manner.
  • FIG. 3 shows a network architecture of a cross-domain remote mail sending system according to an embodiment of the present invention. For the convenience of description, only parts related to the embodiments of the present invention are shown.
  • the relay server 31 provided in the local domain is forwarded through the internal network 32 and set to the external domain.
  • the server 33 is connected.
  • the relay server 31 can receive the mail delivered by the user from the local domain to the outside domain using the standard SMTP protocol, and deliver the mail to the forwarding server 33 via the internal network 32.
  • the forwarding server 33 receives the mail sent by the relay server 31 from the local domain, and after receiving the mail, forwards the mail to the foreign border gateway (BG) 34, and deletes the mail after the forwarding is successful.
  • BG foreign border gateway
  • the local BG receives the e-mail returned by the relay server 31, and sends the e-mail to the external domain BG 34 through the public network in an ordinary manner.
  • the foreign domain BG 34 receives the mail sent from the forwarding server 33 and delivers it to the foreign mail server of the foreign domain mail carrier, and ends if the delivery is successful. As an embodiment of the present invention, if the delivery fails, the foreign domain BG 34 returns the mail to the local domain MX 35, and the outer domain BG 34 is configured by the relay server 31, and an IP address is specified when the mail is returned. The IP address is the domain. IP address of the MX 35. At the same time, the domain MX 35 is configured by the relay server 31, and the domain MX 35 is configured to allow the mail domain to receive the domain name suffix of the domain, and specifically receive the return mail from the foreign domain BG 34.
  • FIG. 4 shows the structure of a relay server according to an embodiment of the present invention. For the convenience of description, only parts related to the embodiment of the present invention are shown.
  • the relay server 31 sends the client program used by the Mail Deliver Agent (MDA), that is, the MTA, after receiving the user's mail, the host's domain name is used to determine that the mail is sent to the foreign domain, and the connection is
  • MDA Mail Deliver Agent
  • the domain mail receiving unit 311 sends the mail information of the sender, the recipient, the multipurpose Internet Email Extension (MIME), the mail byte, and the like to the local mail receiving unit 311.
  • MDA Mail Deliver Agent
  • the local mail receiving unit 311 After successfully receiving the mail information, the local mail receiving unit 311 saves the mail information as a file and stores it in the local mail queue 312.
  • the file name of the file is globally unique, and the file name formed after the mail is received by the forwarding server 33 is the same. .
  • the local mail receiving unit 311 puts the file name of the mail in the local mail queue 312 into the shared memory 313.
  • the shared memory 313 is protected by a mutual exclusion lock to ensure the integrity of the shared data operation.
  • Each object in the shared memory 313 corresponds to a tag that can be called a "mutually exclusive lock". The tag is used to ensure that only one thread can access the object at any one time.
  • the local mail receiving unit 311 finds that the shared memory 313 is full, it sends the mail to the local domain BG, and deletes the mail from the local mail queue 312, and the local domain BG passes the common mode. It is sent to the external domain BG 34 via the public network.
  • the local mail delivery unit 314 scans the local mail queue 312 at startup, and puts the file names of all the mails in the local mail queue 312 into the shared memory 313 for subsequent delivery. At the time of delivery, the local mail delivery unit 314 cyclically retrieves the file name of the mail to be delivered from the shared memory 313, and obtains information about the mail, such as the sender, the recipient, and the MIME, from the local mail queue 312. It is delivered to the forwarding server 33.
  • the local mail delivery unit 314 deletes the mail from the local mail queue 312.
  • the local mail delivery unit 314 sends the mail to the local domain BG, and deletes the mail from the local mail queue 312, and the local domain BG passes the normal manner.
  • the public network is sent to the external domain BG 34.
  • the mail renewal request module 3141 sends a mail renewal request to the forwarding server 33, and acquires the transmission interruption returned by the forwarding server 33. Information about the interruption of the mail.
  • the mail retransmission module 3142 continues to transmit the interrupted mail to the forwarding server 33 from the interruption of the mail according to the interruption information obtained by the mail renewal request module 3141.
  • FIG. 5 shows the structure of a forwarding server according to an embodiment of the present invention. For the convenience of description, only parts related to the embodiment of the present invention are shown.
  • the foreign domain mail receiving unit 331 receives the mail sent by the relay server 31, and acquires the mail.
  • the mail information of the sender, the recipient, the MIME, the byte of the mail, etc. saves the mail information as a file and stores it in the foreign mail queue 332, the file name of the file and the file name formed in the relay server 31. The same, to ensure that the file name is globally unique.
  • the foreign mail delivery unit 333 parses the mail in the foreign domain mail queue 332 into a format acceptable to the foreign domain BG 34, forwards it to the foreign domain BG 34, and sends it to the foreign mail server of the foreign mail carrier through the foreign domain BG 34.
  • the local mail delivery unit 314 of the relay server 31 sends a mail renewal request to the mail renewal transmission module 3311, and the mail renewal transmission module 3311 is based on the breakpoint.
  • the renewal protocol knows the file name of the mail, retrieves the mail from the foreign domain mail queue 332, knows the byte that the mail has received, and notifies the local mail delivery unit 314 where to start the transmission of the interrupted mail.
  • the foreign mail delivery unit 333 reads the mail from the foreign domain mail queue 332, obtains the sender, the recipient, the MIME, and the like, forwards it to the foreign domain BG 34, and sends it from the foreign domain mail queue 332. delete.
  • the transmission speed of the mail can be greatly improved, and the stability of the mail transmission is ensured.
  • the use of breakpoints can effectively improve the utilization of network resources and avoid the failure of mail transmission to cause mail transmission failure.
  • internal proprietary protocols can be used to effectively prevent cyber attacks.

Abstract

A method and a system for transmitting cross-domain remote mail are provided by the present invention. Said method includes the following steps: receiving a mail posted by a user from local domain to external domain; forwarding said mail from the local domain to the external domain through the intra network.

Description

一种跨域远程邮件的发送方法及系统 技术领域  Method and system for transmitting cross-domain remote mail
本发明属于网络通信领域, 尤其涉及一种跨域远程邮件的发送方法 及系统。 发明背景  The invention belongs to the field of network communication, and in particular relates to a method and system for transmitting cross-domain remote mail. Background of the invention
电子邮件传输使用的协议为筒单邮件传输协议 ( Simple Mail Transfer Protocol, SMTP ) 。 SMTP协议是存储转发协议, 允许邮件通 过一系列服务器发送到最终目的地。 服务器在一个队列中存储到达的邮 件, 等待发送到下一个目的地, 下一个目的地可以是本地用户, 或者是 远程的邮件服务器。  The protocol used for email transmission is the Simple Mail Transfer Protocol (SMTP). The SMTP protocol is a store-and-forward protocol that allows mail to be sent to the final destination through a series of servers. The server stores the arriving mail in a queue, waiting to be sent to the next destination, the next destination can be a local user, or a remote mail server.
当发送跨域远程邮件时, 用户通过邮件用户代理( Mail User Agent, MUA ) ,例如通过浏览器, Windows的 outlook, foxmail等,用 Webmail、 smtp、 Esmtp等方式将邮件发送至 SMTP边界网关 ( Border Gateways, BG ) 。 SMTP BG提供标准的 SMTP协议发送邮件, 接收从本邮件系统 的其他邮件传送代理(Mail Transfer Agent, MTA )来的邮件, 通过公网 发送到外域邮件服务器。 来自外域邮件服务器的用户邮件也可以通过邮 件交换服务器( Mail Exchanger, MX )发送至 SMTP BG, 由 SMTP BG 通过公网发送至其他外域邮件服务器。  When sending cross-domain remote mail, the user sends the mail to the SMTP border gateway by means of Webmail, smtp, Esmtp, etc. through the Mail User Agent (MUA), for example, through a browser, Windows Outlook, foxmail, etc. Gateways, BG). SMTP BG provides a standard SMTP protocol to send mail, and receives mail from other mail transfer agents (MTTAs) of this mail system, and sends them to the external mail server through the public network. User mail from the foreign domain mail server can also be sent to the SMTP BG through the mail exchange server (Mail Exchanger, MX), and sent to other foreign domain mail servers by the SMTP BG through the public network.
在用户发送跨域(本域到外域)远程邮件时, 例如国内发送到国外 的邮件, 由于采用普通公网, 公网网络资源不足使发邮件发送的速度非 常慢。 同时, 公网网络不稳定, 导致邮件发送经常中断, 导致用户不满。 发明内容 When a user sends a cross-domain (local to external domain) remote mail, for example, a mail sent to a foreign country in China, due to the use of the ordinary public network, insufficient public network resources make the sending of the mail very slow. At the same time, the public network is unstable, causing frequent interruptions in mail transmission, causing user dissatisfaction. Summary of the invention
本发明实施例的目的在于提供一种跨域远程邮件的发送方法, 旨在 解决现有发送跨域远程邮件时, 采用普通公网传输, 导致邮件发送速度 慢的问题。  The purpose of the embodiment of the present invention is to provide a method for transmitting cross-domain remote mail, which aims to solve the problem that the existing public network transmission is used when sending cross-domain remote mail, which causes the mail to be sent slowly.
本发明实施例是这样实现的, 一种跨域远程邮件的发送方法, 所述 方法包括下述步骤:  The embodiment of the present invention is implemented by the method for sending a cross-domain remote mail, and the method includes the following steps:
接收用户从本域向外域投递的邮件;  Receiving mails delivered by users from the domain to the outside domain;
通过内部网络将所述邮件由本域转发至外域。  The message is forwarded from the domain to the foreign domain through the internal network.
本发明实施例的另一目的在于提供一种跨域远程邮件的发送系统, 所述系统包括:  Another object of the embodiments of the present invention is to provide a cross-domain remote mail sending system, where the system includes:
中继服务器, 用于接收用户从本域向外域投递的邮件, 将所述邮件 发送至外域; 以及  a relay server, configured to receive a mail delivered by a user from an external domain of the domain, and send the mail to an external domain;
转发服务器, 通过内部网络与所述中继服务器连接, 用于接收所述 中继服务器经内部网络发送的从本域向外域投递的邮件, 将所述邮件转 发至外域邮件服务器。  The forwarding server is connected to the relay server through the internal network, and is configured to receive the mail sent by the relay server from the local domain to the external domain and send the mail to the external domain mail server.
在本发明实施例中, 由于采用内部网络传输跨域远程邮件, 能够大 大提高邮件的传输速度, 保证邮件传输的稳定性。 附图简要说明  In the embodiment of the present invention, since the inter-domain remote mail is transmitted by using the internal network, the transmission speed of the mail can be greatly improved, and the stability of the mail transmission is ensured. BRIEF DESCRIPTION OF THE DRAWINGS
图 1是现有技术提供的跨域远程邮件传输系统的网络结构图; 图 2是本发明实施例提供的跨域远程邮件发送方法的实现流程图; 图 3是本发明实施例提供的跨域远程邮件发送系统的网络架构图; 图 4是本发明实施例提供的中继服务器的结构图;  1 is a network structure diagram of a cross-domain remote mail transmission system provided by the prior art; FIG. 2 is a flowchart of an implementation of a method for transmitting a cross-domain remote mail according to an embodiment of the present invention; FIG. 3 is a cross-domain provided by an embodiment of the present invention; A network architecture diagram of a remote mail sending system; FIG. 4 is a structural diagram of a relay server according to an embodiment of the present invention;
图 5是本发明实施例提供的转发服务器的结构图。 实施本发明的方式 FIG. 5 is a structural diagram of a forwarding server according to an embodiment of the present invention. Mode for carrying out the invention
为了使本发明的目的、 技术方案及优点更加清楚明白, 以下结合附 图及实施例, 对本发明进行进一步详细说明。 应当理解, 此处所描述的 具体实施例仅仅用以解释本发明, 并不用于限定本发明。  In order to make the objects, the technical solutions and the advantages of the present invention more comprehensible, the present invention will be further described in detail below with reference to the accompanying drawings. It is understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
在本发明实施例中, 通过内部网络将远程跨域邮件从本域传输至外 域, 可以保证传输邮件传输的稳定性, 大大提高远程跨域邮件的传输速 度, 减少邮件传输中断的发生。  In the embodiment of the present invention, the remote inter-domain mail is transmitted from the local domain to the outer domain through the internal network, which can ensure the stability of the transmission of the transmitted mail, greatly improve the transmission speed of the remote cross-domain mail, and reduce the occurrence of the mail transmission interruption.
本发明实施例中的内部网络是一种局域网, 其架设方法与局域网基 本相同, 本域到外域一般通过专线连接, 可以保证比较快的邮件传输速 度, 以及邮件传输的稳定性。  The internal network in the embodiment of the present invention is a local area network, and the erection method is basically the same as that of the local area network. The local area to the external domain is generally connected by a dedicated line, which can ensure a relatively fast mail transmission speed and stability of mail transmission.
图 2 示出了本发明实施例提供的跨域远程邮件发送方法的实现流 程, 详述如下:  FIG. 2 shows an implementation process of a cross-domain remote mail sending method according to an embodiment of the present invention, which is described in detail as follows:
在步骤 S201中, 接收用户从本域向外域投递的邮件;  In step S201, receiving a mail delivered by the user from the local domain to the outside domain;
在步骤 S202中, 通过内部网络将邮件由本域转发至外域。  In step S202, the mail is forwarded from the local domain to the foreign domain through the internal network.
作为本发明的一个实施例, 为了避免邮件传输中断对用户的不良影 响, 对在传输过程中出现中断的邮件采取断点续传的方式, 保证邮件传 输的完整性。 本域在邮件传输中断时, 向外域发送邮件续传请求, 外域 根据已接收的邮件字节, 获取邮件传输的中断处信息, 通知本域从何处 续传, 本域从邮件的中断处向外域续传传输中断的邮件。  As an embodiment of the present invention, in order to avoid the adverse effect of the interruption of the mail transmission on the user, the message that is interrupted during the transmission is subjected to a breakpoint transmission to ensure the integrity of the mail transmission. When the mail transmission is interrupted, the domain sends a mail renewal request to the outer domain, and the foreign domain obtains the information of the interruption of the mail transmission according to the received mail byte, and notifies the domain where to resume the transmission, and the domain is from the interruption of the mail to The foreign domain resumes transmission of the interrupted message.
在本发明实施例中, 当外域邮件投递失败时, 本域接收内部网络退 回的邮件, 然后可以采用普通方式, 通过公网向外域重新发送退回的邮 件。  In the embodiment of the present invention, when the external domain mail delivery fails, the local domain receives the returned mail of the internal network, and then can resend the returned mail through the public network to the external domain in an ordinary manner.
图 3 示出了本发明实施例提供的跨域远程邮件发送系统的网络架 构, 为了便于说明, 仅示出了与本发明实施例相关的部分。  FIG. 3 shows a network architecture of a cross-domain remote mail sending system according to an embodiment of the present invention. For the convenience of description, only parts related to the embodiments of the present invention are shown.
设置于本域的中继服务器 31通过内部网络 32与设置于外域的转发 服务器 33连接。 The relay server 31 provided in the local domain is forwarded through the internal network 32 and set to the external domain. The server 33 is connected.
中继服务器 31可以采用标准的 SMTP协议接收用户从本域向外域 投递的邮件, 经内部网络 32将邮件投递到转发服务器 33。 转发服务器 33接收中继服务器 31从本域发送过来的邮件, 接收完成后转发给外域 边界网关 (BG ) 34, 转发成功后将邮件删除。  The relay server 31 can receive the mail delivered by the user from the local domain to the outside domain using the standard SMTP protocol, and deliver the mail to the forwarding server 33 via the internal network 32. The forwarding server 33 receives the mail sent by the relay server 31 from the local domain, and after receiving the mail, forwards the mail to the foreign border gateway (BG) 34, and deletes the mail after the forwarding is successful.
本域 BG接收中继服务器 31退回的邮件, 通过普通的方式通过公 网向外域 BG 34发送邮件。  The local BG receives the e-mail returned by the relay server 31, and sends the e-mail to the external domain BG 34 through the public network in an ordinary manner.
外域 BG 34接收转发服务器 33发送过来的邮件, 投递到外域邮件 运营商的外域邮件服务器, 如果投递成功则结束。 作为本发明的一个实 施例, 如果投递失败, 外域 BG 34则向本域 MX 35退回邮件, 外域 BG 34经过中继服务器 31的配置, 退回邮件时将指定一个 IP地址, 该 IP 地址为本域 MX 35的 IP地址。 同时,通过中继服务器 31对本域 MX 35 进行配置, 配置本域 MX 35允许接收发件域为本域的域名后缀的邮件, 专门接收来自外域 BG 34的退回邮件。  The foreign domain BG 34 receives the mail sent from the forwarding server 33 and delivers it to the foreign mail server of the foreign domain mail carrier, and ends if the delivery is successful. As an embodiment of the present invention, if the delivery fails, the foreign domain BG 34 returns the mail to the local domain MX 35, and the outer domain BG 34 is configured by the relay server 31, and an IP address is specified when the mail is returned. The IP address is the domain. IP address of the MX 35. At the same time, the domain MX 35 is configured by the relay server 31, and the domain MX 35 is configured to allow the mail domain to receive the domain name suffix of the domain, and specifically receive the return mail from the foreign domain BG 34.
图 4示出了本发明实施例提供的中继服务器的结构,为了便于说明, 仅示出了与本发明实施例相关的部分。  FIG. 4 shows the structure of a relay server according to an embodiment of the present invention. For the convenience of description, only parts related to the embodiment of the present invention are shown.
中继服务器 31给其他邮件投递代理( Mail Deliver Agent, MDA ) 使用的客户端程序, 即 MTA, 收到用户的邮件后, 通过收件人的域名 判断出该邮件是发往外域的, 连接本域邮件接收单元 311 , 向本域邮件 接收单元 311 发送邮件的发件人、 收件人、 多功能 Internet 邮件扩充 ( Multipurpose Internet Email Extension, MIME )、 邮件的字节等邮件信 息。  The relay server 31 sends the client program used by the Mail Deliver Agent (MDA), that is, the MTA, after receiving the user's mail, the host's domain name is used to determine that the mail is sent to the foreign domain, and the connection is The domain mail receiving unit 311 sends the mail information of the sender, the recipient, the multipurpose Internet Email Extension (MIME), the mail byte, and the like to the local mail receiving unit 311.
本域邮件接收单元 311成功接收这些邮件信息后, 将这些邮件信息 保存为一个文件存放到本域邮件队列 312, 该文件的文件名全局唯一, 与转发服务器 33收到邮件后形成的文件名相同。 本域邮件接收单元 311成功接收邮件后,将邮件在本域邮件队列 312 中的文件名放入共享内存 313。作为本发明的一个实施例,共享内存 313 有互斥锁保护, 以保证共享数据操作的完整性, 共享内存 313中的每个 对象都对应于一个可称为" 互斥锁" 的标记, 该标记用来保证在任一时 刻, 只能有一个线程访问该对象。 After successfully receiving the mail information, the local mail receiving unit 311 saves the mail information as a file and stores it in the local mail queue 312. The file name of the file is globally unique, and the file name formed after the mail is received by the forwarding server 33 is the same. . After successfully receiving the mail, the local mail receiving unit 311 puts the file name of the mail in the local mail queue 312 into the shared memory 313. As an embodiment of the present invention, the shared memory 313 is protected by a mutual exclusion lock to ensure the integrity of the shared data operation. Each object in the shared memory 313 corresponds to a tag that can be called a "mutually exclusive lock". The tag is used to ensure that only one thread can access the object at any one time.
作为本发明的一个实施例, 本域邮件接收单元 311如果发现共享内 存 313已满, 则将邮件发送给本域 BG, 并从本域邮件队列 312中将该 邮件删除, 本域 BG通过普通方式经由公网发送至外域 BG 34。  As an embodiment of the present invention, if the local mail receiving unit 311 finds that the shared memory 313 is full, it sends the mail to the local domain BG, and deletes the mail from the local mail queue 312, and the local domain BG passes the common mode. It is sent to the external domain BG 34 via the public network.
本域邮件投递单元 314启动时扫描本域邮件队列 312, 将本域邮件 队列 312中所有邮件的文件名放入共享内存 313 , 以供后续投递。 投递 时, 本域邮件投递单元 314循环从共享内存 313中取出要投递的邮件的 文件名, 从本域邮件队列 312中取得该邮件的相关信息, 例如发件人、 收件人、 MIME等, 投递到转发服务器 33。  The local mail delivery unit 314 scans the local mail queue 312 at startup, and puts the file names of all the mails in the local mail queue 312 into the shared memory 313 for subsequent delivery. At the time of delivery, the local mail delivery unit 314 cyclically retrieves the file name of the mail to be delivered from the shared memory 313, and obtains information about the mail, such as the sender, the recipient, and the MIME, from the local mail queue 312. It is delivered to the forwarding server 33.
如果投递成功, 本域邮件投递单元 314从本域邮件队列 312中删除 该邮件。 作为本发明的一个实施例, 如果多次投递失败, 则本域邮件投 递单元 314将该邮件发送给本域 BG, 并从本域邮件队列 312中将该邮 件删除, 由本域 BG通过普通方式经由公网发送至外域 BG 34。  If the delivery is successful, the local mail delivery unit 314 deletes the mail from the local mail queue 312. As an embodiment of the present invention, if the multiple delivery fails, the local mail delivery unit 314 sends the mail to the local domain BG, and deletes the mail from the local mail queue 312, and the local domain BG passes the normal manner. The public network is sent to the external domain BG 34.
为了避免传输中断造成邮件传输失败, 作为本发明的一个实施例, 如果在邮件传输过程中出现中断, 邮件续传请求模块 3141 向转发服务 器 33发送邮件续传请求, 获取转发服务器 33返回的传输中断邮件的中 断处信息。 邮件续传模块 3142根据邮件续传请求模块 3141获得的中断 处信息, 从邮件的中断处开始向转发服务器 33续传传输中断的邮件。  In order to avoid the mail transmission failure caused by the transmission interruption, as an embodiment of the present invention, if an interruption occurs during the mail transmission, the mail renewal request module 3141 sends a mail renewal request to the forwarding server 33, and acquires the transmission interruption returned by the forwarding server 33. Information about the interruption of the mail. The mail retransmission module 3142 continues to transmit the interrupted mail to the forwarding server 33 from the interruption of the mail according to the interruption information obtained by the mail renewal request module 3141.
图 5示出了本发明实施例提供的转发服务器的结构,为了便于说明, 仅示出了与本发明实施例相关的部分。  FIG. 5 shows the structure of a forwarding server according to an embodiment of the present invention. For the convenience of description, only parts related to the embodiment of the present invention are shown.
外域邮件接收单元 331收到中继服务器 31发送的邮件后, 获取邮 件的发件人、 收件人、 MIME、 邮件的字节等邮件信息, 将这些邮件信 息保存为一个文件存放到外域邮件队列 332, 该文件的文件名与中继服 务器 31中形成的文件名相同, 保证文件名全局唯一。 The foreign domain mail receiving unit 331 receives the mail sent by the relay server 31, and acquires the mail. The mail information of the sender, the recipient, the MIME, the byte of the mail, etc., saves the mail information as a file and stores it in the foreign mail queue 332, the file name of the file and the file name formed in the relay server 31. The same, to ensure that the file name is globally unique.
外域邮件投递单元 333 将外域邮件队列 332 中的邮件解析为外域 BG 34能够接受的格式, 转发给外域 BG 34, 通过外域 BG 34发送给外 域邮件运营商的外域邮件服务器。  The foreign mail delivery unit 333 parses the mail in the foreign domain mail queue 332 into a format acceptable to the foreign domain BG 34, forwards it to the foreign domain BG 34, and sends it to the foreign mail server of the foreign mail carrier through the foreign domain BG 34.
作为本发明的一个实施例, 如果邮件在传输过程中出现中断, 中继 服务器 31的本域邮件投递单元 314向邮件续传定位模块 3311发送邮件 续传请求, 邮件续传定位模块 3311 根据断点续传协议得知邮件的文件 名, 从外域邮件队列 332中取出此邮件, 得知该邮件已接收的字节, 通 知本域邮件投递单元 314从何处开始续传传输中断的邮件。 续传接收完 成后, 外域邮件投递单元 333从外域邮件队列 332中读出此邮件, 获取 发件人、 收件人、 MIME等信息, 转发给外域 BG 34, 并将其从外域邮 件队列 332中删除。  As an embodiment of the present invention, if the mail is interrupted during the transmission, the local mail delivery unit 314 of the relay server 31 sends a mail renewal request to the mail renewal transmission module 3311, and the mail renewal transmission module 3311 is based on the breakpoint. The renewal protocol knows the file name of the mail, retrieves the mail from the foreign domain mail queue 332, knows the byte that the mail has received, and notifies the local mail delivery unit 314 where to start the transmission of the interrupted mail. After the resume transmission is completed, the foreign mail delivery unit 333 reads the mail from the foreign domain mail queue 332, obtains the sender, the recipient, the MIME, and the like, forwards it to the foreign domain BG 34, and sends it from the foreign domain mail queue 332. delete.
在本发明实施例, 由于采用内部网络传输跨域远程邮件, 能够大大 提高邮件的传输速度, 保证邮件传输的稳定性。 同时, 通过断点续传可 以有效的提高网络资源的利用率, 避免邮件传输中断造成邮件传输失 败。 另外, 可以采用内部私有协议, 能够有效的防止网络攻击。  In the embodiment of the present invention, since the inter-domain remote mail is transmitted by using the internal network, the transmission speed of the mail can be greatly improved, and the stability of the mail transmission is ensured. At the same time, the use of breakpoints can effectively improve the utilization of network resources and avoid the failure of mail transmission to cause mail transmission failure. In addition, internal proprietary protocols can be used to effectively prevent cyber attacks.
以上所述, 仅为本发明的较佳实施例而已, 并非用于限定本发明的 保护范围, 凡在本发明的精神和原则之内所做的任何修改、 等同替换、 改进等, 均应包含在本发明的保护范围之内。  The above is only the preferred embodiment of the present invention, and is not intended to limit the scope of the present invention. Any modifications, equivalents, improvements, etc., which are made within the spirit and principles of the present invention, should be included. It is within the scope of the invention.

Claims

权利要求书 Claim
1、 一种跨域远程邮件的发送方法, 其特征在于, 所述方法包括下 述步骤: A method for transmitting a cross-domain remote mail, wherein the method comprises the following steps:
接收用户从本域向外域投递的邮件;  Receiving mails delivered by users from the domain to the outside domain;
通过内部网络将所述邮件由本域转发至外域。  The message is forwarded from the domain to the foreign domain through the internal network.
2、 如权利要求 1 所述的方法, 其特征在于, 所述方法进一步包括 下述步骤:  2. The method of claim 1 wherein the method further comprises the steps of:
在邮件传输中断时, 向外域发送邮件续传请求, 获取外域返回的邮 件传输的中断处信息;  When the mail transmission is interrupted, the mail is sent to the outbound domain to renew the request, and the information about the interruption of the mail transmission returned by the foreign domain is obtained;
根据获取的中断处信息向外域续传传输中断的邮件。  The interrupted message is transmitted to the outside domain according to the obtained interrupt information.
3、 如权利要求 1 所述的方法, 其特征在于, 所述方法进一步包括 步骤:  3. The method according to claim 1, wherein the method further comprises the steps of:
当外域投递邮件失败时, 本域接收内部网络退回的邮件, 通过公网 向外域重新发送所述退回的邮件。  When the external domain fails to deliver the mail, the local domain receives the returned mail from the internal network, and resends the returned mail through the public network to the external domain.
4、 如权利要求 2所述的方法, 其特征在于, 所述获取外域返回的 邮件传输的中断处信息包括:  The method according to claim 2, wherein the acquiring the interruption information of the mail transmission returned by the foreign domain comprises:
所述外域接收所述本域的邮件续传请求, 根据已接收的邮件字节, 获取邮件传输的中断处信息, 将所述中断处信息发给所述本域。  The foreign domain receives the mail renewal request of the local domain, obtains the interruption information of the mail transmission according to the received mail byte, and sends the interruption information to the local domain.
5、 一种跨域远程邮件的发送系统, 其特征在于, 所述系统包括: 中继服务器, 用于接收用户从本域向外域投递的邮件, 将所述邮件 发送至外域; 以及  A system for transmitting a cross-domain remote mail, the system comprising: a relay server, configured to receive a mail delivered by a user from an outbound domain of the domain, and send the mail to an external domain;
转发服务器, 通过内部网络与所述中继服务器连接, 用于接收所述 中继服务器经内部网络发送的本域向外域投递的邮件, 将所述邮件转发 至外域邮件服务器。 The forwarding server is connected to the relay server through the internal network, and is configured to receive the mail delivered by the local server to the external domain sent by the relay server, and forward the mail to the external domain mail server.
6、 如权利要求 5所述的系统, 其特征在于, 所述中继服务器包括: 本域邮件接收单元, 用于接收用户发送的本域向外域投递的邮件, 获取所述邮件的邮件信息, 以及配置所述邮件的文件名; The system according to claim 5, wherein the relay server comprises: a local mail receiving unit, configured to receive a mail delivered by the local domain sent by the user to obtain an email message of the mail, And configuring the file name of the mail;
本域邮件队列, 用于保存本域邮件接收单元获取的邮件信息; 共享内存, 用于保存所述邮件的文件名; 以及  The local mail queue is used to save the mail information obtained by the mail receiving unit of the local domain; the shared memory is used to save the file name of the mail;
本域邮件投递单元, 用于从所述共享内存中取出待投递的邮件的文 递到所述转发服务器。  The local mail delivery unit is configured to retrieve the delivery of the mail to be delivered from the shared memory to the forwarding server.
7、 如权利要求 6所述的系统, 其特征在于, 所述本域邮件投递单 元包括:  7. The system of claim 6, wherein the local mail delivery unit comprises:
邮件续传请求模块, 用于在邮件传输中断时, 向所述转发服务器发 送邮件续传请求, 获取外域返回的邮件传输的中断处信息; 以及  a mail renewal request module, configured to send a mail renewal request to the forwarding server when the mail transmission is interrupted, and obtain an interruption information of the mail transmission returned by the external domain;
邮件续传模块, 用于根据邮件传输的中断处信息, 从邮件的中断处 向所述转发服务器续传传输中断的邮件。  The mail renewal module is configured to resume transmission of the interrupted mail from the interruption of the mail to the forwarding server according to the interruption information of the mail transmission.
8、 如权利要求 5所述的系统, 其特征在于, 所述转发服务器包括: 外域邮件接收单元, 用于接收中继服务器发送的本域向外域投递的 邮件, 获取所述邮件的信息并保存;  The system according to claim 5, wherein the forwarding server comprises: an external domain mail receiving unit, configured to receive the mail delivered by the local domain sent by the relay server, obtain the information of the mail and save the information ;
外域邮件队列, 用于保存所述外域邮件接收单元获取的邮件信息; 以及  An external domain mail queue for storing mail information obtained by the foreign domain mail receiving unit;
外域邮件投递单元, 用于将所述外域邮件队列中的邮件转发至外域 邮件服务器。  The external domain mail delivery unit is configured to forward the mail in the foreign domain mail queue to the foreign domain mail server.
9、 如权利要求 8 所述的系统, 其特征在于, 所述外域邮件接收单 元包括:  9. The system of claim 8, wherein the foreign domain mail receiving unit comprises:
邮件续传定位模块, 用于接收所述中继服务器的邮件续传请求, 根 据已接收的邮件字节, 获取邮件传输的中断处信息, 通知所述中继服务 器。 a mail renewal positioning module, configured to receive a mail renewal request of the relay server, obtain an interruption information of the mail transmission according to the received mail byte, and notify the relay service Device.
10、 如权利要求 5至 8任一权利要求所述的系统, 其特征在于, 所 述系统还包括:  10. The system of any of claims 5 to 8, wherein the system further comprises:
本域邮件交换服务器, 用于接收外域退回的邮件; 以及  The local mail exchange server is configured to receive the returned mail of the foreign domain;
外域边界网关, 用于在向外域邮件服务器投递失败时, 根据配置的 地址向对应的本域邮件交换服务器退回邮件。  The external border gateway is used to return the mail to the corresponding local mail exchange server according to the configured address when the delivery to the external domain mail server fails.
PCT/CN2009/073530 2008-09-28 2009-08-26 Method and system for transmitting cross-domain remote mail WO2010037290A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN200810216427.X 2008-09-28
CNA200810216427XA CN101383784A (en) 2008-09-28 2008-09-28 Cross-region remote mail sending method and system

Publications (1)

Publication Number Publication Date
WO2010037290A1 true WO2010037290A1 (en) 2010-04-08

Family

ID=40463410

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2009/073530 WO2010037290A1 (en) 2008-09-28 2009-08-26 Method and system for transmitting cross-domain remote mail

Country Status (2)

Country Link
CN (1) CN101383784A (en)
WO (1) WO2010037290A1 (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101383784A (en) * 2008-09-28 2009-03-11 腾讯科技(深圳)有限公司 Cross-region remote mail sending method and system
US20110078233A1 (en) * 2009-09-30 2011-03-31 International Business Machines Corporation Apparatus, system, and method for improved performance of real time applications in intermittent connection environments
CN101951349B (en) * 2010-10-09 2012-07-04 汉柏科技有限公司 Agent mail gateway, system and method for supporting receiving and sending mails of multiple email boxes
CN102843309B (en) * 2011-06-23 2015-11-18 二六三网络通信股份有限公司 Post-processing system and method
CN105847113B (en) * 2016-03-15 2019-01-18 新浪网技术(中国)有限公司 The overseas retransmission method of corporate mail and system
CN108075964A (en) * 2017-09-28 2018-05-25 中船黄埔文冲船舶有限公司 Mailing system dispositions method under a kind of environment of isomery domain
CN108989390B (en) * 2018-06-19 2020-11-10 北京智明星通科技股份有限公司 User request forwarding method and device, reverse proxy server and computer readable storage medium
CN110380949A (en) * 2019-05-24 2019-10-25 平安普惠企业管理有限公司 Intranet e-mail sending method, device, computer equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20010032245A1 (en) * 1999-12-22 2001-10-18 Nicolas Fodor Industrial capacity clustered mail server system and method
CN101163066A (en) * 2006-12-19 2008-04-16 冲浪平台(北京)网络技术有限公司 Distributed electronic mail system
CN101179532A (en) * 2007-12-13 2008-05-14 腾讯科技(深圳)有限公司 Mail server system and mail distributing method
CN101383784A (en) * 2008-09-28 2009-03-11 腾讯科技(深圳)有限公司 Cross-region remote mail sending method and system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20010032245A1 (en) * 1999-12-22 2001-10-18 Nicolas Fodor Industrial capacity clustered mail server system and method
CN101163066A (en) * 2006-12-19 2008-04-16 冲浪平台(北京)网络技术有限公司 Distributed electronic mail system
CN101179532A (en) * 2007-12-13 2008-05-14 腾讯科技(深圳)有限公司 Mail server system and mail distributing method
CN101383784A (en) * 2008-09-28 2009-03-11 腾讯科技(深圳)有限公司 Cross-region remote mail sending method and system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
CHEN, ZENGQIANG ET AL.: "Design and Key Technology of the File-transfer System with the Function of Broken-point Continuingly-transferring", COMPUTER ENGINEERING, vol. 28, no. 12, December 2002 (2002-12-01), pages 15 *

Also Published As

Publication number Publication date
CN101383784A (en) 2009-03-11

Similar Documents

Publication Publication Date Title
WO2010037290A1 (en) Method and system for transmitting cross-domain remote mail
WO2011029300A1 (en) Method and system for intercommunicating between instant message and e-mail
US20080162933A1 (en) E-mail communication apparatus
JP3599313B2 (en) Network facsimile apparatus and control method therefor
US8407304B2 (en) Method and system for email notification
US10382389B2 (en) System and method for SMTP and alternative email protocol interoperability
JP2012054623A (en) Mail transfer system, mail gateway and data store server
JP2002135505A (en) Internet facsimile machine
US7103635B2 (en) Really simple mail transport protocol
JP3603759B2 (en) Facsimile server and communication method using the server
JP3281294B2 (en) Automatic cleaning device for e-mail address list
JP2009169866A (en) Electronic mail client and its control method, and computer program
JP3664581B2 (en) Control method of network facsimile apparatus
US7539761B1 (en) System and method for detecting and defeating IP address spoofing in electronic mail messages
WO2013063934A1 (en) Media message sending method, device and system
JP2009118174A (en) Information processor, approval method, and program
JP2004254039A (en) Mail communication relay system, mail communication relay apparatus, mail communication relay method, and mail communication relay program
US20070214221A1 (en) Method and system for email notification using auto-forwarding and a lightweight mail notification sender
JP2005210240A (en) Mail filter system, mail filter, mail filtering method and program for use therein
WO2014036790A1 (en) Method for delivering email and mail system
CN104394068B (en) A kind of shortwave E mail transmissions, reception and communication means based on commercial client
US20070214226A1 (en) Method and system for pushing electronic mail
CA2615573C (en) Method and system for email notification
US20080174829A1 (en) Systems and methods for electronic facsimile communication
JP5201606B2 (en) E-mail compatible facsimile apparatus, FAX document processing method, and program

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 09817204

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC

122 Ep: pct application non-entry in european phase

Ref document number: 09817204

Country of ref document: EP

Kind code of ref document: A1