Lesson 26 - (1 of 41) E-mail, SMTP, and MIME types.

Slides:



Advertisements
Similar presentations
TOPIC : MIME (Multipurpose Internet Mail Extensions ) By: Cecilia Gomes COSC 541,DATA COMMUNICATION SYSTEMS & NETWORKS Instructor: Prof. Anvari (SEU)
Advertisements

Applications:Electronic Mail (SMTP, POP, IMAP, MIME) (Chapter 27) : Presented By : Subhendu Mahanta. Purvi Shah. Jenni Bhatia. Della Nair. Nafiza Islam.
INTRANET MAIL SERVER (DESIGN OF SMTP and POP3)
1 Electronic Mail u Three major components: u user agents u mail servers u simple mail transfer protocol: SMTP u User Agent u a.k.a. “mail reader” u composing,
Application: Electronic Mail Linda Wu (CMPT )
Application Layer Pertemuan 25 Matakuliah: H0484/Jaringan Komputer Tahun: 2007.
Chapter 6: Distributed Applications Business Data Communications, 5e.
Chapter 29 Structure of Computer Names Domain Names Within an Organization The DNS Client-Server Model The DNS Server Hierarchy Resolving a Name Optimization.
CPSC 441: FTP & SMTP1 Application Layer: FTP & Instructor: Carey Williamson Office: ICT Class.
Electronic Mail and SMTP
COS 420 DAY 25. Agenda Assignment 5 posted Chap Due May 4 Final exam will be take home and handed out May 4 and Due May 10 Today we will discuss.
Implementing Application Protocols. Overview An application protocol facilitates communication between applications. For example, an client uses.
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.
Dave Roberts.  Dynamic Host Configuration Protocol  DHCP  Simple Mail Transport Protocol  SMTP 2.
Applications:Electronic Mail (SMTP,POP,IMAP,MIME) Presented by-Tarun Lall Badrinath Sai Kumar Praveen.
Simple Mail Transfer Protocol
Architecture of SMTP, POP, IMAP, MIME.
Introduction 1 Lecture 7 Application Layer (FTP, ) slides are modified from J. Kurose & K. Ross University of Nevada – Reno Computer Science & Engineering.
Mail Server Fitri Setyorini. Content SMTP POP3 How mail server works IMAP.
-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.
Introduction 1-1 Chapter 2 FTP & Computer Networking: A Top Down Approach 6 th edition Jim Kurose, Keith Ross Addison-Wesley March 2012 IC322 Fall.
2: Application Layer1 Chapter 2 Application Layer These slides derived from Computer Networking: A Top Down Approach, 6 th edition. Jim Kurose, Keith Ross.
Electronic Mail (SMTP, POP, IMAP, MIME)
Electronic Mail Security
SMTP, POP3, IMAP.
1 Application Layer Lecture 5 Imran Ahmed University of Management & Technology.
1 Chapter Internet Applications (DNS, )
Data Communications and Computer Networks Chapter 2 CS 3830 Lecture 9
CSE401N: Computer Networks Lecture-5 Electronic Mail S. M. Hasibul Haque Lecturer Dept. of CSE, BUET.
IT 424 Networks2 IT 424 Networks2 Ack.: Slides are adapted from the slides of the book: “Computer Networking” – J. Kurose, K. Ross Chapter 2: Application.
Review: –How do we address “a network end-point”? –What services are provided by the Internet? –What is the network logical topology observed by a network.
Application Layer Protocols Simple Mail Transfer Protocol.
Chapter 7: Internet-Based Applications Business Data Communications, 6e.
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.
Application Protocols: ELECTRONIC MAIL (SMTP, POP) CSNB534 Semester 2, 2007/2008 Asma Shakil.
Electronic Mail Originally –Memo sent from one user to another Now –Memo sent to one or more mailboxes Mailbox –Destination point for messages.
1 Applications Electronic Mail. 2 Electronic Mail Many user applications use client-server architecture. Electronic mail client accepts mail.
Simple Mail Transfer Protocol (SMTP)
Component 9 – Networking and Health Information Exchange Unit 1-1 ISO Open Systems Interconnection (OSI) This material was developed by Duke University,
Electronic Mail. Client Software and Mail Hosts –Client PC has client software that communicates with user’s mail host –Mail hosts deliver.
File Transfer Protocol (FTP)
McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Network Protocols Chapter 26 (Data Communication and Networking): Remote Logging, Electronic Mail, and.
The Internet The internet is simply a worldwide computer network that uses standardised communication protocols to transmit and exchange data.
1 SMTP - Simple Mail Transfer Protocol –RFC 821 POP - Post Office Protocol –RFC 1939 Also: –RFC 822 Standard for the Format of ARPA Internet Text.
Chapter 16: Distributed Applications Business Data Communications, 4e.
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.
TCP/IP (Transmission Control Protocol / Internet Protocol)
Chapter 20 - Electronic Mail Introduction Description Of Functionality –send a single message to many recipients. –send a message that includes text, voice,
Chapter 16: Distributed Applications Business Data Communications, 4e.
CS440 Computer Networks 1 Neil Tang 12/01/2008.
Slides based on Carey Williamson’s: FTP & SMTP1 File Transfer Protocol (FTP) r FTP client contacts FTP server at port 21, specifying TCP as transport protocol.
1 Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Electronic Mail: SMTP, POP IMAP, and MIME.
COMP 431 Internet Services & Protocols
1 Kyung Hee University Chapter 22 Simple Mail Transfer Protocol (SMTP)
26.1 Electronic Mail Sending/Receiving Mail Addresses User Agent MIME Mail Transfer Agent Mail Access Protocols.
Spring 2006 CPE : Application Layer_ 1 Special Topics in Computer Engineering Application layer: Some of these Slides are Based on Slides.
درس مهندسی اینترنت – مهدی عمادی مهندسی اینترنت برنامه‌نویسی در اینترنت 1 SMTP, FTP.
© MMII JW RyderCS 428 Computer Networks1 Electronic Mail  822, SMTP, MIME, POP  Most widely used application service  Sometimes only way a person ever.
SMTP - Simple Mail Transfer Protocol POP - Post Office Protocol
Applications:Electronic Mail (SMTP,POP,IMAP,MIME)
Networking Applications
Data Communications and Computer Networks Chapter 2 CS 3830 Lecture 9
Chapter 6: Distributed Applications
Chapter 2: Application layer
William Stallings Data and Computer Communications
The Application Layer: SMTP, FTP
Chapter 7 Network Applications
Chapter 2 Application Layer
Presentation transcript:

Lesson 26 - (1 of 41) , SMTP, and MIME types

Lesson 26 - (2 of 41) Outline: , SMTP, and MIME types Mail Systems: –Terminology –Delayed Delivery Names and Aliases: Controlling Messages: Internetworking and Mail: Mail Gateways: Mail Addresses: Simple Mail Transfer Protocol (SMTP): Post Office Protocol (POP) Application Program Interfaces: –MAPI –AOCE MIME Extensions MIME Types and Subtypes S/MIME Content Type MIME Multipart Messages

Lesson 26 - (3 of 41) Mail Systems: Interactive Client / Server Message Exchange: –Messages can be generated and delivered using an electronic mail client. –Those messages are then passed point-to-point, from server to server, until delivered or rejected.

Lesson 26 - (4 of 41) Mail Systems: Mail systems differ from normal network delivery since the absolute destination can be down or the mail recipient may not be on-line (delayed delivery). Similar to conventional mailing schemes, allows a server to place successfully delivered mail in the recipients mailbox.

Lesson 26 - (5 of 41) Mail Systems: Terminology Terminology: – (Electronic Mail) - most computers support of different types and over different operating platforms (delivery times range from seconds...hours or days.) –Snail Mail (Conventional Mail) - post office is used and manually delivered (takes several days).

Lesson 26 - (6 of 41) Mail Systems: Delayed Delivery Spooling or Mail Queues store mail messages the user sends in a private area, which include the following information: –ID of sender –ID recipient –Destination machine address –Time of deposit

Lesson 26 - (7 of 41) Mail Systems: Delayed Delivery After spooling messages, the system then initiates the transfer to the remote machine as a background activity. Spooled messages can be sent at various times in block amounts (transfer process sweeps through the spool area periodically).

Lesson 26 - (8 of 41) outgoing mail spool area mailboxes for incoming mail client (background transfer) server (to accept mail) user send mail user reads mail TCP connection for outgoing mail user inter- face Components of an System:

Lesson 26 - (9 of 41) Names and Aliases: Recipients specified by pair of identifiers: –Mail destination machine name. –Mailbox address on that machine. Mail machine names and mailboxes can be assigned independently of other names assigned to a machine (position of employment or responsibility).

Lesson 26 - (10 of 41) Names and Aliases: The domain name system (DNS) supports a database and query type for mail destinations. This makes it possible to de-couple mail destination names from usual domain names for machines. Some packages require explicit DNS commands be used when sending (VAX/VMS requires MX%”name”)

Lesson 26 - (11 of 41) Controlling Messages: Methods of sending –One-to-one. –One to a group of addresses (all specified each time). –Mail Aliases –Mail Exploder (listservers) –Majordomo (automated response )

Lesson 26 - (12 of 41) Controlling Messages: Mail Alias Expansion (mail forwarder): –Allows the local site to map identifiers used in mail addresses to a set of new mail addresses (electronic mailing lists, mail forwarding). –Files can be setup in UNIX accounts to allow e- mail messages to automatically be forwarded to another specified account.

Lesson 26 - (13 of 41) Controlling Messages: Mail Exploder: –Accepts one incoming message and sends it to a large set of recipients. –Acts as an alias for a group destinations where a copy is sent to each member (listservers).

Lesson 26 - (14 of 41) outgoing mail spool area mailboxes for incoming mail alias expansion and forwarding server (to accept mail) user sends mail user reads mail client (background transfer) alias database user inter- face

Lesson 26 - (15 of 41) Internetworking and Mail: Commercial systems differ from TCP/IP in two crucial ways: –TCP/IP on the Internet creates a universal delivery service. – systems built on TCP/IP are more reliable (TCP provides end-to-end connectivity).

Lesson 26 - (16 of 41) Internetworking and Mail: Mail systems that use end-to-end delivery can guarantee that each mail message remains in the sender’s machine until it has been successfully copied to the recipient’s machine.

Lesson 26 - (17 of 41) Mail Gateways: Mail Gateways (mail bridges): –Are not end-to-end, but send mail across intermediate machines that forward the mail messages. –Advantage - provides interoperability between various systems and networks. –Disadvantage - introduces unreliability.

Lesson 26 - (18 of 41) Mail Gateways: TCP/IP mail standard has two main parts: –Specifies the format for mail messages and their headers. –Specifies the details of electronic mail exchange.

Lesson 26 - (19 of 41) Mail Addresses: Connected Internet addresses are simple: –Localpart - usually a user’s ID or account name. –Domain-name - officially registered with the IAB, this name is usually structured to reflect: Machine name. Site name. Top-level domain.

Lesson 26 - (20 of 41) Mail Addresses: Outside connected Internet addresses are complex since mail address mapping functions are local to each machine. They are not always in domain-name format.

Lesson 26 - (21 of 41) Simple Mail Transfer Protocol (SMTP): –This protocol focuses specifically on how the underlying mail delivery system passes messages from machine to machine. –It is an official TCP/IP standard application protocol.

Lesson 26 - (22 of 41) Simple Mail Transfer Protocol (SMTP): It provides readable text transcripts of client- server interactions in the mail header and integer values for commands: –MAIL FROM –RCPT TO –HELO –250 OK –QUIT

Lesson 26 - (23 of 41) Example SMTP Interaction: S:hertz.njit.eduSimple Mail Transfer Service Ready. C:HELOpegasus.rutgers.edu S:250hertz.njit.edu C:MAIL FROM: S:250OK C:RCPT TO: S:250OK

Lesson 26 - (24 of 41) Example SMTP Interaction: (Continued) C:DATA S:354 Start mail input; end with. C:…sends body of mail message… C:…continues for as many lines as message contains C:. S:250OK C:QUIT S:221 hertz.njit.eduService closing transmission.

Lesson 26 - (25 of 41) Post Office Protocol (POP): Post Office Protocol - Version 3 (POP3): –Is intended to permit a workstation to dynamically access a maildrop (mail server) on a server host in a useful fashion. –Usually, this means that the POP3 is used to allow a workstation to retrieve mail that the server is holding for it. –Access to a POP3 server requires a username and password.

Lesson 26 - (26 of 41) Application Program Interfaces: MAPI Messaging Application Program Interface (MAPI): –Is a set of messaging functions that helps you create mail-enabled applications as well as other message-based applications. –With MAPI functions, you can easily add messaging to any Windows application and may or not include a user interface (a dialog box). –It is supported by many vendors (Microsoft).

