Remote mailbox access gateway Software lab project.

Slides:



Advertisements
Similar presentations
Basic Communication on the Internet:
Advertisements

XP Browser and Basics1. XP Browser and Basics2 Learn about Web browser software and Web pages The Web is a collection of files that reside.
Web Servers How do our requests for resources on the Internet get handled? Can they be located anywhere? Global?
TCP/IP Protocol Suite 1 Chapter 20 Upon completion you will be able to: Electronic Mail: SMTP, POP, and IMAP Understand four configurations of architecture.
Exchange server Mail system Four components Mail user agent (MUA) to read and compose mail Mail transport agent (MTA) route messages Delivery agent.
Chapter 2: Application layer  2.1 Web and HTTP  2.2 FTP 2-1 Lecture 5 Application Layer.
COS/PSA 413 Day 17. Agenda Lab 8 write-up grades –3 B’s, 1 C and 1 F –Answer the Questions!!! Capstone progress report 2 overdue Today we will be discussing.
Implementing Application Protocols. Overview An application protocol facilitates communication between applications. For example, an client uses.
Technion – Israel Institute of Technology Department of Electrical Engineering Software Lab Remote Mailbox based on.NET technology Michael and Eugene Shamis.
Browser and Basics Tutorial 1. Learn about Web browser software and Web pages The Web is a collection of files that reside on computers, called.
SNMP & MIME Rizwan Rehman, CCS, DU. Basic tasks that fall under this category are: What is Network Management? Fault Management Dealing with problems.
Chapter 30 Electronic Mail Representation & Transfer
Esimerkki: Sähköposti. Lappeenranta University of Technology / JP, PH, AH Electronic Mail Three major components: user agents mail servers simple mail.
Lesson 19 Internet Basics.
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public 1 Version 4.0 Application Layer Functionality and Protocols Network Fundamentals – Chapter.
-I CS-3505 Wb_ -I.ppt. 4 The most useful feature of the internet 4 Lots of different programs, but most of them can talk to each.
Web Design Terms and Concepts Ms. Scales. Q. What is a Server? A. A server is a computer that stores information many people can access. It runs special.
Boris Tshibangu. What is a proxy server? A proxy server is a server (a computer system or an application) that acts as an intermediary for requests from.
» Explain the way that electronic mail ( ) works » Configure an client » Identify message components » Create and send messages.
1 What is Electronic Mail Exchanging information via computer networks Electronic mail addresses SMTP (Simple Mail Transfer Protocol) Client/Server based.
INTRODUCTION TO WEB DATABASE PROGRAMMING
Computer Concepts 2014 Chapter 7 The Web and .
SMTP, POP3, IMAP.
1 Application Layer Lecture 5 Imran Ahmed University of Management & Technology.
Data Communications and Computer Networks Chapter 2 CS 3830 Lecture 9
1 Computer Communication & Networks Lecture 27 Application Layer: Electronic mail and FTP Waleed.
Fall 2005 By: H. Veisi Computer networks course Olum-fonoon Babol Chapter 7 The Application Layer.
Computer Networking From LANs to WANs: Hardware, Software, and Security Chapter 12 Electronic Mail.
Electronic Mail Originally –Memo sent from one user to another Now –Memo sent to one or more mailboxes Mailbox –Destination point for messages.
Syllabus outcomes Describes and applies problem-solving processes when creating solutions Designs, produces and evaluates appropriate solutions.
A form of communication in which electronic messages are created and transferred between two or more devices connected to a network.
26.1 Chapter 26 Remote Logging, Electronic Mail, and File Transfer Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or.
Computer Networks26-1 Chapter 26. Remote Logging, Electronic Mail and File Transfer.
WXET1143 Lecture7: , Chat and Messaging. Introduction  Electronic mail is everywhere.  Now many people in business, government, and education use.
Some Data Comm. Standards
1 Using Messages sent from machine to machine and stored for later reading. You will use a client to read –Type mail or pine in UNIX to read.
LOGO Server. Contents Introduction 1 Problem Definition 2 Proposed Solution 3 Architecture Diagram 4 Server Technology 5 Hardware and Software.
Chapter 1: The Internet and the WWW CIS 275—Web Application Development for Business I.
The Internet 8th Edition Tutorial 2 Basic Communication on the Internet: .
Electronic Mail. Client Software and Mail Hosts –Client PC has client software that communicates with user’s mail host –Mail hosts deliver.
Web Programming : Building Internet Applications Chris Bates CSE :
What is and How Does it Work?  Electronic mail ( ) is the most popular use of the Internet. It is a fast and inexpensive way of sending messages.
The Internet The internet is simply a worldwide computer network that uses standardised communication protocols to transmit and exchange data.
Internet Protocol B Bhupendra Ratha, Lecturer School of Library and Information Science Devi Ahilya University, Indore
Application Layer Khondaker Abdullah-Al-Mamun Lecturer, CSE Instructor, CNAP AUST.
Concepts  messages are passed through the internet by using a protocol called simple mail transfer protocol.  The incoming messages are.
NETWORK HARDWARE AND SOFTWARE MR ROSS UNIT 3 IT APPLICATIONS.
June 1, 1999Using Electronic Mail1 Introduction to UNIX I.Using Electronic Mail.
World Wide Web “WWW”, "Web" or "W3". World Wide Web “WWW”, "Web" or "W3"
CS 3830 Day 9 Introduction 1-1. Announcements r Quiz #2 this Friday r Demo prog1 and prog2 together starting this Wednesday 2: Application Layer 2.
SMTP / MIME Florin Zidaru.
XP New Perspectives on The Internet, Sixth Edition— Comprehensive Tutorial 2 1 Evaluating an Program and a Web-Based Service Basic Communication.
XP Browser and Basics COM111 Introduction to Computer Applications.
NetTech Solutions Microsoft Outlook and Outlook Express Lesson Four.
INTERNET PROTOCOLS. Microsoft’s Internet Information Server Home Page Figure IT2031 UNIT-3.
  is a system of electronic communication that allows the user to exchange messages over the internet  Everyone’s address is unique  Two.
