Electronic Mail. Familiar to most of us 4 What are the functions we expect? –Outgoing mail Compose send –compress –encrypt –Incoming Mail read forward.

Slides:



Advertisements
Similar presentations
Application Layer 2-1 Chapter 2 Application Layer Computer Networking: A Top Down Approach 6 th edition Jim Kurose, Keith Ross Addison-Wesley March 2012.
Advertisements

By: E. Susheel Chandar M. Guna Sekaran Intranet Mail Server.
SMTP – Simple Mail Transfer Protocol
How Clients and Servers Work Together. Objectives Web Server Protocols Examine how server and client software work Use FTP to transfer files Initiate.
Application: Electronic Mail Linda Wu (CMPT )
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.
CPSC 441: FTP & SMTP1 Application Layer: FTP & Instructor: Carey Williamson Office: ICT Class.
Chapter 2: Application layer  2.1 Web and HTTP  2.2 FTP 2-1 Lecture 5 Application Layer.
Electronic Mail and SMTP
Simple Mail Transfer Protocol (SMTP) CS-328 Dick Steflik.
POP3 Post Office Protocol v.3. Intro The Post Office Protocol (POP) is currently the most popular TCP/IP access and retrieval protocol. It implements.
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.
2440: 141 Web Site Administration Services Instructor: Enoch E. Damson.
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.
1 Lecture #3 Electronic Mail Protocols HAIT Summer 2005 Shimrit Tzur-David.
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)
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
Mail Services.
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.
Intro to Computer Networks Bob Bradley The University of Tennessee at Martin.
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.
1 Computer Communication & Networks Lecture 27 Application Layer: Electronic mail and FTP Waleed.
Lecturer: Maxim Podlesny Sep CSE 473 File Transfer and Electronic in Internet.
SMTP PROTOCOL CONFIGURATION AND MANAGEMENT Chapter 8.
Application Protocols: ELECTRONIC MAIL (SMTP, POP) CSNB534 Semester 2, 2007/2008 Asma Shakil.
Sending and Receiving Mails
FTP (File Transfer Protocol) & Telnet
CPT 499 Internet Skills for Educators Electronic Mail Session Five.
Simple Mail Transfer Protocol (SMTP)
Electronic Mail. Familiar to most of us 4 What are the functions we expect? –Outgoing mail Compose send –compress –encrypt –Incoming Mail read forward.
SMTP – Simple Mail Transfer Protocol
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.
File Transfer Protocol (FTP)
Krerk Piromsopa. Application Protocols & System Services. 1 Krerk Piromsopa. Department of Computer Engineering. Chulalongkorn University.
McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Network Protocols Chapter 26 (Data Communication and Networking): Remote Logging, Electronic Mail, and.
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.
Simple Mail Transfer Protocol Crypto2006 CMPE 208
SIMPLE MAIL TRANSFER PROTOCOL. Introduction Simple Mail Transfer Protocol is the standard protocol on the Internet and part of the TCP/IP protocol.
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.
SIMPLE MAIL TRANSFER PROTOCOL PRADEEP KOLLIPARA SANDEEP PINNAMANENI.
LinxChix And Exim. Mail agents MUA = Mail User Agent Interacts directly with the end user  Pine, MH, Elm, mutt, mail, Eudora, Marcel, Mailstrom,
Protocols COM211 Communications and Networks CDA College Olga Pelekanou
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.
SMTP - Simple Mail Transfer Protocol RFC 821
CITA 310 Section 6 Providing Services (Textbook Chapter 8)
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.
Application Layer 2-1 Chapter 2 Application Layer Computer Networking: A Top Down Approach 6 th edition Jim Kurose, Keith Ross Addison-Wesley March 2012.
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.
@Yuan Xue A special acknowledge goes to J.F Kurose and K.W. Ross Some of the slides used in this lecture are adapted from their.
Spring 2006 CPE : Application Layer_ 1 Special Topics in Computer Engineering Application layer: Some of these Slides are Based on Slides.
درس مهندسی اینترنت – مهدی عمادی مهندسی اینترنت برنامه‌نویسی در اینترنت 1 SMTP, FTP.
SMTP - Simple Mail Transfer Protocol POP - Post Office Protocol
Networking Applications
Chapter 2: Application layer
Unit – 4 Chap - 2 Mail Delivery System
The Application Layer: SMTP, FTP
Chapter 7 Network Applications
Chapter 2 Application Layer
Presentation transcript:

