Electronic Mail

Similar documents
Electronic Mail. Prof. Indranil Sen Gupta. Professor, Dept. of Computer Science & Engineering Indian Institute of Technology Kharagpur

Electronic Mail Paradigm

Electronic Mail. Electronic Mailboxes

Applications & Application-Layer Protocols: FTP and (SMTP & POP)

The Application Layer: & SMTP

is still the most used Internet app. According to some studies around 85% of Internet users still use for communication.

CS 43: Computer Networks. 12: and SMTP September 28, 2018

System: Basic Functionality

Simple Network Management Protocol (SNMP)

Lecture 6: Application Layer Web proxies, , and SMTP

Electronic Mail (SMTP)

CSCE 813 Internet Security Secure Services I

Simple Network Management Protocol (SNMP)

Application: Electronic Mail

The Application Layer: SMTP, FTP

CSC 4900 Computer Networks:

Chapter 2 Application Layer

Computer Networks. More on Standards & Protocols Quality of Service. Week 10. College of Information Science and Engineering Ritsumeikan University

Internet and Intranet Protocols and Applications

CSCE 463/612 Networks and Distributed Processing Spring 2018

Internet Technology. 03r. Application layer protocols: . Paul Krzyzanowski. Rutgers University. Spring 2016

Network Applications Electronic Mail

Internet Architecture

FTP. FTP offers many facilities :

INTERNET & WORLD WIDE WEB (UNIT-1) MECHANISM OF INTERNET

How Internet Works

WWW: the http protocol

Networking Revision. TCP/IP Protocol Stack & OSI reference model. Basic Protocols. TCP/IP Model ANTHONY KAO NETWORKING FINAL EXAM SPRING 2014 REVISION

Lecture 7 Application Layer. Antonio Cianfrani DIET Department Networking Group netlab.uniroma1.it

Computer Network 1 1

SMTP. George Porter CSE 124 February 12, 2015

CISNTWK-492e. Microsoft Exchange Server 2003 Administration. Chapter Eight Managing Routing and Internet Connectivity

Network Working Group Request for Comments: 1844 Obsoletes: 1820 August 1995 Category: Informational

Header- A Forensic Key to Examine an

APPLICATION LAYER APPLICATION LAYER : DNS, HTTP, , SMTP, Telnet, FTP, Security-PGP-SSH.

Chapter 20 SMTP. Slides from TCP/IP - Forouzan. User Agent (UA) Addressing Delayed Delivery Aliases Mail Transfer Agent (MTA) MIME POP.

Motivation For Networking. Information access Interaction among cooperative application programs Resource sharing

CSC 401 Data and Computer Communications Networks

FTP. Mail. File Transfer Protocol (FTP) FTP commands, responses. Electronic Mail. TDTS06: Computer Networks

CS 3516: Computer Networks

Networking. Layered Model. DoD Model. Application Layer. ISO/OSI Model

Objectives CINS/F1-01

Objectives. What Is and How Does It Work? Objectives. and How Does It Work? and How Does It Work?

Outline. EEC-484/584 Computer Networks. Slow Start Algorithm. Internet Congestion Control Algorithm

Chapter 2: Application layer

Chapter 7 (Week 13) The Application Layer ANDREW S. TANENBAUM COMPUTER NETWORKS FOURTH EDITION PP BLM431 Computer Networks Dr.

FTP,HTTP. By Nidhi Jindal

CS 356 Internet Security Protocols. Fall 2013

Layered Model. DoD Model. ISO/OSI Model

Chapter 2 Application Layer

ECE 435 Network Engineering Lecture 6

ing With PHP History of Applications or Use

Applications FTP. FTP offers many facilities :

What is ? A method of composing, sending, and receiving messages over electronic communication systems. Internet addresses

. SMTP, POP, and IMAP

Electronic Mail. Three Components: SMTP SMTP. SMTP mail server. 1. User Agents. 2. Mail Servers. 3. SMTP protocol

Computer Networking. Chapter #1. Dr. Abdulrhaman Alameer

13. Internet Applications 최양희서울대학교컴퓨터공학부