Newsgroup World Wide Web (WWW) Conservation Over the Internet e.g.ICQ File Transfer Protocol (FTP) Includes 6 main services: Electronic Mail Remote.
A Quick Look At How Works Understanding the basics of how works can make life a lot easier for any user. Especially those who are interested.
PEMBINA TRAILS Portal System User Guide Prepared by: Jo-Anne Gibson Acadia Junior High Teacher-Librarian.
1 Kyung Hee University Chapter 22 Simple Mail Transfer Protocol (SMTP)
Dr. Adil Yousif University of Alneelian – Master of CS - IT Electronic Mail.
– Protocols 21 – Protocols 21. – Protocols 21 Now we’ll move on to more technical aspects of This means protocols Remember.
Spring 2006 CPE : Application Layer_ 1 Special Topics in Computer Engineering Application layer: Some of these Slides are Based on Slides.
1 Chapter 1 INTRODUCTION TO WEB. 2 Objectives In this chapter, you will: Become familiar with the architecture of the World Wide Web Learn about communication.
Networking Applications
Remote Logging, Electronic Mail, and File Transfer
Internet Business Associate v2.0
Data Communications and Computer Networks Chapter 2 CS 3830 Lecture 9
Some bits on how it works
The Internet and Electronic mail
Presentation transcript:

Remote mailbox access gateway Software lab project

Introduction In our days is one of the most popular ways of communication. In our days is one of the most popular ways of communication. There are thousands of service providers over the world and millions of e- mail users. And the numbers are constantly growing. Such a popularity encourages development of a large variety of clients. There are thousands of service providers over the world and millions of e- mail users. And the numbers are constantly growing. Such a popularity encourages development of a large variety of clients. Today two main approaches for accessing accounts by users are in use. Let’s take a look at them: Today two main approaches for accessing accounts by users are in use. Let’s take a look at them:

The classical approach This is the most straight-forward approach. The server is a pure POP3/SMTP server and in order to communicate with it the user needs some special client software (MS Outlook, The Bat, Mozilla, etc.) This is the most straight-forward approach. The server is a pure POP3/SMTP server and in order to communicate with it the user needs some special client software (MS Outlook, The Bat, Mozilla, etc.) POP3/SMTP Client computer Server POP3 / SMTP Client software

The classical approach cont. In a case, when the user reads his mail from only one, secure computer (at home or at work), this approach is the best one, but... In a case, when the user reads his mail from only one, secure computer (at home or at work), this approach is the best one, but...

The classical approach problem Problem appears when the user want to read his mail when he is away from his own computer, but has access to a public computer: Problem appears when the user want to read his mail when he is away from his own computer, but has access to a public computer: Using the mail client software on such computers may be unsafe for the user’s privacy (account information is saved on the computer).Using the mail client software on such computers may be unsafe for the user’s privacy (account information is saved on the computer). User may have to set up a lot of settings before he can actually read his mail.User may have to set up a lot of settings before he can actually read his mail.

The HTTP-Mail approach The partial solution to the public computers problem, is provided by some services by adding to their server some web interface, that can be accessed using only the web browser, installed on every internet-connected computer. The partial solution to the public computers problem, is provided by some services by adding to their server some web interface, that can be accessed using only the web browser, installed on every internet-connected computer. Client computer Server HTTP Web Browser

The HTTP-Mail approach cont. Advantages of such approach: Advantages of such approach: No need for user to save any account information on the public computer.No need for user to save any account information on the public computer. User should only navigate to the mail service web page, login and read his mail.User should only navigate to the mail service web page, login and read his mail. User gets friendly user interface that can be easily changed and upgraded by the developersUser gets friendly user interface that can be easily changed and upgraded by the developers

The HTTP-Mail approach problem The solution is good, but it’s implemented only by few mail providers (The classic examples are Hotmail, Yahoo etc..). The solution is good, but it’s implemented only by few mail providers (The classic examples are Hotmail, Yahoo etc..). But… What to do when the user has a mail account from some other providers, who does not have web interface ? But… What to do when the user has a mail account from some other providers, who does not have web interface ?

The proposed solution The proposed solution is some kind of mix between the previous approaches it is achieved by the following ideas: The proposed solution is some kind of mix between the previous approaches it is achieved by the following ideas: Place between the server and the client computer some kind of gateway, capable of communicating with the mail server via POP3/SMTP protocols, and with the client computer, by building a web interface for the mailbox. Place between the server and the client computer some kind of gateway, capable of communicating with the mail server via POP3/SMTP protocols, and with the client computer, by building a web interface for the mailbox.POP3/SMTP Client computer Server HTTP Web Browser POP3 / SMTP HTTPHTTP  POP3/SMTP Gateway POP3/SMTP Web Interface Client

The proposed solution cont. This way we get a lot of benefits: This way we get a lot of benefits: The server does not have to implement any web interface( classical approach benefit)The server does not have to implement any web interface( classical approach benefit) Easy way to check multiply mail accounts( classical approach benefit )Easy way to check multiply mail accounts( classical approach benefit ) The client needs only the web browser to access his mailbox, can access remotely to his account with no need to save any account info on the computer he uses( HTTP mail approach benefit )The client needs only the web browser to access his mailbox, can access remotely to his account with no need to save any account info on the computer he uses( HTTP mail approach benefit )

The basic structure of the gateway Reading mail: Reading mail: POP3 client – module, capable of connecting and exchanging data with POP3 server. MIME parser – module for decoding and translating to readable form of the data received from the mail server (decoding messages, extracting attached files, etc.) MIME MIME parser POP3 POP3 Client SMTP SMTP Client Mail Composer Web Interface Reading mail Sending mail To mail server To client