Electronic Mail

Familiar to most of us 4 What are the functions we expect? –Outgoing mail Compose send –compress –encrypt –Incoming Mail read forward repl store (retain) (and organize into folders, search, …) discard others????

The X.400 Functional Model UA AU MTA MS PDAU MTA User P2 P3 P1 MTS MHS Postal Services Other Services (ex: SMTP) (ex: POP or IMAP)

Protocols 4 User to the User Agent –local issue, no need to standardize 4 P1: Message Transfer Agent interaction –concerned with routing and protection –not interested in message format or content 4 P2: User Agent to User Agent –common packaging and interpretation of labels 4 P3: Between the UA or MS and the MTA –hand over the message for safe delivery 4 AU = Access Unit; PDAU = Physical Delivery Access Unit –non standard delivery, such as to fax, e- mail to postal mail, etc.

Sending a message 4 Use DNS to get IP address of the destination mail server 4 Establish a TCP/IP connection to the server 4 (Optional) establish a SSL connection to the server 4 Send header and message Ref:

Routing a message 1. Queries the Directory Server to determine whether the recipient is local or remote. 2. If the recipient is local, delivers the message, typically placing it in the message store. Otherwise, proceeds to step If the recipient is remote: a. Queries DNS to find the MX (mail exchange) servers for the domain. b. Queries DNS to find the IP address of the remote messaging server. c. Establishes a TCP/IP connection to the remote messaging server. d. (Optional) Establishes an SSL connection to the remote messaging server. e. Sends the message to the remote messaging server (SMTP-Deliver). Ref:

Retrieving a message To retrieve a message, the client must know the IP address of the messaging server, establish a connection to the server, then retrieve the message using one of the retrieval protocols: POP, IMAP, or HTTP. The following summarizes the steps the client takes to retrieve a message. 1.Queries DNS to find the IP address of the server. 2.Establishes a TCP/IP connection to the server. 3.(Optional) Establishes an SSL connection to the server. 4.Establishes a POP3, IMAP4, or HTTP connection to the server to retrieve the message. Ref:

Characteristics 4 User Interface –mail program environment hints and clues about what to do next reminders of folder names, aliases –set of individual commands to execute as needed easy to incorporate mail functions into other programs 4 Knowing about success or failure failure can occur at any of several places in the mail delivery system

Mail Interface 4 Netscape 4 Outlook 4 unix mail 4 Webmail 4 Mail interface programs often provide other functions, such as calendars and to-do lists in the same system

Mail system failures Subject: Re: SIGCSE 2000 sites Date: 10 Sep 98 09:57: From: (Nell Dale) To: CC: Boots Cassel My problem with the Arbaretum is its distance from the airport and town--and there is no public transportation to speak of. We will have to arrange buses to take people to and from the airport and to and from town. Taxis are not expensive, but are not used very much here. Nell This was actually a failure on our receiver mail system. It decided that the recipient of the message did not need to know the address of anyone except the sender of the message. It stripped off everything from on. ( It is fixed now.)

Problem with aliases. Subject: Re:VU-UD tickets Date: Wed, 22 Sep :57: From: To: CC: Here the problem is that the alias used locally is shown to the recipients. Those aliases are of no use in sending replies to this message

Result Reporting 4 Success reporting is usually optional 4 Failure reports are more consistent –Unknown user at the destination site –Inability to find the destination site –Can find, but cannot connect to the destination site –Badly formed message not processed locally 4 Status reporting –Verbose mode often available to show all the steps in mail delivery

SMTP 4 Workhorse of mail interaction 4 Defines message format and transfer methods 4 Uses TCP on port 25 4 Send mail to a MTA 4 Send mail between MTAs

