CN111464426A - Method, device and storage medium for automatically adjusting mail delivery strategy - Google Patents
Method, device and storage medium for automatically adjusting mail delivery strategy Download PDFInfo
- Publication number
- CN111464426A CN111464426A CN202010207934.8A CN202010207934A CN111464426A CN 111464426 A CN111464426 A CN 111464426A CN 202010207934 A CN202010207934 A CN 202010207934A CN 111464426 A CN111464426 A CN 111464426A
- Authority
- CN
- China
- Prior art keywords
- end server
- delivery
- delivered
- server
- 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
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L51/00—User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
- H04L51/42—Mailbox-related aspects, e.g. synchronisation of mailboxes
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L51/00—User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
- H04L51/21—Monitoring or handling of messages
- H04L51/23—Reliability checks, e.g. acknowledgments or fault reporting
Abstract
The invention discloses an automatic adjusting method of mail delivery strategies, which comprises the following steps: setting delivery strategy parameters of a sender server; the sending end server counts the delivery strategy parameters and judges whether the delivery strategy parameters of the sending end server trigger the limitation of the receiving end server according to the response information of the receiving end server; if not, delivering the mail to be delivered of the sending end server to the receiving end server, and adjusting the delivery strategy parameters; if so, the sending end server adjusts the delivery strategy parameters according to the response information to obtain updated delivery strategy parameters, and adds the mail to be delivered of the sending end server into a queue to be delivered; and the sender server delivers the mails to be delivered in the queue to be delivered to the sender server according to the updated delivery strategy parameters. The method for automatically adjusting the mail delivery strategy provided by the invention can effectively improve the delivery success rate when delivering the mail, thereby effectively improving the success rate of mail communication.
Description
Technical Field
The invention relates to the technical field of mail service, in particular to a method and a device for automatically adjusting a mail delivery strategy and a storage medium.
Background
Mail is delivered from a sending server to a receiving server and is transmitted by a Simple Mail Transfer Protocol (SMTP). Thus, the actual process of mail delivery is that of two SMTP servers communicating. The mail is delivered to a receiving server from a sending server, wherein the most critical link is the process that an SMTP server at a sending end is connected with an SMTP server at a receiving end, and the mail can be basically ensured to be normally delivered to an inbox of a receiver only by ensuring the smooth communication of the two servers.
Generally, to ensure the normal and stable operation of the SMTP server, the SMTP server intercepts external illegal connection requests through many technical means (for example, a high-frequency request in a short time may cause a large amount of resources of the SMTP server to be occupied, and cannot provide normal services to the outside), and the frequency resetting intervals may be different according to different factors such as resources owned by the mail server itself and a processing manner, and the frequency resetting intervals may be different for each domain name.
The existing method for dynamically adjusting the mail delivery strategy is to erect a proxy server between a sending client and a sending server, send a mail to the proxy server through a hypertext transfer protocol (HTTP), and directly refuse to send the mail for users or mails which do not meet a threshold or a rule.
The existing method for dynamically adjusting the mail delivery strategy has the following problems:
the rejection mode is too strong and is easy to intercept some normal business letters by mistake, thereby reducing the success rate of mail delivery and further causing inconvenience in mail communication.
Disclosure of Invention
The method, the device and the storage medium for automatically adjusting the mail delivery strategy provided by the embodiment of the invention can effectively improve the delivery success rate when delivering the mail, thereby effectively improving the success rate of mail communication.
To solve the above problem, in one aspect, an embodiment of the present invention provides an automatic adjusting method for a mail delivery policy, including:
setting delivery strategy parameters of a sender server; the delivery strategy parameters comprise: a connection threshold, an SMTP connection number per minute threshold, a recipient sending per minute threshold, and a sending flow per minute threshold that are maintained simultaneously;
the sending end server counts the delivery strategy parameters according to a preset time period, and judges whether the delivery strategy parameters of the sending end server trigger the limitation of the receiving end server according to the response information of the receiving end server;
if not, establishing the connection between the receiving end server and the sending end server, delivering the mail to be delivered of the sending end server to the receiving end server, and adjusting the delivery strategy parameters;
if so, the sending end server adjusts the delivery strategy parameters according to the response information to obtain updated delivery strategy parameters, and adds the mails to be delivered of the sending end server into a queue to be delivered;
and the transmitting end server transmits the mails to be delivered in the queues to be delivered to the receiving end server according to the updated delivery strategy parameters.
Further, the step of counting the delivery policy parameters by the sender-side server according to a preset time period and judging whether the delivery policy parameters of the sender-side server trigger the limitation of the receiver-side server according to the response information of the receiver-side server includes:
when the SMTP connection is executed in the Nth minute, whether the SMTP connection is successful is judged according to the response information; if the connection is successful, increasing the SMTP connection number per minute threshold value by 1, and increasing the delivery connection number when the delivery is carried out for N +1 minute; if the connection fails and the connection number is judged to be excessive according to the response information to trigger the connection number limitation of the receiving server, reducing the SMTP connection number threshold value per minute by 1, and reducing the delivery connection number when delivering in N +1 minutes or automatically switching the IP used when delivering.
Further, establishing a connection between the receiving end server and the sending end server, delivering the mail to be delivered of the sending end server to the receiving end server, and adjusting the delivery strategy parameters, specifically:
and establishing the connection between the receiving end server and the transmitting end server, delivering the mail to be delivered of the transmitting end server to the receiving end server, and increasing the connection threshold value kept in the delivery strategy parameters.
Further, the sending end server adjusts the delivery policy parameters according to the response information to obtain updated delivery policy parameters, and adds the mail to be delivered of the sending end server into a queue to be delivered, including:
if the flow limitation is triggered, stopping delivering the mail to the receiving end server within a preset time period, and adding the mail to be delivered of the sending end server into a queue to be delivered;
if the connection number per minute limit is triggered, reducing the connection threshold value kept simultaneously in the delivery strategy parameters, and adding the mail to be delivered of the sender-side server into a queue to be delivered.
On the other hand, another embodiment of the invention provides an automatic adjusting device for mail delivery policy, which comprises a setting module, a judging module, a first parameter adjusting module, a second parameter adjusting module and a delivery module;
the setting module is used for setting delivery strategy parameters of the sender server; the delivery strategy parameters comprise: a connection threshold, an SMTP connection number per minute threshold, a recipient sending per minute threshold, and a sending flow per minute threshold that are maintained simultaneously;
the judging module is used for counting the delivery strategy parameters by the transmitting end server according to a preset time period and judging whether the delivery strategy parameters of the transmitting end server trigger the limitation of the receiving end server according to the response information of the receiving end server;
the first parameter adjusting module is used for establishing the connection between the receiving end server and the sending end server, delivering the mail to be delivered of the sending end server to the receiving end server, and adjusting the delivery strategy parameters;
the second parameter adjusting module is used for adjusting the delivery strategy parameters by the sender-side server according to the response information to obtain updated delivery strategy parameters and adding the mails to be delivered of the sender-side server into a queue to be delivered;
and the delivery module is used for delivering the mails to be delivered in the queue to be delivered to the receiving end server by the transmitting end server according to the updated delivery strategy parameters.
Further, the determining module includes:
when the SMTP connection is executed in the Nth minute, whether the SMTP connection is successful is judged according to the response information; if the connection is successful, increasing the SMTP connection number per minute threshold value by 1, and increasing the delivery connection number when the delivery is carried out for N +1 minute; if the connection fails and the connection number is judged to be excessive according to the response information to trigger the connection number limitation of the receiving server, reducing the SMTP connection number threshold value per minute by 1, and reducing the delivery connection number when delivering in N +1 minutes or automatically switching the IP used when delivering.
Further, the first parameter adjusting module is specifically configured to:
and establishing the connection between the receiving end server and the transmitting end server, delivering the mail to be delivered of the transmitting end server to the receiving end server, and increasing the connection threshold value kept in the delivery strategy parameters.
Further, the second parameter adjusting module is specifically configured to:
if the flow limitation is triggered, stopping delivering the mail to the receiving end server within a preset time period, and adding the mail to be delivered of the sending end server into a queue to be delivered;
if the connection number per minute limit is triggered, reducing the connection threshold value kept simultaneously in the delivery strategy parameters, and adding the mail to be delivered of the sender-side server into a queue to be delivered.
In still another aspect, another embodiment of the present invention provides a computer-readable storage medium, which includes a stored computer program, wherein when the computer program runs, the apparatus where the computer-readable storage medium is located is controlled to execute the automatic adjusting method of mail delivery policy as described above.
According to the method, the device and the storage medium for automatically adjusting the mail delivery strategy, provided by the embodiment of the invention, by setting the delivery strategy parameters of the sending end server, when the sending end server delivers the mail, the sending end server counts the delivery strategy parameters, and judges whether the delivery strategy parameters of the sending end server trigger the limitation of the receiving end server or not according to the response information of the receiving end server during delivery, so that the sending end server adjusts the delivery strategy parameters according to the response information returned by the receiving end server; meanwhile, the mail which fails in delivery is added into the queue of the ladder to be delivered, and the adjusted delivery strategy parameters are used for delivering again in the next delivery, so that the delivery strategy parameters can be automatically adjusted without manual intervention, and the delivery success rate of the mail is ensured; and when a single large-batch delivery task is executed, the success rate of delivering the mail to different receiving end servers can be effectively improved, and the cost of manually maintaining the delivery frequency strategy is effectively reduced.
Drawings
FIG. 1 is a flow chart of a method for automatically adjusting a mail delivery policy according to an embodiment of the present invention;
fig. 2 is a diagram illustrating an example of a structure of an apparatus for automatically adjusting a mail delivery policy according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Please refer to fig. 1:
a first embodiment of the invention.
The embodiment of the invention provides an automatic adjusting method of a mail delivery strategy, which comprises the following steps:
s1, setting delivery strategy parameters of the sender server; the delivery strategy parameters include: a connection threshold, an SMTP connection number per minute threshold, a recipient sending per minute threshold, and a sending flow per minute threshold that are maintained simultaneously;
s2, the sending end server counts the delivery strategy parameters according to a preset time period, and judges whether the delivery strategy parameters of the sending end server trigger the limitation of the receiving end server according to the response information of the receiving end server;
in the embodiment of the present invention, it can be understood that the response information of the receiving end server includes a response code, when the sending end server delivers a mail to the receiving end server, the receiving end server returns the response code to the sending end server, and the sending end server can determine whether the connection is successful and whether the limitation of the receiving end server is triggered by analyzing the response code, where the limitation of the receiving end server includes: flow restrictions, connections per minute restrictions, and send recipients per minute restrictions, etc.
S3, if not, establishing the connection between the receiving end server and the sending end server, delivering the mail to be delivered of the sending end server to the receiving end server, and adjusting the delivery strategy parameters;
s4, if yes, the sending end server adjusts the delivery strategy parameters according to the response information to obtain updated delivery strategy parameters, and the mail to be delivered of the sending end server is added into a queue to be delivered;
and S5, the transmitting end server transmits the mail to be delivered in the queue to be delivered to the receiving end server according to the updated delivery strategy parameters.
In the embodiment of the invention, by setting the delivery strategy parameters of the sending end server, when the sending end server delivers the mail, the sending end server counts the delivery strategy parameters according to the response information of the receiving end server, and judges whether the delivery strategy parameters of the sending end server trigger the limitation of the receiving end server according to the response information of the receiving end server when delivering, so that the sending end server adjusts the delivery strategy parameters according to the response information returned by the receiving end server; meanwhile, the mail which fails in delivery is added into the queue of the ladder to be delivered, and the adjusted delivery strategy parameters are used for delivering again in the next delivery, so that the delivery strategy parameters can be automatically adjusted without manual intervention, and the delivery success rate of the mail is ensured; and when a single large-batch delivery task is executed, the success rate of delivering the mail to different receiving end servers can be effectively improved, and the cost of manually maintaining the delivery frequency strategy is effectively reduced.
As a specific implementation manner of the embodiment of the present invention, the response information includes the number of SMTP instructions per minute, the sending end server performs statistics on delivery policy parameters according to a preset time period, and determines whether the delivery policy parameters of the sending end server trigger the limitation of the receiving end server according to the response information of the receiving end server, including:
when the SMTP connection is executed in the Nth minute, whether the SMTP connection is successful is judged according to the response information; if the connection is successful, increasing the SMTP connection number threshold value by 1 every minute, and increasing the delivery connection number when the delivery is carried out for N +1 minute; if the connection fails and the connection number is judged to be excessive according to the response information to trigger the limitation of the connection number of the receiving server, the SMTP connection number threshold value per minute is reduced by 1, and the delivery connection number is reduced when delivery is carried out in N +1 minutes or the IP used when delivery is automatically switched.
In the embodiment of the invention, the response information comprises the response code returned by the receiving end server according to the mail delivery, and the response information obtains the result of the connection by analyzing different response codes.
As a specific implementation manner of the embodiment of the present invention, a connection between a receiving end server and a sending end server is established, a mail to be delivered from the sending end server is delivered to the receiving end server, and a delivery policy parameter is adjusted, specifically:
establishing connection between a receiving end server and a sending end server, delivering the mail to be delivered of the sending end server to the receiving end server, and increasing a connection threshold value kept in the delivery strategy parameters.
In the embodiment of the invention, the delivery strategy parameters are continuously adjusted to be close to the upper limit number of the receiving end server, so that the utilization rate of resources can be effectively improved.
As a specific implementation manner of the embodiment of the present invention, the sending end server adjusts the delivery policy parameter according to the response information to obtain an updated delivery policy parameter, and adds the mail to be delivered of the sending end server to the queue to be delivered, including:
if the flow limitation is triggered, stopping delivering the mail to the receiving end server within a preset time period, and adding the mail to be delivered of the sending end server into a queue to be delivered;
if the connection number per minute limit is triggered, reducing the connection threshold value kept in the delivery strategy parameters at the same time, and adding the mail to be delivered of the sender server into the queue to be delivered.
In the embodiment of the invention, when the limitation of a receiving end server is triggered by the mail delivery at this time, the mail delivery of the sending end server fails, the mail with the delivery failure is put into a to-be-delivered ladder queue and marked, the mail is delivered again according to the adjusted delivery strategy parameters after the main delivery task is completed, and when the marking times of the mail reach a preset value, the mail delivery failure is judged. The embodiment of the invention adds the mail with delivery failure into the queue of the ladder to be delivered, continuously changes the parameters of the delivery strategy, and tries to deliver again for a plurality of times, thereby effectively avoiding the delivery failure caused by temporary limitation and being beneficial to improving the success rate of the whole delivery task.
In the embodiment of the invention, when the flow limitation is triggered, the delivery task of the receiving end server can be suspended within 15 minutes, the mail to be delivered of the sending end server is added into the queue to be delivered, and the delivery is continuously executed after the flow limitation of the receiving end server is contacted.
The embodiment of the invention has the following beneficial effects:
the delivery strategy parameters of the sending end server are set, when the sending end server delivers the mails, the sending end server counts the delivery strategy parameters according to the response information of the receiving end server, and judges whether the delivery strategy parameters of the sending end server trigger the limitation of the receiving end server according to the response information of the receiving end server when delivering, so that the sending end server adjusts the delivery strategy parameters according to the response information returned by the receiving end server; meanwhile, the mail which fails in delivery is added into the queue of the ladder to be delivered, and the adjusted delivery strategy parameters are used for delivering again in the next delivery, so that the delivery strategy parameters can be automatically adjusted without manual intervention, and the delivery success rate of the mail is ensured; and when a single large-batch delivery task is executed, the success rate of delivering the mail to different receiving end servers can be effectively improved, and the cost of manually maintaining the delivery frequency strategy is effectively reduced.
The sending end server can receive the response information of the receiving end server in real time, can automatically adjust the delivery strategy parameters according to the response information of the receiving end server, is favorable for separating the transceiving of a large number of delivery tasks and normal delivery tasks by utilizing the relay characteristic of SMTP, can effectively reduce the occurrence of the condition that the sending end server is mistakenly regarded as malicious IP due to excessive delivery triggering limitation, and can effectively improve the success rate of mail delivery.
Please refer to fig. 2:
a second embodiment of the invention.
The embodiment of the invention provides an automatic adjusting device for mail delivery strategies, which comprises a setting module 10, a judging module 20, a first parameter adjusting module 30, a second parameter adjusting module 40 and a delivery module 50;
a setting module 10, configured to set delivery policy parameters of a sender server; the delivery strategy parameters include: a connection threshold, an SMTP connection number per minute threshold, a recipient sending per minute threshold, and a sending flow per minute threshold that are maintained simultaneously;
the judging module 20 is configured to count the delivery policy parameters by the sender-side server according to a preset time period, and judge whether the delivery policy parameters of the sender-side server trigger the limitation of the receiver-side server according to the response information of the receiver-side server;
in the embodiment of the present invention, it can be understood that the response information of the receiving end server is usually a response code, when the sending end server delivers a mail to the receiving end server, the receiving end server returns the response code to the sending end server, and the sending end server can determine whether the delivery starts the limitation of the receiving end server by analyzing the response code, where the limitation of the receiving end server includes: flow restrictions, connections per minute restrictions, and send recipients per minute restrictions, etc.
The first parameter adjusting module 30 is used for establishing the connection between the receiving end server and the sending end server, delivering the mail to be delivered of the sending end server to the receiving end server, and adjusting the delivery strategy parameters;
the second parameter adjusting module 40 is used for adjusting the delivery strategy parameters by the sender server according to the response information to obtain updated delivery strategy parameters and adding the mails to be delivered of the sender server into the queues to be delivered;
and the delivery module 50 is used for delivering the mails to be delivered in the queue to be delivered to the receiving end server by the transmitting end server according to the updated delivery strategy parameters.
In the embodiment of the invention, by setting the delivery strategy parameters of the sending end server, when the sending end server delivers the mail, the sending end server counts the delivery strategy parameters according to the response information of the receiving end server, and judges whether the delivery strategy parameters of the sending end server trigger the limitation of the receiving end server according to the response information of the receiving end server when delivering, so that the sending end server adjusts the delivery strategy parameters according to the response information returned by the receiving end server; meanwhile, the mail which fails in delivery is added into the queue of the ladder to be delivered, and the adjusted delivery strategy parameters are used for delivering again in the next delivery, so that the delivery strategy parameters can be automatically adjusted without manual intervention, and the delivery success rate of the mail is ensured; and when a single large-batch delivery task is executed, the success rate of delivering the mail to different receiving end servers can be effectively improved, and the cost of manually maintaining the delivery frequency strategy is effectively reduced.
As a specific implementation manner of the embodiment of the present invention, the determining module 20 includes:
when the SMTP connection is executed in the Nth minute, whether the SMTP connection is successful is judged according to the response information; if the connection is successful, increasing the SMTP connection number threshold value by 1 every minute, and increasing the delivery connection number when the delivery is carried out for N +1 minute; if the connection fails and the connection number is judged to be excessive according to the response information to trigger the limitation of the connection number of the receiving server, the SMTP connection number threshold value per minute is reduced by 1, and the delivery connection number is reduced when delivery is carried out in N +1 minutes or the IP used when delivery is automatically switched.
In the embodiment of the invention, the response information comprises the response code returned by the receiving end server according to the mail delivery, and the response information obtains the result of the connection by analyzing different response codes.
As a specific implementation manner of the embodiment of the present invention, the first parameter adjusting module 30 is specifically configured to:
establishing connection between a receiving end server and a sending end server, delivering the mail to be delivered of the sending end server to the receiving end server, and increasing a connection threshold value kept in the delivery strategy parameters.
In the embodiment of the invention, the delivery strategy parameters are continuously adjusted to be close to the upper limit number of the receiving end server, so that the utilization rate of resources can be effectively improved.
As a specific implementation manner of the embodiment of the present invention, the second parameter adjusting module 40 is specifically configured to:
if the flow limitation is triggered, stopping delivering the mail to the receiving end server within a preset time period, and adding the mail to be delivered of the sending end server into a queue to be delivered;
if the connection number per minute limit is triggered, reducing the connection threshold value kept in the delivery strategy parameters at the same time, and adding the mail to be delivered of the sender server into the queue to be delivered.
In the embodiment of the invention, when the limitation of the receiving end server is triggered, the mail delivery sent by the sending end server fails, the mail with delivery failure is put into the queue of the ladder to be delivered and marked, the redelivery is carried out according to the adjusted delivery strategy parameters after the main delivery task is completed, and the mail delivery failure is judged when the marking times of the mail reach the preset value. The embodiment of the invention adds the mail with delivery failure into the queue of the ladder to be delivered, continuously changes the parameters of the delivery strategy, and tries to deliver again for a plurality of times, thereby effectively avoiding the delivery failure caused by temporary limitation and being beneficial to improving the success rate of the whole delivery task.
In the embodiment of the invention, when the flow limitation is triggered, the delivery task of the receiving end server can be suspended within 15 minutes, the mail to be delivered of the sending end server is added into the queue to be delivered, and the delivery is continuously executed after the flow limitation of the receiving end server is contacted.
The embodiment of the invention has the following beneficial effects:
the delivery strategy parameters of the sending end server are set, when the sending end server delivers the mails, the sending end server counts the delivery strategy parameters according to the response information of the receiving end server, and judges whether the delivery strategy parameters of the sending end server trigger the limitation of the receiving end server according to the response information of the receiving end server when delivering, so that the sending end server adjusts the delivery strategy parameters according to the response information returned by the receiving end server; meanwhile, the mail which fails in delivery is added into the queue of the ladder to be delivered, and the adjusted delivery strategy parameters are used for delivering again in the next delivery, so that the delivery strategy parameters can be automatically adjusted without manual intervention, and the delivery success rate of the mail is ensured; and when a single large-batch delivery task is executed, the success rate of delivering the mail to different receiving end servers can be effectively improved, and the cost of manually maintaining the delivery frequency strategy is effectively reduced.
The receiving end server can receive the response information of the receiving end server in real time, can automatically adjust the delivery strategy parameters according to the response information of the receiving end server, is favorable for separating the transceiving of a large number of delivery tasks and normal delivery tasks by utilizing the relay characteristic of SMTP, can effectively reduce the occurrence of the condition that the sending end server is mistakenly regarded as malicious IP due to excessive delivery triggering limitation, and can effectively improve the success rate of mail delivery.
A third embodiment of the present invention provides a computer-readable storage medium, which includes a stored computer program, wherein when the computer program runs, a device in which the computer-readable storage medium is located is controlled to execute the method for automatically adjusting a mail delivery policy as described above.
The foregoing is a preferred embodiment of the present invention, and it should be noted that it would be apparent to those skilled in the art that various modifications and enhancements can be made without departing from the principles of the invention, and such modifications and enhancements are also considered to be within the scope of the invention.
Claims (9)
1. A method for automatically adjusting mail delivery strategies is characterized by comprising the following steps:
setting delivery strategy parameters of a sender server; the delivery strategy parameters comprise: a connection threshold, an SMTP connection number per minute threshold, a recipient sending per minute threshold, and a sending flow per minute threshold that are maintained simultaneously;
the sending end server counts the delivery strategy parameters according to a preset time period, and judges whether the delivery strategy parameters of the sending end server trigger the limitation of the receiving end server according to the response information of the receiving end server;
if not, establishing the connection between the receiving end server and the sending end server, delivering the mail to be delivered of the sending end server to the receiving end server, and adjusting the delivery strategy parameters;
if so, the sending end server adjusts the delivery strategy parameters according to the response information to obtain updated delivery strategy parameters, and adds the mails to be delivered of the sending end server into a queue to be delivered;
and the transmitting end server transmits the mails to be delivered in the queues to be delivered to the receiving end server according to the updated delivery strategy parameters.
2. The method of claim 1, wherein the sender-side server performs statistics on the delivery policy parameters according to a preset time period, and determines whether the delivery policy parameters of the sender-side server trigger the limitation of the receiver-side server according to the response information of the receiver-side server, comprising:
when the SMTP connection is executed in the Nth minute, whether the SMTP connection is successful is judged according to the response information; if the connection is successful, increasing the SMTP connection number per minute threshold value by 1, and increasing the delivery connection number when the delivery is carried out for N +1 minute; if the connection fails and the connection number is judged to be excessive according to the response information to trigger the connection number limitation of the receiving server, reducing the SMTP connection number threshold value per minute by 1, and reducing the delivery connection number when delivering in N +1 minutes or automatically switching the IP used when delivering.
3. The method according to claim 1, wherein the connection between the receiving end server and the sending end server is established, the mail to be delivered from the sending end server is delivered to the receiving end server, and the delivery policy parameters are adjusted, specifically:
and establishing the connection between the receiving end server and the transmitting end server, delivering the mail to be delivered of the transmitting end server to the receiving end server, and increasing or decreasing the connection threshold value kept in the delivery strategy parameters according to the response information of the receiving end server.
4. The method of claim 1, wherein the sender server adjusts the delivery policy parameters according to the response information to obtain updated delivery policy parameters, and adds the mail to be delivered from the sender server to the queue to be delivered, comprising:
if the flow limitation is triggered, stopping delivering the mail to the receiving end server within a preset time period, and adding the mail to be delivered of the sending end server into a queue to be delivered;
if the connection number per minute limit is triggered, reducing the connection threshold value kept simultaneously in the delivery strategy parameters, and adding the mail to be delivered of the sender-side server into a queue to be delivered.
5. An automatic adjusting device for mail delivery strategies is characterized by comprising a setting module, a judging module, a first parameter adjusting module, a second parameter adjusting module and a delivery module;
the setting module is used for setting delivery strategy parameters of the sender server; the delivery strategy parameters comprise: a connection threshold, an SMTP connection number per minute threshold, a recipient sending per minute threshold, and a sending flow per minute threshold that are maintained simultaneously;
the judging module is used for counting the delivery strategy parameters by the transmitting end server according to a preset time period and judging whether the delivery strategy parameters of the transmitting end server trigger the limitation of the receiving end server according to the response information of the receiving end server;
the first parameter adjusting module is used for establishing the connection between the receiving end server and the sending end server, delivering the mail to be delivered of the sending end server to the receiving end server, and adjusting the delivery strategy parameters;
the second parameter adjusting module is used for adjusting the delivery strategy parameters by the sender-side server according to the response information to obtain updated delivery strategy parameters and adding the mails to be delivered of the sender-side server into a queue to be delivered;
and the delivery module is used for delivering the mails to be delivered in the queue to be delivered to the receiving end server by the transmitting end server according to the updated delivery strategy parameters.
6. The automatic mail delivery policy adjustment apparatus of claim 5, wherein the decision module comprises:
when the SMTP connection is executed in the Nth minute, whether the SMTP connection is successful is judged according to the response information; if the connection is successful, increasing the SMTP connection number per minute threshold value by 1, and increasing the delivery connection number when the delivery is carried out for N +1 minute; if the connection fails and the connection number is judged to be excessive according to the response information to trigger the connection number limitation of the receiving server, reducing the SMTP connection number threshold value per minute by 1, and reducing the delivery connection number when delivering in N +1 minutes or automatically switching the IP used when delivering.
7. The automatic mail delivery policy adjustment apparatus of claim 5, wherein the first parameter adjustment module is specifically configured to:
and establishing the connection between the receiving end server and the transmitting end server, delivering the mail to be delivered of the transmitting end server to the receiving end server, and increasing the connection threshold value kept in the delivery strategy parameters.
8. The automatic mail delivery policy adjustment apparatus of claim 5, wherein the second parameter adjustment module is specifically configured to:
if the flow limitation is triggered, stopping delivering the mail to the receiving end server within a preset time period, and adding the mail to be delivered of the sending end server into a queue to be delivered;
if the connection number per minute limit is triggered, reducing the connection threshold value kept simultaneously in the delivery strategy parameters, and adding the mail to be delivered of the sender-side server into a queue to be delivered.
9. A computer-readable storage medium, comprising a stored computer program, wherein the computer program, when executed, controls a device in which the computer-readable storage medium is located to perform the method for automatically adjusting mail delivery policies according to any one of claims 1 to 4.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010207934.8A CN111464426B (en) | 2020-03-23 | 2020-03-23 | Method, device and storage medium for automatically adjusting mail delivery strategy |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010207934.8A CN111464426B (en) | 2020-03-23 | 2020-03-23 | Method, device and storage medium for automatically adjusting mail delivery strategy |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111464426A true CN111464426A (en) | 2020-07-28 |
CN111464426B CN111464426B (en) | 2022-04-26 |
Family
ID=71680847
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010207934.8A Active CN111464426B (en) | 2020-03-23 | 2020-03-23 | Method, device and storage medium for automatically adjusting mail delivery strategy |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111464426B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116319655A (en) * | 2023-05-16 | 2023-06-23 | 建信金融科技有限责任公司 | Mail delivery system, mail delivery method, electronic device, program product, and storage medium |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2007272607A (en) * | 2006-03-31 | 2007-10-18 | Mitsubishi Electric Information Systems Corp | Mail filtering system and mail filtering program |
CN102882786A (en) * | 2012-09-07 | 2013-01-16 | 盈世信息科技(北京)有限公司 | Intelligent delivery routing method and system |
CN103607339A (en) * | 2013-09-11 | 2014-02-26 | 北京京东尚科信息技术有限公司 | Method and system based on content automatic adjustment mail sending strategy |
CN107147556A (en) * | 2016-03-01 | 2017-09-08 | 北京国双科技有限公司 | mail data processing method and device |
US20180219823A1 (en) * | 2017-01-31 | 2018-08-02 | Microsoft Technology Licensing, Llc | Automated email categorization and rule creation for email management |
CN110535758A (en) * | 2019-10-12 | 2019-12-03 | 北京明朝万达科技股份有限公司 | A kind of email processing method and device |
-
2020
- 2020-03-23 CN CN202010207934.8A patent/CN111464426B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2007272607A (en) * | 2006-03-31 | 2007-10-18 | Mitsubishi Electric Information Systems Corp | Mail filtering system and mail filtering program |
CN102882786A (en) * | 2012-09-07 | 2013-01-16 | 盈世信息科技(北京)有限公司 | Intelligent delivery routing method and system |
CN103607339A (en) * | 2013-09-11 | 2014-02-26 | 北京京东尚科信息技术有限公司 | Method and system based on content automatic adjustment mail sending strategy |
CN107147556A (en) * | 2016-03-01 | 2017-09-08 | 北京国双科技有限公司 | mail data processing method and device |
US20180219823A1 (en) * | 2017-01-31 | 2018-08-02 | Microsoft Technology Licensing, Llc | Automated email categorization and rule creation for email management |
CN110535758A (en) * | 2019-10-12 | 2019-12-03 | 北京明朝万达科技股份有限公司 | A kind of email processing method and device |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116319655A (en) * | 2023-05-16 | 2023-06-23 | 建信金融科技有限责任公司 | Mail delivery system, mail delivery method, electronic device, program product, and storage medium |
CN116319655B (en) * | 2023-05-16 | 2023-08-08 | 建信金融科技有限责任公司 | Mail delivery system, method, electronic device, and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN111464426B (en) | 2022-04-26 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8782184B2 (en) | Method and system for adaptive delivery of digital messages | |
US20110289162A1 (en) | Method and system for adaptive delivery of digital messages | |
US7313385B2 (en) | E-mail distribution control method and mail server | |
US8171159B2 (en) | Systems and methods for adaptive communication control | |
US20020143916A1 (en) | Method and system for tracking the online status of active users of an internet-based instant messaging system | |
WO2001086472A1 (en) | Method and system for tracking the online status of active users of an internet-based instant messaging system | |
US8407304B2 (en) | Method and system for email notification | |
US7478168B2 (en) | Device, method and program for band control | |
CN108513268A (en) | The processing method and SMS platform of short message exception | |
EP2664178B1 (en) | Adaptive relative bit-rate manager for TCP depending flow control | |
WO2006014314A1 (en) | Communicating information about the character of electronic messages to a client | |
CN111314237A (en) | Method, device and equipment for adjusting data packet transmission rate and readable storage medium | |
CN111464426B (en) | Method, device and storage medium for automatically adjusting mail delivery strategy | |
CN109560897B (en) | TCP retransmission method and device | |
EP2730051B1 (en) | Network congestion control with adaptive qos bit-rate differentiation | |
WO2008078218A2 (en) | Methods for providing feedback in messaging systems | |
US6910080B2 (en) | Communication efficiency and performance in an unreliable communication environment | |
CN106453119A (en) | Authentication control method and device | |
JP2006251882A (en) | Unsolicited mail handling system, unsolicited mail handling method and program | |
JP3784703B2 (en) | Mail relay device | |
EP1936551B1 (en) | Method and system for email notification | |
EP3826421B1 (en) | Transporting radio network related information to a data center application | |
CN114124932A (en) | Method and device for improving download performance of home gateway | |
KR20060128114A (en) | Method and apparatus for transmitting an instant message | |
JP5796897B2 (en) | E-mail traffic regulation device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |