Specific embodiment
Fig. 1 is the flow chart of the mail distribution method shown in an exemplary embodiment of the invention.
As shown in Figure 1, mail distribution method provided in this embodiment, comprising:
Step 101, sender's mail server receives the Email that user terminal is sent.
Wherein, user terminal includes the electronic equipment that mobile phone, computer, ipad etc. can network, user can by webpage orThe modes such as client send mail.During sending mail, mail is first by the mail server where sender's mailboxIt receives.For example, the mailbox that sender user uses is 263 mailboxes, then mail is sent to the mail service of 263 mailboxes firstDevice.
Specifically, sender's mail server may include multiple servers, for example, processing is sent when as senderMail reception server, the outgoing mail server of mail, when as recipient, processing receives the reception server of mail, hairServer is sent, the server specifically for executing step 101 is preferably to handle the reception server for sending mail.
Step 102, the attribute of Email is judged, determines the attribute of Email.
Further, the attribute of Email can be whether Email is advertisement matter, Email is big mailOr whether small mail, Email are many attributes such as important email, mail server belonging to email recipient.
Preferably, if the attribute of Email is whether Email is advertisement matter, anti-rubbish mail mistake can be usedFilter system is screened;If the attribute of Email is that Email is big mail or small mail, one can be presetThe numerical value of mail size obtains the size of mail as the condition for distinguishing big mail and small mail, then judge big mail orSmall mail;If whether it is important email that the attribute of Email is, the mark that mail can be carried out by obtaining user, reallyThe significance level of the fixed mail;If the attribute of Email is mail server belonging to recipient, according to the postal of recipientCase address determines the mail server belonging to it.
Step 103, according to the attribute of Email, by email distribution to corresponding with the attribute of Email pointIt sends out in server, so that Email is delivered to recipient's mail server by the distribution server.
Wherein, the distribution server is the server for being sent out mail.For example, the mailbox that sender uses is 263Mailbox, the mailbox that recipient uses are other mailboxes.Then receive what sender issued by the server that receives that processing sends mailMail, further according to mail attribute by the mail distribution into corresponding the distribution server, reception is sent to by the distribution serverSide.
Specifically, the distribution server may include if the attribute of Email is whether Email is advertisement matterAdvertisement matter server, not spam server;If it is big mail or small mail that the attribute of Email, which is Email,Then the distribution server may include big mail server, small mail server, it is preferred that configuration can be used in big mail serverHigher server;If whether it is important email that the attribute of Email is, the distribution server may include important email clothesBusiness device and surface mail server;If the attribute of Email is mail server belonging to recipient, can be by recipientThe distribution server corresponding with classification is arranged in affiliated classification server accordingly, such as first kind recipient's server corresponds toFirst kind the distribution server.
Mail distribution method provided in this embodiment receives the electricity that user terminal is sent by sender's mail server firstSub- mail, then the attribute of Email is judged to what is received, so that it is determined that the attribute of Email, then according to electricityThe attribute of sub- mail is serviced by email distribution into the distribution server corresponding with the attribute of Email by distributionMail is sent to recipient by device.Wherein, attribute information can be the classes such as advertisement matter, not spam, big mail, small mailAs information, whether be advertisement matter by distinguishing, then pass through advertisement matter and not spam corresponding the distribution server hairThe mail is given, the mail that not spam server can be made to send is normal email, so that the server be avoided to be added intoBlacklist, the effect that send the mail sent by the server can in time.By distinguish mail be big mail alsoIt is small mail, and send the Email using corresponding the distribution server, can be improved transmitting efficiency, certified mail is timelyIt sends.
Fig. 2 is the flow chart of the mail distribution method shown in another exemplary embodiment of the present invention.
As shown in Fig. 2, mail distribution method provided in this embodiment, comprising:
Step 201, sender's mail server receives the Email that user terminal is sent.
Step 202, judge whether Email is advertisement matter according to the content of Email.
Wherein it is possible to default advertisement keyword, if the content in Email includes multiple preset advertisement keywords,Judge the Email then for advertisement matter, otherwise judges the Email for not spam.For example, presetting 100 advertisementsKeyword judges the Email for advertisement postal if in Email including 10 or 10 or more advertisement keywordsPart.
Furthermore it is also possible to arrange filter against spam system, screen whether Email is wide by the filtration systemAccuse mail.
According to judging result, not spam is distributed in non-ad distribution server, advertisement matter is distributed to extensivelyIt accuses in the distribution server.
It preferably, can also include illegal mail when judging email attributes, i.e. the type of Email is divided into extensivelyAccuse mail, not spam, illegal mail.By presetting illegal keyword, if including that part is pre- in Email contentIf illegal keyword, then judge the Email for illegal mail.Illegal mail refers mainly to be related to violence, anti-government etc. illegallyThe Email of information is propagated, the Email for illegal mail, is refused to distribute the Email if judging.
The present embodiment sends advertisement matter by specially sending the ad distribution server of advertisement matter, by specially sendingThe non-ad distribution server of not spam sends not spam.Since non-ad distribution server does not send advertisement postalAlso blacklist would not be added by other side's server, so as to effective solution since the IP address of server is added into partBlacklist, the technical issues of causing not spam not sent in time.
In order to guarantee that not spam can be sent in time, mail distribution method provided in this embodiment, in step 202Later further include:
Step 203, the size of not spam is obtained.
Step 204, according to the size of not spam, not spam is distributed to opposite with the size of not spamIn the sub- the distribution server answered.
Wherein, non-ad distribution server is divided into multiple sub- the distribution servers according to mail size.Specifically, according toNon- ad distribution server is divided into multiple grades by the size of mail.For example, 5 non-advertisement distribution services can be setDevice, and 5 ranks are divided into, it is respectively used to send 1-5 grades of not spam.After the size for obtaining not spam, judgementNot spam belongs to the not spam of which rank, then by the mail distribution to sub- distribution service corresponding with the rankIn device.
Specifically, the higher server of configuration, which can be used, sends big mail, big mail is enable to be sent in time, it will notBecause server operation problem causes mail not sent or be lost in time.The server generally configured can also be used to sendSmall mail reduces equipment cost under the premise of server can complete transmission task.
In order to make ad distribution server be unlikely to all to be added into blacklist, the present embodiment further include:
Step 205, according to the content of advertisement matter, the probability that advertisement matter is rejected is determined.
Wherein, the probability that advertisement matter is rejected is because of the mail, and IP address is added into the probability of blacklist.
The content in advertisement matter is obtained, is compared with preset advertisement keyword, determines the accounting of advertisement keyword, i.e., extensivelyThe number of words and alpha-numeric ratio entirely for accusing keyword, further according to the ratio.For example, accounting can be divided into > 50%, 30-50%,The several ranks of 20-30%, 10-20%, 0-10%.Specifically, the probability that advertisement matter is rejected can be identical as above-mentioned accounting,It can also be calculated with other other factors.For example, in conjunction with advertisement matter content and send the email address of the mailCredit grade determines the probability that the mail is rejected.
Step 206, the probability being rejected according to advertisement matter, advertisement matter is distributed to be rejected with advertisement matter it is generalIn the corresponding sub- ad distribution server of rate.
Wherein, the probability that ad distribution server can be rejected according to advertisement matter is divided into multiple sub- ad distribution clothesBusiness device.For example, the probability that is rejected for determining advertisement matter is 30%, then being distributed to the advertisement matter includes to be rejected probability to beIn 30% sub- ad distribution server.
The present embodiment is by being further classified ad distribution server, by advertisement matter according to the grade for being rejected probabilityDifferent child servers are distributed to, can reduce and be rejected the probability that the low sub- Advertisement Server of probability is added into blacklist.
Mail distribution method provided in this embodiment receives the electricity that user terminal is sent by sender's mail server firstSub- mail, then judge the attribute of Email what is received determines that Email be advertisement matter is also non-advertisementMail.For advertisement matter, its probability being rejected further is judged, and be distributed to and be somebody's turn to do according to the probability being rejectedThe corresponding sub- ad distribution server of probability, can reduce to send and be rejected the server of the low mail of probability and be added into blacklistProbability.For not spam, its size is further judged, and be distributed to and the mail size phase according to mail sizeCorresponding sub- the distribution server, to improve the transmitting efficiency of not spam.
Fig. 3 is the flow chart of the mail distribution method shown in another exemplary embodiment of the present invention.
As shown in figure 3, mail distribution method provided in this embodiment, comprising:
Step 301, sender's mail server receives the Email that user terminal is sent.
Wherein, received Email has identification information, includes the importance rate letter of the mail in identification informationBreath.
Step 302, according to the identification information of Email, the importance information of Email is determined.
Step 303, if the importance information of Email is common grade, email distribution to common grade is distributedIn server;If the importance information of Email is severity level, by email distribution to severity level the distribution serverIn.
Wherein, severity level the distribution server may include the important the distribution server of multiple ranks, for sending differenceThe Email of severity level.
Specifically, encryption system can be set in severity level the distribution server, to guarantee the Email of severity level notIt can be stolen.
In network congestion, the preferential Email sent in severity level the distribution server, to make important electronicsMail can be sent in time.
In addition, it is necessary to which explanation, scheme provided in this embodiment can be used in combination with above-described embodiment 1 or 2.
Fig. 4 is the structure chart of the mail service device shown in an exemplary embodiment of the invention.
As shown in figure 4, mail service device provided in this embodiment includes:
Receiving module 401, for receiving the Email of user terminal transmission.
Determining module 402 judges for the attribute to Email, determines the attribute of Email.
Distribution module 403, for the attribute according to Email, by email distribution to the attribute phase with EmailIn corresponding the distribution server, so that Email is delivered to recipient's mail server by the distribution server.
Wherein, receiving module 401, determining module 402, distribution module 403 are sequentially connected.
The concrete principle and implementation of mail service device provided in this embodiment with embodiment class shown in FIG. 1Seemingly, details are not described herein again.
Mail service device provided in this embodiment receives what user terminal was sent by sender's mail server firstEmail, then the attribute of Email is judged to what is received, so that it is determined that the attribute of Email, then basisThe attribute of Email is taken by email distribution into the distribution server corresponding with the attribute of Email by distributionMail is sent to recipient by business device.Wherein, attribute information can be advertisement matter, not spam, big mail, small mail etc.Whether similar information is advertisement matter by distinguishing, then passes through advertisement matter and the corresponding the distribution server of not spamThe mail is sent, the mail that not spam server can be made to send is normal email, so that the server be avoided to be addedEnter blacklist, the effect that send the mail sent by the server can in time.It is big mail by distinguishing mailOr small mail, and send the Email using corresponding the distribution server, can be improved transmitting efficiency, certified mail by andWhen send.
Fig. 5 is the structure chart of the mail service device shown in another exemplary embodiment of the present invention.
As shown in figure 5, mail service device provided in this embodiment, on the basis of embodiment shown in Fig. 4, determineModule 402 includes:
Judging unit 4021 judges whether the Email is advertisement matter for the content according to Email;
Correspondingly, the distribution module 403 includes:
Non- ad distribution unit 4031, for not spam to be distributed in non-ad distribution server, ad distributionUnit 4032, for advertisement matter to be distributed in ad distribution server.
Wherein, the non-ad distribution server is divided into multiple sub- the distribution servers according to mail size.
Determining module 402 further include:
Acquiring unit 4022, for obtaining the size of the not spam;
Correspondingly, the distribution module 403 includes: the first Dispatching Unit 4033, for according to the not spamThe not spam is distributed in sub- the distribution server corresponding with the size of the not spam by size.
In addition, the ad distribution server is divided into multiple sub- ad distribution services according to the probability that mail is rejectedDevice.
The determining module 402 is also used to the content according to the advertisement matter, determines what the advertisement matter was rejectedProbability;
Correspondingly, the distribution module 403 includes: the second Dispatching Unit 4034, for being refused according to the advertisement matterThe probability of receipts, by the corresponding sub- ad distribution service of the advertisement matter is distributed to the advertisement matter is rejected probabilityIn device.
Preferably, the determining module 402 is also used to the identification information according to the Email, determines the electronics postalThe importance information of part;
Correspondingly, the distribution module 403 includes: third Dispatching Unit 4035, it is used for:
If the importance information of the Email is common grade, by the email distribution to common grade pointIt sends out in server;
If the importance information of the Email is severity level, by the email distribution to severity level pointIt sends out in server.
The concrete principle and implementation of mail service device provided in this embodiment with Fig. 2 and reality shown in Fig. 3It is similar to apply example, details are not described herein again.
Mail service device provided in this embodiment receives what user terminal was sent by sender's mail server firstEmail, then judge the attribute of Email what is received determines that Email be advertisement matter is also non-wideAccuse mail.For advertisement matter, further judge its probability being rejected, and according to the probability being rejected be distributed toThe corresponding sub- ad distribution server of the probability, can reduce to send and be rejected the server of the low mail of probability and be added into black nameSingle probability.For not spam, its size is further judged, and be distributed to and the mail size according to mail sizeCorresponding sub- the distribution server, to improve the transmitting efficiency of not spam.
Those of ordinary skill in the art will appreciate that: realize that all or part of the steps of above-mentioned each method embodiment can lead toThe relevant hardware of program instruction is crossed to complete.Program above-mentioned can be stored in a computer readable storage medium.The journeyWhen being executed, execution includes the steps that above-mentioned each method embodiment to sequence;And storage medium above-mentioned include: ROM, RAM, magnetic disk orThe various media that can store program code such as person's CD.
Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention., rather than its limitations;To the greatest extentPipe present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that: its according toSo be possible to modify the technical solutions described in the foregoing embodiments, or to some or all of the technical features intoRow equivalent replacement;And these are modified or replaceed, various embodiments of the present invention technology that it does not separate the essence of the corresponding technical solutionThe range of scheme.