The basic structure of the gateway cont. Sending mail: Sending mail: Mail composer – interface, enabling the user to create, edit and send messages (Writing from scratch, replying, forwarding and attaching files).Mail composer – interface, enabling the user to create, edit and send messages (Writing from scratch, replying, forwarding and attaching files). SMTP Client – module, capable of communicating with the SMTP server (mainly – for sending the composed message)SMTP Client – module, capable of communicating with the SMTP server (mainly – for sending the composed message) The Web Interface – the application- generated web pages, that the user sees in his browser. The Web Interface – the application- generated web pages, that the user sees in his browser.

Tools and technologies used The project implemented using ASP.NET technology. The project implemented using ASP.NET technology. Programming language used is C#.NET Programming language used is C#.NET The application can be hosted on Microsoft IIS web server, running on MS Windows 2000/XP/2003 server. The application can be hosted on Microsoft IIS web server, running on MS Windows 2000/XP/2003 server. The application uses SQL database server to host saved user account information (for some additional features, like an address book, mail server list per user, etc.) The application uses SQL database server to host saved user account information (for some additional features, like an address book, mail server list per user, etc.)

Challenges we met Learning new technology and programming language Learning new technology and programming language Learning and implementing POP3 client (there is no built-in POP3 support in.NET Framework. Learning and implementing POP3 client (there is no built-in POP3 support in.NET Framework.POP3 Logging on/off the mail serverLogging on/off the mail server Retrieving the list of messagesRetrieving the list of messages Retrieving the wanted message from the serverRetrieving the wanted message from the server Deleting messagesDeleting messages

Challenges we met cont. Learning and implementing rfc822/MIME (standards and specifications for internet mail message format) parser. Learning and implementing rfc822/MIME (standards and specifications for internet mail message format) parser. rfc822/MIME

Challenges we met cont. Headers parsingHeaders parsing Parse the message headers and extract all required information about the message Parse the message headers and extract all required information about the message

Challenges we met cont. Decoding the message bodyDecoding the message body Identifying different message parts Identifying different message parts Decoding the data, if encoded: Decoding the data, if encoded: From “Quoted-printable” encodingFrom “Quoted-printable” encoding From “Base64” encodingFrom “Base64” encoding

Challenges we met cont. Multiply languages handlingMultiply languages handling Recognition of the message language Recognition of the message language Representing the message with correct characters set Representing the message with correct characters set

Challenges we met cont. Attached files extractionAttached files extraction Identifying the attachments within the message body Identifying the attachments within the message body Extracting and decoding the attachment Extracting and decoding the attachment

Appendix A: Block diagram of the application POP3 Client Message parser User Interface (Response Sent to user) Downloaded message Parsed and processed message Message list POP3 commands Main ASP.NET Application Composed message to send SMTP client User accounts database To POP3 server To SMTP server

Appendix B: Glossary POP3 – Post Office Protocol, version 3 – the main protocol, used to allow a workstation (client) to retrieve mail that the server is holding for it. POP3 – Post Office Protocol, version 3 – the main protocol, used to allow a workstation (client) to retrieve mail that the server is holding for it. SMTP – Simple Mail Transfer Protocol – the main protocol for transfer and relay across transport service environments SMTP – Simple Mail Transfer Protocol – the main protocol for transfer and relay across transport service environments HTTP – Hypertext Transfer Protocol – the main WWW protocol, used, mainly, for transferring the web content in a form of web pages. HTTP – Hypertext Transfer Protocol – the main WWW protocol, used, mainly, for transferring the web content in a form of web pages. MIME – Multipurpose Internet Mail Extensions – a set of standards, used for internet message formatting. MIME – Multipurpose Internet Mail Extensions – a set of standards, used for internet message formatting. RFC – “Request for comments” – a document, describing standards and specifications for some format, technology, etc.. RFC – “Request for comments” – a document, describing standards and specifications for some format, technology, etc..