A method for filtering electronic mail

The invention relates to a method for filtering and separating the email from the switch for each item, and if the e-mail is received divided into packet by combining the packets to search for the mail item and the factor e-mail filtering. Method of filtering the e-mail in the switch according to an embodiment of the present invention comprises the steps of: receiving a packet of an e-mail; If the received packet contains e-mail address of the sender information in a predetermined step of filtering the character string of an e-mail address of the sender; If the received packet contains e-mail address information of a given receiver stage to filter string of an e-mail address of the recipient; If the received packet includes the title of the e-mail filtering a string of the subject of the electronic mail; And if it is included in the received packet, the body of the e-mail includes the step of filtering the character string of the text of the electronic mail, a string of an e-mail address of the sender, the e-mail address of the receiver strings, the electronic wherein the step of filtering the string of a string of text or the title of the e-mail messages that are searching for a certain string in the received packet; The method comprising the string if there is the character string is determined whether or not the OR filter list or a predetermined factor and the matching of the AND filter list - the OR filter list filtering the e-mail as compared to along the string and the arguments to the OR logic a list to the aND filter list is a list being for filtering the e-mail by comparing the string with the factor according to the aND logic; And characterized by including the step of blocking the session with the e-mail when the character string is matched with the factor of the OR filter list or the AND filter list. The present invention can track the status of the SMTP connection in the switch protocols improve the performance of the e-mail filtering by not searching the search of unnecessary e-mail item in the current state. E-mail, filtering, recipient, sender, subject,