Application: Electronic Mail

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

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

Simple Network Management Protocol (SNMP)

SMTP. George Porter CSE 124 February 12, 2015

Simple Network Management Protocol (SNMP)

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

Electronic Mail

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

Internet and Intranet Protocols and Applications

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

The Application Layer: & SMTP

Electronic Mail Paradigm

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

Chapter 26 Remote Logging, Electronic Mail, and File Transfer 26.1

FTP. FTP offers many facilities :

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

Mail agents. Introduction to Internet Mail. Message format (1) Message format (2)

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

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

Protocols and Software. Nixu Ltd.

CSCE 463/612 Networks and Distributed Processing Spring 2018

Lecture 6: Application Layer Web proxies, , and SMTP

WWW: the http protocol

Basics BUPT/QMUL

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

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

Chapter 2 Application Layer

Electronic Mail. Electronic Mailboxes

CSC 4900 Computer Networks:

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

. indigoo.com INTRODUCTION TO MAIL TRANSFER PROTOCOLS FOR THE INTERNET. Peter R. Egli INDIGOO.COM. 1/35 Rev Peter R.

Internet Electronic Mail

Basics BUPT/QMUL

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

. SMTP, POP, and IMAP

Introduction to Internet Mail. Philip Hazel. University of Cambridge Computing Service. Mail agents

CS321: Computer Networks ELECTRONIC MAIL

How Internet Works

Network Applications Electronic Mail

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

The Application Layer: SMTP, FTP

FTP,HTTP. By Nidhi Jindal

SCS3004 Networking Technologies Application Layer Protocols

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

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

Fig (1) sending and receiving s

Applications FTP. FTP offers many facilities :

Debian/GNU Linux Mailing

Appendix. Web Command Error Codes. Web Command Error Codes

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

Application Inspection and Control for SMTP

Application-layer Protocols and Internet Services

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

Computer Network 1 1

How do I setup Outlook Express to get my s?

CSC 401 Data and Computer Communications Networks

Objectives CINS/F1-01

COSC 301 Network Management. Lecture 14: Electronic Mail

Telemetry Data Sharing Using S/MIME

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

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

CHAPTER 22 DISTRIBUTED APPLICATIONS ANSWERS TO QUESTIONS ANSWERS TO PROBLEMS

Debian/GNU Linux Mailing

Electronic Mail (SMTP)

System: Basic Functionality

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

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

ESMTP Support for Cisco IOS Firewall

Expires July 1999 February 26, Simple Mail Transfer Protocol. draft-ietf-drums-smtpupd-10.txt. Status of this Memo

, Network Management, Future

21.1 FTP. Connections

Application Layer Chapter 2

Internet Technology 2/10/2016

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

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

Chapter 2: Application layer

How do I configure my LPL client to use SSL for incoming mail?

All existing accounts will be listed. 2. Click Add and select Mail to add a new account (see Figure 2). Figure 1. Figure 2

Getting Started with Eudora For Windows 2000/XP Keith Roberts

Additional laboratory

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

Getting Started with Eudora 6.2.x For Windows 2000/XP

Layered Model. DoD Model. ISO/OSI Model

Getting Started with Eudora 5.1 for Win95/98/ME/NT/2000

Network Working Group. Category: Standards Track January 1996

Internet Protocols. Robin Sharp

Investigating . Tracing & Recovery

Application Level Protocols

Chapter 4. Internet Applications

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

SMTP Simple Mail Transfer Protocol

ing With PHP History of Applications or Use

Obsoletes: 821, 974, 1869 April 2001 Updates: 1123 Category: Standards Track

Category: Standards Track December 1994

Networking Fundamentals: IP, DNS, URL, MIME

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

Debian/GNU Linux Mailing

Chapter 2 part B: outline

Network Services, VU 2.0

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

Transcription:

Content Application: Electronic Mail Linda Wu Email system model protocol MIME extensions Mail access protocols (CMPT 471 2003-3) Reference: chapter 27 Notes-19 CMPT 471 2003-3 2 Email System Model Client- model User A User B interface interface UA UA Spool Mailboxes DB Alias expander Alias expander DB Client Relay Relay Server Internet Notes-19 CMPT 471 2003-3 3 UA: user agent A program used by the user to send and receive emails, e.g., mutt, elm, pine, Eudora, Outlook Express Sending email The user creates mail through the UA The mail has an envelop and a message Receiving email UA checks the mailboxes periodically Displays a message list, in which each line is a summary about a particular message in the mailbox: sender email address, subject, the time the mail was sent or received Notes-19 CMPT 471 2003-3 4

: mail transfer agent MAIL FROM: usera@ RCPT TO: userb@site2.edu From: User A To: User B Reply-to: usera@other.site Date: dd/mm/yyyy Subject: Dear User B,.. Yours, User A Body Header Message Envelop The actual mail transfer is done through Unix : Sendmail, postfix, Client is needed to send email Server is needed to receive email Notes-19 CMPT 471 2003-3 5 Notes-19 CMPT 471 2003-3 6 Delayed delivery The message does not have to be delivered immediately Sender-side delay: spooling After UA creates a message, the message is delivered to spool for storage periodically (10~30 mins) checks the mail in the spool to see if it can be sent If the message cannot be sent, it remains in the spool to be checked in the next cycle If a message cannot be delivered in the time-out period (3~5 days), it is returned to the sender Receiver-side delay After the message is received by the, it does not have to be read the receiver immediately The mail can be stored in the mailbox of the receiver Intermediate delay The intermediate s can receive mails, keep mails in their own mailboxes and spools, and send them when appropriate Notes-19 CMPT 471 2003-3 7 Notes-19 CMPT 471 2003-3 8

Email address Email address must be unique Two parts: local-part & domain-name Local-part @ Address of the mailbox on the destination machine Domain-name Domain name of a mail destination to which the mail should be delivered Mail alias expansion One-to-many alias expansion User can create an alias that is mapped to a list of recipients (mailing list) The recipients on a list need not to be local For an outgoing message Check the recipient s name against the alias expansion database If there is an expansion, replace the recipient with the mapped version, and pass the message to Alias is also used to map incoming recipient address Notes-19 CMPT 471 2003-3 9 Notes-19 CMPT 471 2003-3 10 Many-to-one alias expansion A user can have several email addresses, but the user agent only recognizes one mailbox name When a system receives mail, it checks the many-to-one expansion database If a mailbox name corresponding to the local part of the received address is found, the mail is sent to that mailbox; otherwise, it is discarded DB usera@ friends (one name) One-to-many alias expander userb@ site2.edu (many recipients) userc@ DB william@ John (one recipient) Many-to-one alias expander john@ black@ (many addresses) Notes-19 CMPT 471 2003-3 11 Notes-19 CMPT 471 2003-3 12

Simple Mail Transfer Protocol Focuses on how the underlying mail delivery system passes mails across an internet Does NOT specify: How the mail system accepts mail from a user How the user interface presents the user with incoming mail How the mail is stored Sends mail in NVT 7-bit ASCII format Cannot be used for languages not supported by 7-bit ASCII characters Cannot send binary data Notes-19 CMPT 471 2003-3 13 Commands and responses uses commands and responses to transfer mail between an and an Command Keyword: argument(s) Response A 3-digit code that may be followed by additional textual information Commands Responses Notes-19 CMPT 471 2003-3 14 Commands keyword Argument(s) HELO Sender s host name MAIL Sender of he FROM message RCPT TO Intended recipient DATA Body of the mail QUIT RSET VRFY NOOP Name of recipient to be verified Meaning To identify the itself To identify the sender of the mail To identify mail recipient To send the actual message To terminate the message To abort the current mail transaction To verify the address of the recipient To check the status of the recipient Responses Code 220 Positive 221 reply 250 251 354 Negative reply 421 450.. 500.. Meaning Service ready Service closing transmission channel Requested command completed User not local; mail will be forwarded Start mail input Service not available Mailbox not available Syntax error; unrecognized command Notes-19 CMPT 471 2003-3 15 Notes-19 CMPT 471 2003-3 16

