16
Spam Filter Spam Filter Guided by Guided by Laya Simpson Laya Simpson Submitted by Submitted by Anand Shekhar Anand Shekhar Ashish Ranjan Ashish Ranjan Bhuneshwar Prasad Bhuneshwar Prasad Md Nasim Alam Md Nasim Alam

Spam Filter

Embed Size (px)

DESCRIPTION

A major project on Spam filter using java done by Anand Shekhar and his teams

Citation preview

Page 1: Spam Filter

Spam FilterSpam Filter

Guided byGuided by

Laya SimpsonLaya Simpson

Submitted bySubmitted by

Anand ShekharAnand Shekhar

Ashish RanjanAshish Ranjan

Bhuneshwar PrasadBhuneshwar Prasad

Md Nasim AlamMd Nasim Alam

Page 2: Spam Filter

ContentContentIntroductionIntroduction

ProtocolsProtocols

Software RequirementSoftware Requirement

General Block DiagramGeneral Block Diagram

Context DiagramContext Diagram

ScreenshotScreenshot

Work DoneWork Done

Work RemainingWork Remaining

Page 3: Spam Filter

IntroductionIntroduction

Spam is an unsolicited (or junk) email. Spam is flooding the Internet Spam is an unsolicited (or junk) email. Spam is flooding the Internet with many copies of the same message, in an attempt to force the with many copies of the same message, in an attempt to force the message on people who would not otherwise choose to receive itmessage on people who would not otherwise choose to receive it

In this project the spam messages are identified and move to a In this project the spam messages are identified and move to a specified location specified location

If a sender sends same messages on same day it will be considered If a sender sends same messages on same day it will be considered as spam. If a message exceeds a certain size, it will also be as spam. If a message exceeds a certain size, it will also be considered as a spam considered as a spam

Some pre-specified keywords are checked. If these words are Some pre-specified keywords are checked. If these words are present in the mail the mail is considered as spampresent in the mail the mail is considered as spam

In this project we are using JavaMail and SMTP, POP, IMAP In this project we are using JavaMail and SMTP, POP, IMAP protocols for mail forwarding protocols for mail forwarding

Page 4: Spam Filter

ProtocolProtocol

SMTPSMTP

The The SSimple imple MMail ail TTransfer ransfer PProtocol (SMTP) is the mechanism for delivery of rotocol (SMTP) is the mechanism for delivery of email. In the context of the JavaMail API, the JavaMail-based program email. In the context of the JavaMail API, the JavaMail-based program will communicate with the company or Internet Service Provider's (ISP's) will communicate with the company or Internet Service Provider's (ISP's) SMTP server. That SMTP server will relay the message on to the SMTP SMTP server. That SMTP server will relay the message on to the SMTP server of the recipient(s) to eventually be acquired by the user(s) through server of the recipient(s) to eventually be acquired by the user(s) through POP or IMAP. This does not require the SMTP server to be an open relay, POP or IMAP. This does not require the SMTP server to be an open relay, as authentication is supported, but it should be ensured that the SMTP as authentication is supported, but it should be ensured that the SMTP server is configured properly. server is configured properly.

Page 5: Spam Filter

POPPOP

POP stands for POP stands for PPost ost OOffice ffice PProtocol. POP is the mechanism most rotocol. POP is the mechanism most people on the Internet use to get their mail. It defines support for a people on the Internet use to get their mail. It defines support for a single mailbox for each user The Post Office Protocol defines how single mailbox for each user The Post Office Protocol defines how the email client should talk to the POP server.the email client should talk to the POP server.POP can perform the following functions: POP can perform the following functions:

Retrieve mail from an ISP and delete it on the server. Retrieve mail from an ISP and delete it on the server.

Retrieve mail from an ISP but not delete it on the server. Retrieve mail from an ISP but not delete it on the server.

Ask whether new mail has arrived but not retrieve it. Ask whether new mail has arrived but not retrieve it.

Peek at a few lines of a message to see whether it is worth retrievingPeek at a few lines of a message to see whether it is worth retrieving. .

Page 6: Spam Filter

IMAPIMAP

IMAP is a more advanced protocol for receiving messages. IMAP stands IMAP is a more advanced protocol for receiving messages. IMAP stands for for IInternet nternet MMessage essage AAccess ccess PProtocol. It permits a "client" email program rotocol. It permits a "client" email program to access remote message stores as if they were local.to access remote message stores as if they were local.Key features of IMAP include:Key features of IMAP include:

It is fully compatible with Internet messaging standards, e.g. MIME.It is fully compatible with Internet messaging standards, e.g. MIME.

It allows message access and management from more than one computer.It allows message access and management from more than one computer.

It allows access without reliance on less efficient file access protocols.It allows access without reliance on less efficient file access protocols.

It provides support for "online", "offline", and "disconnected" access modes.It provides support for "online", "offline", and "disconnected" access modes.

It supports concurrent access to shared mailboxesIt supports concurrent access to shared mailboxes

Client software needs no knowledge about the server's file store formatClient software needs no knowledge about the server's file store format..

Page 7: Spam Filter

SoftwareSoftware requirementsrequirements

Platform : Linux

Language Used : J2EE

Back End : MySql

Technologies Used : JSP, JavaMailDesigner

Tool : HTML

Server : J2EE Application Server, SMTP

Page 8: Spam Filter

Email Clientsuch as Mozilla

Firefox

simplified SMTP

How an Email message How an Email message is Transmittedis Transmitted

Sender

SMTPMailserveror

Mail Transfer Agent

Sender’s ISP

Recipient’s ISP

Recipient

IMAP

Mailserveror

Mail Transfer Agent

Email Clientsuch as Mozilla

Firefox

Page 9: Spam Filter

SPAMSPAMCONTROLCONTROLSYSTEMSYSTEM

SPAMSPAMCONTROLCONTROLSYSTEMSYSTEM

SENDERSENDERSENDERSENDER

RECEIVERRECEIVERRECEIVERRECEIVERSPAM DATABASESPAM DATABASESPAM DATABASESPAM DATABASE

E-MAILE-MAIL

SPAM SPAM MATCHMATCH SPAMSPAM

Context DiagramContext Diagram

QUALIFIED E-MAILQUALIFIED E-MAIL

Page 10: Spam Filter

ScreenshotsScreenshots

Page 11: Spam Filter

LoginLogin PagePage

Page 12: Spam Filter

ComposeCompose MailMail

Page 13: Spam Filter

InboxInbox

Page 14: Spam Filter

Completed workCompleted workDesign of static pages is almost completed. We have designed :Design of static pages is almost completed. We have designed :

1.1.Login pageLogin page

2.2.Inbox page Inbox page

3.3.Compose pageCompose page

4.4.Spam pageSpam page

5.5.Allmail page Allmail page

6.6.Contact pageContact page

Validation of username and passwordValidation of username and password

Page 15: Spam Filter

Remaining work Remaining work We have to provide feature to add a new contact in the contact listWe have to provide feature to add a new contact in the contact list

Connection of Apache JavaMail server Connection of Apache JavaMail server

Coding forCoding for1.1. Send mailSend mail

2.2. Spam checkingSpam checking

3.3. Mail DeleteMail Delete

4.4. Read mailRead mail

5.5. Compose mail with attachment of filesCompose mail with attachment of files

6.6. Contact AddressContact Address

Page 16: Spam Filter

Thank YouThank You