CompSci 356: Computer Network Architectures. Lecture 23: Application Layer Protocols Chapter 9.1. Xiaowei Yang

Application Layer Services Omer F. Rana. Networks and Data Communications 1

CHAPTER 22 DISTRIBUTED APPLICATIONS ANSWERS TO QUESTIONS ANSWERS TO PROBLEMS

Internet Protocol Stack! Principles of Network Applications! Some Network Apps" (and Their Protocols)! Application-Layer Protocols! Our goals:!

Special expressions, phrases, abbreviations and terms of Computer Networks

CCNA 1 v3.11 Module 11 TCP/IP Transport and Application Layers

Application Layer Chapter 2

[Prof. Rupesh G Vaishnav] Page 1

Network Applications Principles of Network Applications

Electronic mail, usually called , consists of simple text messages a piece of text sent to a recipient via the internet.

Chapter 4. Internet Applications

The Application Layer

Network+ Guide to Networks 6 th Edition. Chapter 9 In-Depth TCP/IP Networking

Protocols and Software. Nixu Ltd.

Basics BUPT/QMUL

Application Level Protocols

CIT 470: Advanced Network and System Administration. Topics. Mail Policies.

MailEnable System Overview

Internet Electronic Mail

Lecture 25. Tuesday, November 21 CS 475 Networks - Lecture 25 1

Agenda. What is ? Brief Introduction To . History Of . Components Of System. Basics

Fig (1) sending and receiving s

Note: CONTENTS. 1. Outlook Express (IMAP) 2. Microsoft Outlook (IMAP) 3. Eudora (IMAP) 4. Thunderbird (IMAP) 5. Outlook Express (POP)

Set Up with Microsoft Outlook 2013 using POP3

Request for Comments: 5321 October 2008 Obsoletes: 2821 Updates: 1123 Category: Standards Track

DISTRIBUTED COMPUTER SYSTEMS

Envelope Journaling for Microsoft Exchange 2003 Version 1.0

Basics BUPT/QMUL

Using on Your Sprint PCS Vision Smart Device PPC-6700

Chapter 2 part B: outline

CS348: Computer Networks (SMTP, POP3, IMAP4); FTP

Internet Technology 2/10/2016

Foundations of Python

What is ? TCP/IP Standard Applications for Electronic Mail. Agenda. History

DOWNLOAD PDF API TO ELECTRONIC MAIL (X,400, ISSUE 2)

Chapter 2: outline. 2.6 P2P applications 2.7 socket programming with UDP and TCP

Configuring SMTP Routing

Cryptography and Network Security. Sixth Edition by William Stallings

Web Mail Check v 1.0

APPENDIX F THE TCP/IP PROTOCOL ARCHITECTURE

ELEC / COMP 177 Fall Some slides from Kurose and Ross, Computer Networking, 5 th Edition

Operating Systems. 16. Networking. Paul Krzyzanowski. Rutgers University. Spring /6/ Paul Krzyzanowski

Transcription:

Email Electronic Mail Electronic mail paradigm Most heavily used application on any network Electronic version of paper-based office memo Quick, low-overhead written communication Dates back to time-sharing systems, in 1960s Because e-mail is encoded in an electronic medium, new forms of interaction are possible Automatic processing - sorting, reply Can carry other content: if basic Simple Mail Transfer Protocol (SMTP), based on TCP/IP, was delivering only simple text messages, by use of Multi-purpose Internet Mail Extension (MIME) now have delivery of other types of data (voice, images, video clips, ) History: first standard: CCITT X.400 - too complex; base for OSI s MOTIS application; 15/10/2018 replaced by TCP/IP Vasile based Dadarlat standards - Computer RFC Networks 821(transmission protocol), 1 and RFC 822 (message format)

Email Architecture RFC 5598 (Internet Mail Architecture) 15/10/2018 Vasile Dadarlat - Computer Networks 2

Email Architecture - components Message User Agent (MUA) on behalf of user actors and user applications client e-mail program or a local network e-mail server sender MUA: formats a message and performs initial submission into the MHS via an MSA receiver MUA: processes receive mail for storage and/or display Thunderbird, Outlook, Opera Mail, Mailbird, etc 15/10/2018 Vasile Dadarlat - Computer Networks 3