MAIL FROM: usera@ 250 OK RCPT TO: user2@site2.edu 250 OK DATA 354 start mail input From: User A To: User B Date: dd/mm/yyyy Subject: (Empty line) Dear user B,.... 250 OK Mail transfer The process of transferring a mail has 3 phases Connection establishment Mail transfer Connection termination Envelop Header Body Notes-19 CMPT 471 2003-3 18 Notes-19 CMPT 471 2003-3 17 MIME Extensions TCP XXXXX 220 service ready HELO: 250 OK mail transfer QUIT 221 service closed TCP 25 Connection establishment Connection termination Notes-19 CMPT 471 2003-3 19 Multipurpose Internet Mail Extensions A supplementary protocol that allows non- ASCII data to be sent through Not a mail protocol; only an extension to Can be thought of as a set of software functions that transform non-ascii data to ASCII data and vice versa User A Non-ASCII MIME 7-bit NVT ASCII 7-bit NVT ASCII User B MIME Non-ASCII 7-bit NVT ASCII Notes-19 CMPT 471 2003-3 20

MIME Extensions (cont.) MIME headers MIME defines 5 headers to be added to the original header section The headers define the transformation parameters MIME-Version: current version is 1.1 Content-Type: text/plain, image/jpeg, image/gif, multipart/mixed, application/postscript, Content-Transfer-Encoding: 7bit, 8bit, binary, base64, quoted-printable Content-Id: uniquely identify the message Content-Description MIME Extensions (cont.) Email header MIME-Version: 1.1 Content-Type: type/subtype Content-Transfer-Encoding: encoding type Content-Id: message id Content-Description: textual explanation of nontextual contents Email body MIME header Notes-19 CMPT 471 2003-3 21 Notes-19 CMPT 471 2003-3 22 MIME Extensions (cont.) Base64 encoding Divide the binary data into 24-bit blocks Each blocks is then divided into four 6-bit sections Interpret each 6-bit section as one character according to Base64 encoding table MIME Extensions (cont.) Quoted-printable encoding If a character is ASCII, it is sent as it is If a character is not ASCII, it is sent as 3 characters: The first character is = The next two are the hexadecimal representation of the byte Non-ASCII data 11001100 110011 (51) 001000 (8) 10000001 000100 (4) 00111001 111001 (57) 00100110 & Mixed ASCII & non-ascii data 01001100 L 10011101 Non-ASCII 00111001 9 01001011 K Z I E 5 ASCII data 01110011 01001000 01000100 00111001 Notes-19 CMPT 471 2003-3 23 00100110 & 01001100 L 00111101 = 00111001 9 ASCII data 01000100 D 00111001 9 01001011 K Notes-19 CMPT 471 2003-3 24

Mail Access Protocols Mail Access Protocols (cont.) Mail delivery Stage 1 () Local Stage 2 () Remote Mail box Mail access Mail access Stage 3 (Mail Access Protocol) Mail is stored in user s permanent mailbox for later retrieval Mail access protocol To retrieve mails from a permanent mailbox to a local computer To manipulate the mailbox content Two popular mail access protocols Post Office Protocol Version 3 (POP3) Internet Mail Access Protocol Version 4 (IMAP4) Notes-19 CMPT 471 2003-3 25 Notes-19 CMPT 471 2003-3 26 Mail Access Protocols (cont.) POP3 POP3 creates a TCP connection to the POP3 on the mailbox computer Server authenticates the session using user-name and password Client sends commands to retrieve a copy of one or more messages Two modes Delete mode: the mail is deleted from the mailbox after each retrieval Keep mode: the mail remains in the mailbox after retrieval Notes-19 CMPT 471 2003-3 27 Mail Access Protocols (cont.) User computer POP3 TCP XXXXX User-name OK Password OK List Email # and sizes Retrieve 1 Email 1 Retrieve N Email N TCP 110 Mail POP3 Notes-19 CMPT 471 2003-3 28

Mail Access Protocols (cont.) IMAP4 Similar functions as POP3 Mailboxes are located on the same computer as IMAP4 User runs IMAP4 to contact the and retrieve mails Extended functions A user can check the email header, or, search the contents of the mails for a specific string, before downloading A user can partially download mail A user can create, delete, or remove mailboxes on the mail A user can create a hierarchy of mailboxes in a folder for email storage Notes-19 CMPT 471 2003-3 29