Lesson 26 - (27 of 41) Application Program Interfaces: AOCE What is AOCE? –AOCE stands for Apple Open Collaboration Environment. –It is a set of technologies that provide for system-level collaboration and messaging services. –The first incarnation of AOCE was in the form of PowerShare and PowerTalk, the AOCE server and client, respectively. –It is a proposed standard interface to .

Lesson 26 - (28 of 41) MIME Extensions: Multipurpose Internet Mail Extensions (MIME): –Defined by IETF to allow transmission of non- ASCII data via . –It allows arbitrary data to be encoded in ASCII for normal transmission. –All media types that are sent/received over the World Wide Web are encoded using different MIME types.

Lesson 26 - (29 of 41) MIME Extensions: 822 Mail Header Messages sent using MIME encoding include information that describes the type of data and the encoding that was used (resides in 822 mail header). 822 Mail Header: –Version of MIME used. –Type of data sent. –Encoding method used.

Lesson 26 - (30 of 41) Example 822 Mail Message Header: MIME-Version:1.0 Content-Type:image/gif Content-Transfer-Encoding:base64 …data for the image...

Lesson 26 - (31 of 41) MIME Types and Subtypes: All different media encoding done in MIME is classified as a combination of types and subtypes. Each MIME Content-Type must contain two identifiers: –Content Type –Content Subtype

Lesson 26 - (32 of 41) MIME Types and Subtypes: There are seven official (standardized) content- types that can appear in a MIME Content-Type declaration: –Text - Textual documents. –Image - A computer generated image. –Audio - A sound file. –Video - A motion video recording.

Lesson 26 - (33 of 41) MIME Types and Subtypes: –Application - Raw data for a program. –Multipart - Multiple messages, each having a separate content type and encoding. –Message - An entire message or an external reference to a message (FTP server and filename).

Lesson 26 - (34 of 41) MIME Types and Subtypes: An eight type has been proposed and will most likely be approved to supply a secure method for transferring encoded data: –Secure - Data is sent encrypted and in a secure fashion. The push for an official secure MIME content- type has come about due to the increased interest in doing business over the WWW.

Lesson 26 - (35 of 41) S/MIME Content Type: What is S/MIME? –A specification for secure electronic mail. –S/MIME stands for Secure/Multipurpose Internet Mail Extensions and was designed to add security to messages in MIME format. The security services offered are authentication (using digital signatures) and privacy (using encryption).

Lesson 26 - (36 of 41) S/MIME Content Type: Why S/MIME? –In the growing demand for security, S/MIME melds proven cryptographic constructs with standard practices. Is S/MIME a standard? –No. Although the S/MIME spec will be submitted to the IETF for consideration as an official Internet RFC (standard) when interoperability tests are complete.

Lesson 26 - (37 of 41) MIME Types and Subtypes: Examples of Content Type/ Subtype: –image/jpeg –text/html –video/mpeg –audio/x-wav –application/octet-stream

Lesson 26 - (38 of 41) MIME Multipart Messages: Multipart content type has four subtypes, each of which adds significant flexibility to MIME encoding: –Mixed - allows a single message to contain multiple independent sub-messages, each of which is separately encoded (HTML documents with images).

Lesson 26 - (39 of 41) MIME Multipart Messages: –Alternative - a single message can include multiple representations of the same data type (ASCII and Rich Text Format). –Parallel - a single message that includes subparts which should be viewed together (video with audio). –Digest - a single message that can contain a set of other messages ( messages from a discussion).

Lesson 26 - (40 of 41) Questions , SMTP, and MIME types Why do you think MIME-encoded messages used as the foundation of WWW technology? How does one setup a mail-reflector in there account to forward ? A listserv is a special type of broadcasting. Explain. What are Mail APIs used for? Give an example. What specific MIME type(s) would be used to send an HTML page with in-line video/audio support?

Lesson 26 - (41 of 41) Reference Materials , SMTP, and MIME types RFC 1651, 1652, 1653: SMTP Services ( API Web Resources: ( RFC 1081, 1082: Post Office Protocol - Version 3 ( Writing your own SMTP gateway: ( RFC 1521, 1522: MIME Extensions and Headers (