Email Architecture - components Message Handling Service (MHS) Mail Submission Agent (MSA) accepts messages from MUA enforces the policies of the hosting domain and the requirements of Internet standards Simple Mail Transfer Protocol (SMTP) is used between the MUA and the MSA. Message Transfer Agent (MTA) Relays mail for one applicationlevel hop SMTP is used between MTAs client: the sending mail server, server: receiving mail server Mail Delivery Agent (MDA) transfers messages from the MHS to the MS 15/10/2018 Vasile Dadarlat - Computer Networks 4

Email Architecture - components Message Store (MS) located on a remote server or on the same machine as the MUA retrieve message from remote server using: POP (Post Office Protocol) or IMAP (Internet Message Access Protocol). 15/10/2018 Vasile Dadarlat - Computer Networks 5

Email Architecture - components Other components Internet e-mail provider named also Administrative management domain (ADMD) examples: IT department that operates a mail relay (local or enterprise) an ISP that operates a public shared e-mail service Domain name system (DNS) 15/10/2018 Vasile Dadarlat - Computer Networks 6

Mailbox: Electronic mailbox E-mail users have an electronic mailbox into which incoming mail is deposited; identified by an e-mail address User then accesses mail with a mail reader program Usually associated with computer account (user's account ID); one user may have different electronic mailboxes On networked multi-user computer, need to identify computer as well as mailbox : e-mail address is composed of computer name and mailbox name Mail transfer E-mail communication is really a two-part process: User composes mail with an e-mail interface program Mail transfer program delivers mail to destination Waits for mail to be placed in outgoing message queues Picks up message and determines recipient(s) Becomes client and contacts server on recipient's computer Passes message to server for delivery 15/10/2018 Vasile Dadarlat - Computer Networks 7

Mail Transfer Illustration 15/10/2018 Vasile Dadarlat - Computer Networks 8

Mail access protocols TCP/IP protocol suite includes Post Office Protocol (POP) for remote mailbox access; useful for dialup connection Can download all mail at once and read off-line Can compose mail off-line and mail in one connection Computer with mailboxes runs POP server User runs POP client on local computer POP client can access and retrieve messages from mailbox Requires authentication (password) Local computer uses SMTP for outgoing mail 15/10/2018 Vasile Dadarlat - Computer Networks 9

Mail access protocols 15/10/2018 Vasile Dadarlat - Computer Networks 10

Simple Mail Transfer Protocol (SMTP) is the standard application protocol for delivery of mail from source to destination (RFC 821) Provides reliable delivery of messages Uses TCP well-known port 25 for message exchange between client and server Command/Response interaction: commands: ASCII text (message character set as 7-bit ASCII) response: status code and phrase Other functions: E-mail address lookup & address verification General characteristics Three phases of transfer: handshaking, mail transfer, closure Attempts to provide reliable service No guarantee to recover lost messages No end to end acknowledgement to originator Error indication delivery not guaranteed 15/10/2018 Vasile Dadarlat - Computer Networks 11 Generally considered reliable!

SMTP Mail Flow 12

Mail Message Contents Each queued message has in composition: Message text RFC 822 header with: message envelope and list of recipients Message body, composed by user A list of mail destinations Derived by user agent from header May be listed in header May require expansion of mailing lists May need replacement of mnemonic names with mailbox names If Blind Carbon Copies (BCC) indicated, user agent needs to prepare correct message format 15/10/2018 Vasile Dadarlat - Computer Networks 13

SMTP Sender Takes message from queue Transmits to proper destination host Via SMTP transaction Over one or more TCP connections to port 25 Host may have multiple senders active Host should be able to create receivers on demand When delivery complete, sender deletes destination from list for that message When all destinations processed, message is deleted Optimization If message destined for multiple users on a given host, it is sent only once Delivery to users handled at destination host If multiple messages ready for given host, a single TCP connection can be used Saves overhead of setting up and dropping connection 15/10/2018 Vasile Dadarlat - Computer Networks 14

Possible Errors: Host unreachable Host out of operation TCP connection fail during transfer Sender can re-queue mail Give up after a period Faulty destination address User error Target user changed address Redirect if possible Inform user if not delivered SMTP Protocol - Reliability Used to transfer messages from sender to receiver over TCP connection Attempts to provide reliable service No guarantee to recover lost messages No end to end acknowledgement to originator Error indication delivery not guaranteed Generally considered reliable! 15/10/2018 Vasile Dadarlat - Computer Networks 15

SMTP Receiver Accepts arriving message Places in user mailbox or copies to outgoing queue for forwarding Receiver must: Verify local mail destinations Deal with errors Transmission Lack of disk space Sender responsible for message until receiver confirm complete transfer Indicates mail has arrived at host, not user SMTP Forwarding Mostly direct transfer from sender host to receiver host May go through intermediate machine via forwarding capability Sender can specify route 15/10/2018 Vasile Dadarlat - Computer Networks 16 Target user may have moved

Format for Text Messages RFC 882 Message viewed as having envelope and contents Envelope contains information required to transmit and deliver message Message is sequence of lines of text Uses general memo framework Header usually keyword followed by colon followed by arguments 15/10/2018 Vasile Dadarlat - Computer Networks 17

Format for Text Messages RFC 882 Message viewed as having envelope and contents 15/10/2018 Vasile Dadarlat - Computer Networks 18

Post Office Protocol (POP) and Internet Message Access Protocol (IMAP) Role: message user agent (MUA) retrives mail from message store (MS) POP version 3 - RFC 1939; connection to server using TCP on port 110 - Authentication state: user ID/password or more sophisticated methods - Transaction state: the client can access the mailbox to retrieve and delete messages - Update state: the server passes all of the changes requested by the client s commands and then closes the connection IMAP version 4 - RFC 3501; connection to server using TCP on port 143 or 993 over SSL provides more functionality than POP3 Clients can: - have multiple remote mailboxes - specify criteria for downloading messages - make changes both when connected and when disconnected (periodic re-synchronization) - IMAP always keeps messages on the server and replicates copies to the clients 15/10/2018 Vasile Dadarlat - Computer Networks 19

Multipurpose Internet Mail Extension (MIME) Extension to RFC 822 for message format; given in RFC 2045, 2056 Additional lines in message header declare MIME content type Five new message header fields MIME version Content type Content transfer encoding Content Description Content Id 15/10/2018 Vasile Dadarlat - Computer Networks 20

Message Format: Multimedia Extensions MIME version method used to encode data encoded data From: xyz@myserver.edu To: abc@mailserver.iitb.edu Subject: Picture. MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Type: image/jpeg base64 encoded data.........base64 encoded data. 15/10/2018 Vasile Dadarlat - Computer Networks 21

Extends and automates encoding mechanisms - Multipart Internet Mail Extensions Allows inclusion of separate components - programs, pictures, audio clips - in a single mail message (see next table) Sending program identifies the components, so receiving program can automatically extract and inform mail recipient Separator line gives information about specific encoding MIME is extensible - sender and receiver agree on encoding scheme MIME is compatible with existing mail systems Everything encoded as ASCII Headers and separators ignored by non-mime mail systems MIME encapsulates binary data in ASCII mail envelope 15/10/2018 Vasile Dadarlat - Computer Networks 22

MIME Content Types 15/10/2018 Vasile Dadarlat - Computer Networks 23

MIME Transfer Encodings Reliable delivery across large range of environments Content transfer encoding field takes on six values (see next table): Three of them (7bit, 8bit, binary): no encoding done Provide some info about nature of data SMTP transfer uses 7bit form Quoted-printable Data contains largely printable ASCII characters Non-printing characters represented by hex code Base64 (Radix-64 Encoding) Maps arbitrary binary input (6 bits) onto printable output 8 bit characters X-token Named nonstandard encoding 15/10/2018 Vasile Dadarlat - Computer Networks 24

MIME Transfer Encodings Binary data to Base64 encoding scheme 15/10/2018 Vasile Dadarlat - Computer Networks 25