The List of Reply Codes 211 System status, or system help reply 214 Help message [Information on how to use the receiver or the meaning of a particular non-standard command; t his reply is useful only to the human user] 220 Service ready 221 Service closing transmission channel 250 Requested mail action okay, completed 251 User not local; will forward to 354 Start mail input; end with. 421 Service not available, closing transmission channel [This may be a reply to any command if the service knows it must shut down] 450 Requested mail action not taken: mailbox unavailable [E.g., mailbox busy] 451 Requested action aborted: local error in processing 452 Requested action not taken: insufficient system storage 500 Syntax error, command unrecognized [This may include errors such as command line too long] 501 Syntax error in parameters or argument 502 Command not implemented 503 Bad sequence of commands 504 Command parameter not implemented 550 Requested action not taken: mailbox unavailable [E.g., mailbox not found, no access] 551 User not local; please try 552 Requested mail action aborted: exceeded storage allocation 553 Requested action not taken: mailbox name not allowed [E.g., mailbox syntax incorrect] 554 Transaction failed Ref:

11 monet:/mnt/a/cassel> mail -v Subject: test message Checking mail steps. EOT monet:/mnt/a/cassel> Connecting to mail.acm.org. via esmtp mail.acm.org ESMTP Sendmail 8.9.3/8.9.3; Wed, 4 Oct :47: >>> EHLO monet.vill.edu 250-mail.acm.org Hello monet.csc.vill.edu [ ], pleased to meet you 250-8BITMIME 250-SIZE DSN 250-ONEX 250-XUSR 250 HELP >>> MAIL From: SIZE= Sender ok >>> RCPT To: Recipient ok >>> DATA 354 Enter mail, end with "." on a line by itself >>>. 250 OAA Message accepted for delivery Sent (OAA Message accepted for delivery) Closing connection to mail.acm.org. >>> QUIT 221 mail.acm.org closing connection From acm.org server From monet

Return-Path: Received: from mail.acm.org ([ ]) by skinner.villanova.edu (Netscape Messaging Server 4.15) with ESMTP id G1X5J300.I88 for ; Wed, 4 Oct :47: Received: from monet.vill.edu (monet.csc.vill.edu [ ]) by mail.acm.org (8.9.3/8.9.3) with ESMTP id OAA for ; Wed, 4 Oct :47: Received: (from by monet.vill.edu (8.9.0/8.9.0) id OAA15022 for Wed, 4 Oct :47: (EDT) Date: Wed, 4 Oct :47: (EDT) From: boots cassel Message-ID: To: Subject: test message Expanded Message Header

Addresses 4 Local –same machine –same local network environment 4 remote –same mail system on a remote host –different type of mail system

Message Store Protocols 4 Client interacting with a mail server (see RFC 1733) –offline move mail from server to client machine –online keep mail on server and stay connected –disconnected keep mail on server download a cache copy and disconnect reconnect to synchronize client and server

POP and IMAP 4 Post Office Protocol see RFC 1725 and later revision –works on local copy on the client machine (offline access) –may leave copy on the server, but does not resynchronize 4 Internet Message Access Protocol see RFC 1730 –allows all three interaction modes

POP commands USER Client identifies mailbox to be downloaded PASS Password STAT Get number of messages and size of mailbox LIST N Return size of message N LAST Get highest message number accessed RETR N Retrieve a full message TOP N M Retrieve only headers and the first N lines DELE N Delete message QUIT Release service NOOP See if POP server is functioning RPOP Insecure authentication

Offline, online, disconnected 4 Offline is usual for ISPs. –They store your messages until you collect them, but don’t provide long term disk space to keep all your mail for you. 4 Online works when the mail is delivered, read, and stored on the same system –You login, get your mail, read it, store it, go back to it when you want to. 4 Disconnected –One copy on your local machine; master copy on a server –Access available while traveling, from home and office. –Long distance phone connections are minimized

Mail Summary 4 Early in the ARPAnet days, came to dominate usage 4 With Web use, it remains a major contributor to traffic on the Internet 4 The user interface to the mail system comes in many varieties 4 Behind the scenes, a few message transfer systems deliver the mail