[go: up one dir, main page]

CN105337836A - Mail transmission method, apparatus and system - Google Patents

Mail transmission method, apparatus and system Download PDF

Info

Publication number
CN105337836A
CN105337836A CN201410257944.7A CN201410257944A CN105337836A CN 105337836 A CN105337836 A CN 105337836A CN 201410257944 A CN201410257944 A CN 201410257944A CN 105337836 A CN105337836 A CN 105337836A
Authority
CN
China
Prior art keywords
mail
sending
transfer protocol
hypertext transfer
layer
Prior art date
Legal status (The legal status 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 status listed.)
Granted
Application number
CN201410257944.7A
Other languages
Chinese (zh)
Other versions
CN105337836B (en
Inventor
王浩宇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing 360 Zhiling Technology Co ltd
Original Assignee
Beijing Qihoo Technology Co Ltd
Qizhi Software Beijing Co Ltd
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 Beijing Qihoo Technology Co Ltd, Qizhi Software Beijing Co Ltd filed Critical Beijing Qihoo Technology Co Ltd
Priority to CN201410257944.7A priority Critical patent/CN105337836B/en
Publication of CN105337836A publication Critical patent/CN105337836A/en
Application granted granted Critical
Publication of CN105337836B publication Critical patent/CN105337836B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

本发明公开了一种邮件发送方法、装置和系统,其方法包括:通过超文本传送协议层接收邮件数据并转发至代码层;如果在代码层中根据邮件数据触发了邮件发送策略,则拒绝发送并向超文本传送协议层返回通知;如果在代码层中根据邮件数据没有触发邮件发送策略,则将邮件数据发送至邮件发送层进行邮件发送。本发明提供的邮件发送方法、装置和系统,在用户发送邮件的客户端和邮件服务器之间另设了邮件公共服务系统,邮件公共服务系统采用预设的邮件发送策略以避免给邮件服务器带来的邮件洪水,解决了邮件服务器拒收邮件进而影响邮件投递的问题,邮件服务器不再受到邮件洪水的影响。

The invention discloses a mail sending method, device and system, the method comprising: receiving mail data through a hypertext transfer protocol layer and forwarding it to a code layer; if a mail sending strategy is triggered according to the mail data in the code layer, refusing to send And return the notification to the hypertext transfer protocol layer; if the mail sending policy is not triggered according to the mail data in the code layer, then send the mail data to the mail sending layer for mail sending. In the mail sending method, device and system provided by the present invention, a public mail service system is set up between the client end and the mail server where the user sends mail. mail flood, which solves the problem that the mail server refuses to accept mail and thus affects mail delivery, and the mail server is no longer affected by the mail flood.

Description

E-mail sending method, device and system
Technical field
The present invention relates to Internet technical field, be specifically related to a kind of e-mail sending method, device and system.
Background technology
In prior art, user utilizes mail sending software that mail is sent to mail server from client based on Simple Mail Transfer protocol (SMTP, SimpleMailTransferProtocol), and mail server redelivers to addressee.When mailbox service provides for different company, between the mail server provided by different company, forwarding by mail is to carry out mail delivery.Such as, the addressee of the mailbox service that the mailbox service that user is provided by A company provides to B company sends mail, need first by mail sending to the mail server of A company, the mail server of A company again by email relaying to the mail server of B company, the mail server of B company carries out mail delivery to addressee.
But e-mail sending method of the prior art has following problem: when programmer user uses, generally call mail sending software batch and send mail, may occur that number of mail is many, send the high situation of the frequency, i.e. mail flood.Now, mail server is subject to mail flood water mitigation for avoiding business, can adopt filtration measure, refuse the mail sent certain time period all sender, thus have impact on and deliver in the normal email of other sender of this time period.
Summary of the invention
The invention provides a kind of e-mail sending method, device and system, for solve many in number of mail, send the frequency high, mailbox server cannot tackle mail flood, and then affects the problem of mail delivery.
The invention provides a kind of e-mail sending method, it comprises:
Receive mail data by HTTP layer and be forwarded to code layer;
If trigger mail sending strategy according to mail data in code layer, then refusal sends and returns notice to HTTP layer;
If do not trigger mail sending strategy according to mail data in code layer, then mail data is sent to mail sending layer and carries out mail sending.
Further, mail sending strategy comprises: send strategy interval time;
If trigger mail sending strategy according to mail data in code layer, refusal sends and comprises further to the step that HTTP layer returns notice:
If the transmission coming from the mail of same account is less than or equal to preset time threshold interval time, refusal sends and returns the notice of refusal transmission to HTTP layer.
Further, mail sending strategy comprises: maximum mail sending quantity strategy;
If trigger mail sending strategy according to mail data in code layer, refusal sends and comprises further to the step that HTTP layer returns notice:
If the single number of mail coming from same account has exceeded predetermined number threshold value, refusal has sent and has returned the notice of refusal transmission to HTTP layer.
Further, mail sending strategy comprises: delegated strategy;
If trigger mail sending strategy according to mail data in code layer, refusal sends and comprises further to the step that HTTP layer returns notice:
If have received the mail data of unauthorized account, refusal sends and returns the notice of refusal transmission to HTTP layer.
Further, comprised further by the step of HTTP layer reception mail data:
Receive the mail data sent to HTTP layer by HTTP interface; Wherein, user is undertaken by http protocol and HTTP interface alternately.
The present invention also provides a kind of mail sending device, and it comprises:
HTTP layer module, is suitable for receiving mail data and being forwarded to code layer module;
Code layer module, if be suitable for triggering mail sending strategy according to mail data, refusal sends and returns notice to HTTP layer module; If do not trigger mail sending strategy according to mail data, mail data is sent to mail sending layer module;
Mail sending layer module, is suitable for carrying out mail sending.
Further, code layer module comprises further:
Send policy module interval time, if the transmission being suitable for the mail coming from same account is less than or equal to preset time threshold interval time, refusal sends and returns the notice of refusal transmission to HTTP layer module.
Further, code layer module comprises further:
The policy module of maximum mail sending quantity, if the single number of mail being suitable for coming from same account has exceeded predetermined number threshold value, refusal has sent and has returned the notice of refusal transmission to HTTP layer module.
Further, code layer module comprises further:
Delegated strategy module, if be suitable for the mail data that have received unauthorized account, refusal sends and returns the notice of refusal transmission to HTTP layer module.
Further, HTTP layer module is further adapted for: receive the mail data sent to HTTP layer by HTTP interface; Wherein, user is undertaken by http protocol and HTTP interface alternately.
The present invention provides again a kind of mail transmission system, and it comprises: mail sending device of the present invention, client and mail server;
Client is suitable for: send mail data by HTTP interface to HTTP layer module, and undertaken alternately by http protocol and HTTP interface;
Mail server is suitable for: receive the mail data of mail sending layer module transmission and carry out mail delivery.
E-mail sending method provided by the invention, device and system, send between the client of mail and mail server user and separately established mail public service system, mail public service system adopts the mail sending strategy preset to avoid the mail flood brought to mail server, solve the problem that mail server is rejected mail and then affected mail delivery, mail server is no longer subject to mail flood water mitigation.
Above-mentioned explanation is only the general introduction of technical solution of the present invention, in order to technological means of the present invention can be better understood, and can be implemented according to the content of specification, and can become apparent, below especially exemplified by the specific embodiment of the present invention to allow above and other objects of the present invention, feature and advantage.
Accompanying drawing explanation
By reading hereafter detailed description of the preferred embodiment, various other advantage and benefit will become cheer and bright for those of ordinary skill in the art.Accompanying drawing only for illustrating the object of preferred implementation, and does not think limitation of the present invention.And in whole accompanying drawing, represent identical parts by identical reference symbol.In the accompanying drawings:
Fig. 1 is the schematic flow sheet of the e-mail sending method of the embodiment of the present invention one;
Fig. 2 is the schematic flow sheet of the e-mail sending method of the embodiment of the present invention two;
Fig. 3 is the structural representation of the mail sending device of the embodiment of the present invention three;
Fig. 4 is the structural representation of the mail sending device of the embodiment of the present invention four;
Fig. 5 is the structural representation of the mail transmission system of the embodiment of the present invention five;
Fig. 6 is the structural representation of the mail transmission system of the embodiment of the present invention six.
Embodiment
Below with reference to accompanying drawings exemplary embodiment of the present disclosure is described in more detail.Although show exemplary embodiment of the present disclosure in accompanying drawing, however should be appreciated that can realize the disclosure in a variety of manners and not should limit by the embodiment set forth here.On the contrary, provide these embodiments to be in order to more thoroughly the disclosure can be understood, and complete for the scope of the present disclosure can be conveyed to those skilled in the art.
Fig. 1 is the schematic flow sheet of the e-mail sending method of the embodiment of the present invention one, and as shown in Figure 1, the e-mail sending method of embodiment one comprises:
Step S101, receives mail data by HTTP layer and is forwarded to code layer.
Step S102, if trigger mail sending strategy according to mail data in code layer, then refusal sends and returns notice to HTTP layer.
Step S103, if do not trigger mail sending strategy according to mail data in code layer, is then sent to mail sending layer and carries out mail sending by mail data.
Particularly, mail data comprises the exploitation code (as Mail Contents) and other additional information such as the addressee embedded in exploitation code, sender, transmitting time treating to send using mail he.Mail public service (MailService) is configured between client and mail server, when user sends mail by client to mail server, first processed to mail public service by mail sending, then mail public service will meet the mail sending of self-defined strategy to mail server.Wherein, mail public service can be deployed on server between client and mail server or service cluster.The framework of mail public service comprises following three layers:
Ground floor is HTTP layer (HTTP, HypertextTransferProtocol), and user, when client sends mail, calls http protocol interface by program language and mail data is sent to HTTP layer; HTTP layer carries out parameter testing after receiving mail data; If each parameter of mail data is complete, can not mail delivery be affected, mail data is sent to code layer process; If mail data lacks some parameter and affects mail delivery, refusal mail sending by HTTP interface to the notice of client feedback mail sending failure and reason.
The second layer is code layer (Code), the mail data sent based on HTTP interface and Simple Mail Transfer protocol match by code layer, the mail data that HTTP layer is received meets the data standard of Simple Mail Transfer protocol, so that afterwards mail data is sent to mail server to carry out mail delivery.Wherein, self-defining mail sending strategy is provided with in code layer to control the reception of mail data.Mail sending strategy can be set to the quantity, the frequency that control mail sending, only send the mail etc. of authorized user, such as utilize the frequency sending policy control mail sending interval time, utilize the quantity of maximum mail sending quantity policy control mail sending, delegated strategy is utilized only to send the mail etc. of authorized user, above-mentioned three mail sending strategies will specifically describe in embodiment two, repeat no more herein.In mail sending process, be first sent to mail public service by unified for mail, then in mail public service, carry out the controls such as filtrating mail by the mail sending strategy in code layer.Therefore, the mail arriving mail server from mail public service all there will not be the problem that quantity forwarded is too much, transmission frequency is too high, there will not be mail flood phenomenon at mail server.In addition, code layer also, achievement data calculating mutual for database etc.
Third layer is mail sending layer, for mutual with mail server, the mail data by mail sending policy control is sent to mail server by Simple Mail Transfer protocol, so that mail server is to addressee's delivering mail.
The e-mail sending method that the embodiment of the present invention one provides, send between the client of mail and mail server user and separately established mail public service, mail public service adopts the mail sending strategy preset to avoid the mail flood brought to mail server, solve the problem that mail server is rejected mail and then affected mail delivery, mail server is no longer subject to mail flood water mitigation.
In addition, for realizing mail sending in prior art, must install mail sending software, programmer need call mail sending software and send mail, and this mode height relies on mail sending software.Mail sending software needs to accomplish to match with mail server, and during Long-Time Service mail sending software, software easily goes wrong, and equally also affects mail delivery.To the e-mail sending method that this embodiment of the present invention one provides, call mail public service by means of only HTTP function interface and just can realize mail sending, mail public service is transparent to user and is convenient to centralized management, do not need to call mail sending software, reduce the dependence to mail sending software.
Fig. 2 is the schematic flow sheet of the e-mail sending method of the embodiment of the present invention two, and as shown in Figure 2, the e-mail sending method of embodiment two comprises:
Step S201, receives the mail data sent to HTTP layer by HTTP interface; Wherein, user is undertaken by http protocol and HTTP interface alternately.
Such as, user sends mail by Curl language and http protocol interactive interfacing to call public service of mail, the mail data sent is the exploitation code to be sent based on http protocol that embedded in Curl language, exploitation code wherein to be sent is Mail Contents, and the Curl language of embedding indicates other additional information of mail.The upload and download of Curl language supporting document is a comprehensive transmission instrument.In Curl language, represent sender by " from ", represent addressee by " to ", represent Mail Contents by " body ".Wherein, mail public service is deployed on the PostFix server between client and mail server, and PostFix is MTA (mail transport agent) software developed under the GPL agreement of IBM by WietseVenema.When user sends mail, first http protocol interface is utilized mail data to be sent to the HTTP layer of the mail public service of PostFix server in client.
In actual applications, if programmer user needs a large amount of exploitation codes to issue addressee by mail batch, mail sending software need not be called as prior art send in batches, but directly needing to add Curl verbal order in the exploitation code transmitted, be specially: represent sender by " from ", represent addressee by " to ", represent Mail Contents by " body ", represent mail sending order by specified function (such as send function).Then utilize http protocol interface that the exploitation code (i.e. mail data) that with the addition of Curl verbal order is sent to the HTTP layer of mail public service.
Step S202, forwarding by mail data are to code layer.
Particularly, HTTP layer carries out parameter testing: if each parameter of mail data is complete, can not affect mail delivery, mail data is forwarded to code layer process after receiving mail data; If mail data lacks some parameter and affects mail delivery, refusal mail sending by HTTP interface to the notice of client feedback mail sending failure and reason.Wherein, code layer is provided with mail sending strategy, and mail sending strategy comprises: send strategy interval time, maximum mail sending quantity strategy, delegated strategy.
Step S203, if the transmission coming from the mail of same account is less than or equal to preset time threshold interval time, refusal sends and returns the notice of refusal transmission to HTTP layer.
Particularly, the trigger condition sending strategy interval time is that the transmission of the mail coming from same account is less than or equal to preset time threshold interval time.When code layer receives mail, obtain the account of mail sending people, send the time interval of mail according to the same account of the account inquiries of sender, when the time interval is less than or equal to preset time threshold, trigger and send strategy interval time, refuse this mail sending.If user's within a short period of time have sent a large amount of mail, mail sending frequency is too high, directly be sent to mail server can be filtered and refuse to send, now, the transmission frequency of mail server is sent to by transmission policy control interval time, avoid mail server generation mail flood, and then avoid the normal email of same other sender of time period to deliver.
Step S204, if the single number of mail coming from same account has exceeded predetermined number threshold value, then refusal has sent and has returned the notice of refusal transmission to HTTP layer.
Particularly, the trigger condition of maximum mail sending quantity strategy is that the single number of mail coming from same account has exceeded predetermined number threshold value.When code layer receives mail, obtain the account of mail sending people, send the quantity of mail according to the account inquiries account single of sender, when the quantity that single sends mail has exceeded predetermined number threshold value, trigger maximum mail sending quantity strategy, refuse this mail sending.If when certain user's single sends mail, have sent mass mailings, directly be sent to mail server can be filtered and refuse to send, the number of mail of mail server is sent to by maximum mail sending quantity policy control, avoid mail server generation mail flood, and then avoid the normal email of same other sender of time period to deliver.
Step S205, if the mail data that have received unauthorized account, refusal sends and returns the notice of refusal transmission to HTTP layer.
Particularly, the trigger condition of delegated strategy is the mail data that have received unauthorized account.By delegated strategy, account with power of attorney is set, when the mail that code layer receives is not account with power of attorney transmission, trigger authorization strategy refusal sends, thus controls the quantity that can send the account of mail to mail server, avoids mail server generation mail flood.
Except above-mentioned three kinds of mail sending strategies, the self-defined strategy that user can also arrange other at code layer, to control mail sending, can facilitate network manager to carry out management and supervision to mail sending by setting self-defined strategy in mail public service.
Step S206, if do not trigger mail sending strategy according to mail data in code layer, is sent to mail sending layer and carries out mail sending by mail data.
Particularly, if when mail data passes through the monitoring of all mail sending strategies in code layer, illustrate that the quantity, the frequency that now send mail are all mail server acceptables, now call postfix software by mail sending layer and send mail to mail server, mail server there will not be mail flood phenomenon, and the situation rejecting mail also can not occur.After success sends mail to mail server, mail sending is successfully notified return code layer by mail sending layer, this mail sending successfully notifies to return HTTP layer by code layer, HTTP layer returns this mail sending by HTTP interface to client and successfully notifies, to notify that user mail sends successfully.
The e-mail sending method that the embodiment of the present invention two provides, strategy interval time, maximum mail sending quantity strategy, delegated strategy is sent by arranging, control and send the frequency of mail, quantity and account quantity to mail server, avoid mail server generation mail flood phenomenon, and then solve mail server and reject mail and affect the problem of mail delivery.In addition, mail public service is transparent to user and is convenient to centralized management, does not need, by means of mail sending software, to reduce the dependence to mail sending software.
Fig. 3 is the structural representation of the mail sending device of the embodiment of the present invention three, and as shown in Figure 3, the mail sending device of embodiment three comprises:
HTTP layer module 301, is suitable for receiving mail data and being forwarded to code layer module 302.
Code layer module 302, if be suitable for triggering mail sending strategy according to mail data, refusal sends and returns notice to HTTP layer module 301; If do not trigger mail sending strategy according to mail data, mail data is sent to mail sending layer module 303.
Mail sending layer module 303, is suitable for carrying out mail sending.
The implement device of the e-mail sending method that the mail sending device that the embodiment of the present invention three provides provides for the embodiment of the present invention one, the e-mail sending method that its concrete principle reference example one provides, repeats no more herein.
The mail sending device that the embodiment of the present invention three provides, being located at user sends between the client of mail and mail server, and adopt the mail sending strategy preset to avoid the mail flood brought to mail server, solve the problem that mail server is rejected mail and then affected mail delivery, mail server is no longer subject to mail flood water mitigation.
In addition, the mail sending device that the embodiment of the present invention three provides is transparent to user and is convenient to centralized management, does not need, by means of mail sending software, to reduce the dependence to mail sending software.
Fig. 4 is the structural representation of the mail sending device of the embodiment of the present invention four, and as shown in Figure 4, the mail sending device of embodiment four comprises:
HTTP layer module 401, is suitable for receiving mail data and being forwarded to code layer module 402.HTTP layer module 401 is further adapted for: receive the mail data sent to HTTP layer module 401 by HTTP interface; Wherein, user is undertaken by http protocol and HTTP interface alternately.
Code layer module 402, if be suitable for triggering mail sending strategy according to mail data, refusal sends and returns notice to HTTP layer module 401; If do not trigger mail sending strategy according to mail data, mail data is sent to mail sending layer module 403.
Mail sending layer module 403, is suitable for carrying out mail sending.
Wherein, code layer module 402 comprises further:
Send policy module interval time 4021, if the transmission being suitable for the mail coming from same account is less than or equal to preset time threshold interval time, refusal sends and returns the notice of refusal transmission to HTTP layer module 401.
Maximum mail sending quantity policy module 4022, if the single number of mail being suitable for coming from same account has exceeded predetermined number threshold value, refusal has sent and has returned the notice of refusal transmission to HTTP layer module 401.
Delegated strategy module 4023, if be suitable for the mail data that have received unauthorized account, refusal sends and returns the notice of refusal transmission to HTTP layer module 401.
The implement device of the e-mail sending method that the mail sending device that the embodiment of the present invention four provides provides for the embodiment of the present invention two, the e-mail sending method that its concrete principle reference example two provides, repeats no more herein.
The mail sending device that the embodiment of the present invention four provides, by sending policy module interval time, the policy module of maximum mail sending quantity, delegated strategy module, control and send the frequency of mail, quantity and account quantity to mail server, avoid mail server generation mail flood phenomenon, and then solve mail server and reject mail and affect the problem of mail delivery.In addition, the mail sending device that the embodiment of the present invention four provides is transparent to user and is convenient to centralized management, does not need, by means of mail sending software, to reduce the dependence to mail sending software.
Fig. 5 is the structural representation of the mail transmission system of the embodiment of the present invention five, and as shown in Figure 5, the mail transmission system of embodiment five comprises: the mail sending device 300 shown in Fig. 3, client 501 and mail server 502;
Client 501 is suitable for: send mail data by HTTP interface to HTTP layer module 301, and is undertaken alternately by http protocol and HTTP interface;
Mail server 502 is suitable for: receive the mail data of mail sending layer module 303 transmission and carry out mail delivery.
The mail transmission system that the embodiment of the present invention five provides adopts the mail sending device shown in Fig. 3 of the present invention, and its concrete principle, with reference to the mail sending device shown in figure 3, repeats no more herein.
The mail transmission system that the embodiment of the present invention five provides, by being located at the mail sending device between client and mail server, and adopt the mail sending strategy preset to avoid the mail flood brought to mail server, solve the problem that mail server is rejected mail and then affected mail delivery, mail server is no longer subject to mail flood water mitigation.
In addition, the mail transmission system in the embodiment of the present invention five is transparent to user and is convenient to centralized management, does not need, by means of mail sending software, to reduce the dependence to mail sending software.
Fig. 6 is the structural representation of the mail transmission system of the embodiment of the present invention six, and as shown in Figure 6, the mail transmission system of embodiment six comprises: the mail sending device 400 shown in Fig. 4, client 601 and mail server 602;
Client 601 is suitable for: send mail data by HTTP interface to HTTP layer module 401, and is undertaken alternately by http protocol and HTTP interface;
Mail server 602 is suitable for: receive the mail data of mail sending layer module 403 transmission and carry out mail delivery.
The mail transmission system that the embodiment of the present invention six provides adopts the mail sending device shown in Fig. 4 of the present invention, and its concrete principle, with reference to the mail sending device shown in figure 4, repeats no more herein.
The mail transmission system that the embodiment of the present invention six provides, by sending policy module interval time, the policy module of maximum mail sending quantity, delegated strategy module, control and send the frequency of mail, quantity and account quantity to mail server, avoid mail server generation mail flood phenomenon, and then solve mail server and reject mail and affect the problem of mail delivery.
In addition, the mail transmission system in the embodiment of the present invention six is transparent to user and is convenient to centralized management, does not need, by means of mail sending software, to reduce the dependence to mail sending software.
Intrinsic not relevant to any certain computer, virtual system or miscellaneous equipment with display at this algorithm provided.Various general-purpose system also can with use based on together with this teaching.According to description above, the structure constructed required by this type systematic is apparent.In addition, the present invention is not also for any certain programmed language.It should be understood that and various programming language can be utilized to realize content of the present invention described here, and the description done language-specific is above to disclose preferred forms of the present invention.
In specification provided herein, describe a large amount of detail.But can understand, embodiments of the invention can be put into practice when not having these details.In some instances, be not shown specifically known method, structure and technology, so that not fuzzy understanding of this description.
Similarly, be to be understood that, in order to simplify the disclosure and to help to understand in each inventive aspect one or more, in the description above to exemplary embodiment of the present invention, each feature of the present invention is grouped together in single embodiment, figure or the description to it sometimes.But, the method for the disclosure should be construed to the following intention of reflection: namely the present invention for required protection requires feature more more than the feature clearly recorded in each claim.Or rather, as claims below reflect, all features of disclosed single embodiment before inventive aspect is to be less than.Therefore, the claims following embodiment are incorporated to this embodiment thus clearly, and wherein each claim itself is as independent embodiment of the present invention.
Those skilled in the art are appreciated that and adaptively can change the module in the equipment in embodiment and they are arranged in one or more equipment different from this embodiment.Module in embodiment or unit or assembly can be combined into a module or unit or assembly, and multiple submodule or subelement or sub-component can be put them in addition.Except at least some in such feature and/or process or unit be mutually repel except, any combination can be adopted to combine all processes of all features disclosed in this specification (comprising adjoint claim, summary and accompanying drawing) and so disclosed any method or equipment or unit.Unless expressly stated otherwise, each feature disclosed in this specification (comprising adjoint claim, summary and accompanying drawing) can by providing identical, alternative features that is equivalent or similar object replaces.
In addition, those skilled in the art can understand, although embodiments more described herein to comprise in other embodiment some included feature instead of further feature, the combination of the feature of different embodiment means and to be within scope of the present invention and to form different embodiments.Such as, in the following claims, the one of any of embodiment required for protection can use with arbitrary compound mode.
All parts embodiment of the present invention with hardware implementing, or can realize with the software module run on one or more processor, or realizes with their combination.It will be understood by those of skill in the art that the some or all functions that microprocessor or digital signal processor (DSP) can be used in practice to realize according to the some or all parts in the mail sending device of the embodiment of the present invention and system.The present invention can also be embodied as part or all equipment for performing method as described herein or device program (such as, computer program and computer program).Realizing program of the present invention and can store on a computer-readable medium like this, or the form of one or more signal can be had.Such signal can be downloaded from internet website and obtain, or provides on carrier signal, or provides with any other form.
The present invention will be described instead of limit the invention to it should be noted above-described embodiment, and those skilled in the art can design alternative embodiment when not departing from the scope of claims.In the claims, any reference symbol between bracket should be configured to limitations on claims.Word " comprises " not to be got rid of existence and does not arrange element in the claims or step.Word "a" or "an" before being positioned at element is not got rid of and be there is multiple such element.The present invention can by means of including the hardware of some different elements and realizing by means of the computer of suitably programming.In the unit claim listing some devices, several in these devices can be carry out imbody by same hardware branch.Word first, second and third-class use do not represent any order.Can be title by these word explanations.

Claims (11)

1.一种邮件发送方法,其包括:1. A mail sending method, which comprises: 通过超文本传送协议层接收邮件数据并转发至代码层;Receive mail data through the hypertext transfer protocol layer and forward it to the code layer; 如果在所述代码层中根据所述邮件数据触发了邮件发送策略,则拒绝发送并向所述超文本传送协议层返回通知;If the mail sending policy is triggered according to the mail data in the code layer, then reject sending and return a notification to the hypertext transfer protocol layer; 如果在所述代码层中根据所述邮件数据没有触发所述邮件发送策略,则将所述邮件数据发送至邮件发送层进行邮件发送。If the email sending policy is not triggered according to the email data in the code layer, the email data is sent to the email sending layer for email sending. 2.根据权利要求1所述的邮件发送方法,其中,所述邮件发送策略包括:发送间隔时间策略;2. The email sending method according to claim 1, wherein the email sending strategy comprises: a sending interval strategy; 所述如果在所述代码层中根据所述邮件数据触发了邮件发送策略,拒绝发送并向所述超文本传送协议层返回通知的步骤进一步包括:If the mail sending policy is triggered according to the mail data in the code layer, the step of refusing to send and returning a notification to the hypertext transfer protocol layer further includes: 如果来自于相同账户的邮件的发送间隔时间小于或等于预设时间阈值,拒绝发送并向所述超文本传送协议层返回拒绝发送的通知。If the interval between sending emails from the same account is less than or equal to the preset time threshold, reject sending and return a notification of rejecting sending to the hypertext transfer protocol layer. 3.根据权利要求1所述的邮件发送方法,其中,所述邮件发送策略包括:最大邮件发送数量策略;3. The email sending method according to claim 1, wherein the email sending strategy comprises: a maximum email sending quantity strategy; 所述如果在所述代码层中根据所述邮件数据触发了邮件发送策略,拒绝发送并向所述超文本传送协议层返回通知的步骤进一步包括:If the mail sending policy is triggered according to the mail data in the code layer, the step of refusing to send and returning a notification to the hypertext transfer protocol layer further includes: 如果来自于相同账户的单次邮件数量超过了预设数量阈值,拒绝发送并向所述超文本传送协议层返回拒绝发送的通知。If the number of single emails from the same account exceeds the preset number threshold, reject sending and return a notification of rejecting sending to the hypertext transfer protocol layer. 4.根据权利要求1所述的邮件发送方法,其中,所述邮件发送策略包括:授权策略;4. The email sending method according to claim 1, wherein the email sending strategy comprises: an authorization strategy; 所述如果在所述代码层中根据所述邮件数据触发了邮件发送策略,拒绝发送并向所述超文本传送协议层返回通知的步骤进一步包括:If the mail sending policy is triggered according to the mail data in the code layer, the step of refusing to send and returning a notification to the hypertext transfer protocol layer further includes: 如果接收到了非授权账户的邮件数据,拒绝发送并向所述超文本传送协议层返回拒绝发送的通知。If mail data from an unauthorized account is received, the sending is refused and a notification of sending rejection is returned to the hypertext transfer protocol layer. 5.根据权利要求1-4任一项所述的邮件发送方法,其中,通过超文本传送协议层接收邮件数据的步骤进一步包括:5. The mail sending method according to any one of claims 1-4, wherein the step of receiving mail data by the hypertext transfer protocol layer further comprises: 接收通过超文本传送协议接口向所述超文本传送协议层发送的所述邮件数据;其中,用户通过HTTP协议与所述超文本传送协议接口进行交互。receiving the mail data sent to the hypertext transfer protocol layer through the hypertext transfer protocol interface; wherein, the user interacts with the hypertext transfer protocol interface through the HTTP protocol. 6.一种邮件发送装置,其包括:6. A mail sending device, comprising: 超文本传送协议层模块,适于接收邮件数据并转发至代码层模块;The hypertext transfer protocol layer module is suitable for receiving mail data and forwarding it to the code layer module; 代码层模块,适于如果根据所述邮件数据触发了邮件发送策略,拒绝发送并向所述超文本传送协议层模块返回通知;如果根据所述邮件数据没有触发所述邮件发送策略,将所述邮件数据发送至邮件发送层模块;The code layer module is adapted to reject sending and return a notification to the hypertext transfer protocol layer module if the mail sending strategy is triggered according to the mail data; if the mail sending strategy is not triggered according to the mail data, send the The mail data is sent to the mail sending layer module; 邮件发送层模块,适于进行邮件发送。The email sending layer module is suitable for sending emails. 7.根据权利要求6所述的邮件发送装置,其中,所述代码层模块进一步包括:7. The mail sending device according to claim 6, wherein the code layer module further comprises: 发送间隔时间策略模块,适于如果来自于相同账户的邮件的发送间隔时间小于或等于预设时间阈值,拒绝发送并向所述超文本传送协议层模块返回拒绝发送的通知。The sending interval policy module is adapted to refuse sending and return a notification of refusal to send to the hypertext transfer protocol layer module if the sending interval of the emails from the same account is less than or equal to a preset time threshold. 8.根据权利要求6所述的邮件发送装置,其中,所述代码层模块进一步包括:8. The mail sending device according to claim 6, wherein the code layer module further comprises: 最大邮件发送数量策略模块,适于如果来自于相同账户的单次邮件数量超过了预设数量阈值,拒绝发送并向所述超文本传送协议层模块返回拒绝发送的通知。The maximum number of emails sent policy module is adapted to refuse to send and return a notification of rejection to the HTTP layer module if the number of single emails from the same account exceeds a preset number threshold. 9.根据权利要求6所述的邮件发送装置,其中,所述代码层模块进一步包括:9. The mail sending device according to claim 6, wherein the code layer module further comprises: 授权策略模块,适于如果接收到了非授权账户的邮件数据,拒绝发送并向所述超文本传送协议层模块返回拒绝发送的通知。The authorization policy module is adapted to refuse to send mail data received from an unauthorized account and return a notification of rejection to the hypertext transfer protocol layer module. 10.根据权利要求6-9任一项所述的邮件发送装置,其中,所述超文本传送协议层模块进一步适于:接收通过超文本传送协议接口向所述超文本传送协议层发送的所述邮件数据;其中,用户通过HTTP协议与所述超文本传送协议接口进行交互。10. The mail sending device according to any one of claims 6-9, wherein the hypertext transfer protocol layer module is further adapted to: receive all the emails sent to the hypertext transfer protocol layer through the hypertext transfer protocol interface The mail data; wherein, the user interacts with the hypertext transfer protocol interface through the HTTP protocol. 11.一种邮件发送系统,其包括:权利要求6-10任一项所述的邮件发送装置、客户端和邮件服务器;11. A mail sending system, comprising: the mail sending device, client and mail server according to any one of claims 6-10; 所述客户端适于:通过超文本传送协议接口向超文本传送协议层模块发送邮件数据,以及通过HTTP协议与所述超文本传送协议接口进行交互;The client is adapted to: send mail data to the hypertext transfer protocol layer module through the hypertext transfer protocol interface, and interact with the hypertext transfer protocol interface through the HTTP protocol; 所述邮件服务器适于:接收邮件发送层模块发送的邮件数据并进行邮件投递。The mail server is suitable for: receiving the mail data sent by the mail sending layer module and delivering the mail.
CN201410257944.7A 2014-06-11 2014-06-11 E-mail sending method, device and system Active CN105337836B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410257944.7A CN105337836B (en) 2014-06-11 2014-06-11 E-mail sending method, device and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410257944.7A CN105337836B (en) 2014-06-11 2014-06-11 E-mail sending method, device and system

Publications (2)

Publication Number Publication Date
CN105337836A true CN105337836A (en) 2016-02-17
CN105337836B CN105337836B (en) 2019-05-28

Family

ID=55288146

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410257944.7A Active CN105337836B (en) 2014-06-11 2014-06-11 E-mail sending method, device and system

Country Status (1)

Country Link
CN (1) CN105337836B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5832218A (en) * 1995-12-14 1998-11-03 International Business Machines Corporation Client/server electronic mail system for providng off-line client utilization and seamless server resynchronization
CN1522416A (en) * 2001-06-29 2004-08-18 ��˹��ŵ�� Apparatus and method for processing e-mail
CN101573696A (en) * 2006-12-28 2009-11-04 佳能株式会社 Information processing device, information processing device control method, program, and recording medium
CN102594719A (en) * 2011-01-15 2012-07-18 株式会社野村综合研究所 Mis-sending confirming system and program for E-mail

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5832218A (en) * 1995-12-14 1998-11-03 International Business Machines Corporation Client/server electronic mail system for providng off-line client utilization and seamless server resynchronization
CN1522416A (en) * 2001-06-29 2004-08-18 ��˹��ŵ�� Apparatus and method for processing e-mail
CN101573696A (en) * 2006-12-28 2009-11-04 佳能株式会社 Information processing device, information processing device control method, program, and recording medium
CN102594719A (en) * 2011-01-15 2012-07-18 株式会社野村综合研究所 Mis-sending confirming system and program for E-mail

Also Published As

Publication number Publication date
CN105337836B (en) 2019-05-28

Similar Documents

Publication Publication Date Title
US11068795B2 (en) Automatically predicting that a proposed electronic message is flagged based on a predicted hard bounce rate
AU2005306434B2 (en) System and method for disaster recovery and management of an email system
CN104272268B (en) For the system of communication security management, apparatus and method
US7756929B1 (en) System and method for processing e-mail
CN101346711B (en) Provision of secure RSS feeds using a secure RSS catcher
US20030158905A1 (en) E-mail management services
US20060277264A1 (en) Method, system, apparatus, and software product for filtering out spam more efficiently
JP2005518173A5 (en)
US20090037537A1 (en) Tracking Electronic Mail History
WO2005112596A2 (en) Method and system for providing a disposable email address
US20060265459A1 (en) Systems and methods for managing the transmission of synchronous electronic messages
KR101589160B1 (en) A communication device
EP2069948A2 (en) Method and apparatus for filtering electronic messages
US20060242708A1 (en) Actionable quarantine summary
CN104579922A (en) Mail sending method and device
CN104363160B (en) It is a kind of to carry the email processing method of document attachment, device and system
EP1676206A1 (en) Method and system for delivering electronic messages using a trusted delivery system
CN105337836A (en) Mail transmission method, apparatus and system
US7958187B2 (en) Systems and methods for managing directory harvest attacks via electronic messages
US20080307057A1 (en) Method and system for providing a spam-free email environment
US9106601B2 (en) Selective delivery of content via electronic mail
CN109120510A (en) E-mail sending method, apparatus and system based on permission control
CN102843376A (en) Method and device for preventing junk mails
JP6614920B2 (en) Transmission control apparatus, transmission control method, and transmission control program
CN103384219A (en) E-mail sending method and system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20220803

Address after: 300450 No. 9-3-401, No. 39, Gaoxin 6th Road, Binhai Science Park, Binhai New Area, Tianjin

Patentee after: 3600 Technology Group Co.,Ltd.

Address before: 100088 room 112, block D, 28 new street, new street, Xicheng District, Beijing (Desheng Park)

Patentee before: BEIJING QIHOO TECHNOLOGY Co.,Ltd.

Patentee before: Qizhi software (Beijing) Co.,Ltd.

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20230714

Address after: 1765, floor 17, floor 15, building 3, No. 10 Jiuxianqiao Road, Chaoyang District, Beijing 100015

Patentee after: Beijing Hongxiang Technical Service Co.,Ltd.

Address before: 300450 No. 9-3-401, No. 39, Gaoxin 6th Road, Binhai Science Park, Binhai New Area, Tianjin

Patentee before: 3600 Technology Group Co.,Ltd.

CP03 Change of name, title or address
CP03 Change of name, title or address

Address after: 1765, floor 17, floor 15, building 3, No. 10 Jiuxianqiao Road, Chaoyang District, Beijing 100015

Patentee after: Beijing 360 Zhiling Technology Co.,Ltd.

Country or region after: China

Address before: 1765, floor 17, floor 15, building 3, No. 10 Jiuxianqiao Road, Chaoyang District, Beijing 100015

Patentee before: Beijing Hongxiang Technical Service Co.,Ltd.

Country or region before: China