10. Electronic Mail.

Slides:



Advertisements
Similar presentations
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,
Advertisements

SMTP – Simple Mail Transfer Protocol
Application: Electronic Mail Linda Wu (CMPT )
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.
(SMTP, MIME) Message transfer protocol (SMTP) vs message format protocols (RFC 822, Multipurpose Internet Mail Extensions or MIME) Message transfer.
CSCE 515: Computer Network Programming Chin-Tser Huang University of South Carolina.
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.
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.
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.
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.
The Application Layer  application and application requirements  sample network applications and protocols  SMTP, POP3  WWW: http1.1  teleconferencing.
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.
Message preparation Word processing Annotation Message sending User directory Timed delivery Multiple addressing Message priority Status information.
Lesson 26 - (1 of 41) , SMTP, and MIME types.
Electronic Mail (SMTP, POP, IMAP, MIME)
1 What is Electronic Mail Exchanging information via computer networks Electronic mail addresses SMTP (Simple Mail Transfer Protocol) Client/Server based.
Simple Mail Transfer Protocol
SMTP, POP3, IMAP.
1 Application Layer Lecture 5 Imran Ahmed University of Management & Technology.
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.
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.
A form of communication in which electronic messages are created and transferred between two or more devices connected to a network.
Telecooperation Technische Universität Darmstadt Copyrighted material; for TUD student use only Internet Standards: Julian Schröder-Bernhardi, Dirk.
1 Applications Electronic Mail. 2 Electronic Mail Many user applications use client-server architecture. Electronic mail client accepts mail.
Sending and Receiving Mails
FTP (File Transfer Protocol) & Telnet
1999 Asian Women's Network Training Workshop 1 Technical Terms We Can’t Avoid.
Prof. John A. Copeland fax Office: Klaus
Simple Mail Transfer Protocol (SMTP)
Sending Topic 4, Chapters 9, 10 Network Programming Kansas State University at Salina.
SMTP – Simple Mail Transfer Protocol
SMTP( 简单邮件传输协议 ) SIMPLE MAIL TRANSFER PROTOCOL RFC 2812.
File Transfer Protocol (FTP)
1 Electronic mail security Ola Flygt Växjö University, Sweden
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.
April 5, 2004 Prof. Paul Lin 1 CPET 355 Data Communications & Networking 7. The Application Layer: Paul I-Hai Lin, Professor Electrical and Computer.
Chapter 16: Distributed Applications Business Data Communications, 4e.
Computer Networks with Internet Technology William Stallings Chapter 03 Traditional Applications.
SMTP - Simple Mail Transfer Protocol RFC 821
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.
World Wide Web r Most Web pages consist of: m base HTML page, and m several referenced objects addressed by a URL r URL has two components: host name and.
COMP 431 Internet Services & Protocols
Security SMIME IT352 | Network Security |Najwa AlGhamdi 1.
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.
SMTP - Simple Mail Transfer Protocol POP - Post Office Protocol
Networking Applications
Chapter 6: Distributed Applications
CS- 492 : Distributed system & Parallel Processing
Simple Mail Transfer Protocol
ELECTRONIC MAIL SECURITY
ELECTRONIC MAIL SECURITY
William Stallings Data and Computer Communications
Presentation transcript:

10. Electronic Mail

10.1 Electronic mail Disadvantages It stops people using the telephone. It cannot be used as a legal document. Electronic mail messages can be sent impulsively and may be later regretted (sending by traditional methods normally allows for a rethink). In extreme cases messages can be sent to the wrong person (typically when replying to an email message, where a message is sent to the mailing list rather than the originator). It may be difficult to send to some remote sites. Many organisations have either no electronic mail or merely an intranet. Large companies are particularly wary of Internet connections and limit the amount of external traffic. Not everyone reads their electronic mail on a regular basis (although this is changing as more organisations adopt email as the standard communications medium). Advantages It is normally much cheaper than using the telephone (although, as time equates to money for most companies, this relates any savings or costs to a user’s typing speed). Many different types of data can be transmitted, such as images, documents, speech, and so on. It is much faster than the postal service. Users can filter incoming email easier than incoming telephone calls. It normally cuts out the need for work to be typed, edited and printed by a secretary. It reduces the burden on the mailroom. It is normally more secure than traditional methods. It is relatively easy to send to groups of people (traditionally, either a circulation list was required or a copy to everyone in the group was required). It is usually possible to determine whether the recipient has actually read the message (the electronic mail system sends back an acknowledgement). Standards Simple Mail Transfer Protocol (SMTP) – which is used with the TCP/IP protocol suite. It has traditionally been limited to the text-based electronic messages. Multipurpose Internet Mail Extension (MIME) – which allows the transmission and reception of mail that contains various types of data, such as speech, images and motion video. It is a newer standard than SMTP and uses much of its basic protocol. S/MIME (Secure MIME). RSA Data Security created S/MIME which supports encrypted email transfers and digitally signed electronic mail.

10.2 Email client/server or message transfer agent Post offices – where outgoing messages are temporally buffered (stored) before transmission and where incoming messages are stored. The post office runs the server software capable of routing messages (a message transfer agent) and maintaining the post office database. Message transfer agents – for forwarding messages between post offices and to the destination clients. This software can either reside on the local post office or on a physically separate server. Gateways – which provide part of the message transfer agent functionality. They translate between different email systems, different email addressing schemes and messaging protocols. Email clients – normally the computer which connects to the post office. It contains three parts: Email API (Application Program Interface): MAPI, VIM, MHS and CMC. Messaging protocol: SMTP/ X.400. Network transport protocol. Ethernet/ FDDI/etc. Local post office Message transfer agent Remote Real-time remote Message transfer agent forwards mail to the remote (store and forward) Mail message is forwarded to local post office Message transfer by real-time transfers MAPI (messaging API) – Microsoft part of Windows Operation Services Architecture. VIM (vendor-independent messaging) – Lotus, Apple, Novell and Borland derived email API. MHS (message handling service) – Novell network interface which is often used as an email gateway protocol. CMC (common mail call) – Email API associated with the X.400 native messaging protocol.

10.3 Email architecture Gateway protocols: Email client – Email client software Email server – Gateway software External connection Email server – Server post office software – Email database Gateway protocols: MHS (used with Novell NetWare). SMTP.MIME (used with Internet environment). X.400 (used with X.400). MS Mail (used with Microsoft Mail). cc:Mail (used with Lotus cc:Mail). – Email message transfer agent – Email routing information – Directory synchronization

10.4 SMTP (RFC 821) SMTP commands: HELO domain MAIL FROM: sender-address RCPT FROM: receiver-address DATA RSEY QUIT EXPN mailing-list SEND FROM: sender-address SOML FROM: sender-address VRFY username SMTP responses: 211 System status 214 Help message 220 Service ready 221 Service closing transmission channel 250 Request mail action completed successfully 251 Addressed user does not exist on system but will forward receiver-address 354 Indicate to the sender that the mail message can now be sent. The end of the message is identified by two CR, LF characters 421 Service is not available 450 Mailbox unavailable and the requested mail action was not taken

10.5 Example (RFC821) > mail -v w.buchanan@napier.ac.uk Subject: Test This is a test message. Hello, how are you. Fred. EOT w.buchanan@napier.ac.uk... Connecting to central.napier.ac.uk. (smtp)... 220 central.napier.ac.uk ESMTP Sendmail 8.9.1/8.9.1; Fri, 18 Dec 1998 15:55:45 GMT >>> HELO www.eece.napier.ac.uk 250 central.napier.ac.uk Hello bill_b@www.eece.napier.ac.uk [146.176.151.139], pleased to meet you >>> MAIL From:<bill_b@www.eece.napier.ac.uk> 250 <bill_b@www.eece.napier.ac.uk>... Sender ok >>> RCPT To:<w.buchanan@napier.ac.uk> 250 <w.buchanan@napier.ac.uk>... Recipient ok >>> DATA 354 Enter mail, end with "." on a line by itself >>> . 250 PAA24767 Message accepted for delivery w.buchanan@napier.ac.uk... Sent (PAA24767 Message accepted for delivery) Closing connection to central.napier.ac.uk. >>> QUIT 221 central.napier.ac.uk closing connection

10.6 RFC822 Single text file sent RFC822 defines: From FREDB@ACOMP.CO.UK Wed Jul 5 12:36:49 1995 Received: from ACOMP.CO.UK ([154.220.12.27]) by central.napier.ac.uk (8.6.10/8.6.10) with SMTP id MAA16064 for <w.buchanan@central.napier.ac.uk>; Wed, 5 Jul 1995 12:36:43 +0100 Received: from WPOAWUK-Message_Server by ACOMP.CO.UK with Novell_GroupWise; Wed, 05 Jul 1995 12:35:51 +0000 Message-Id: <sffa8725.082@ACOMP.CO.UK > X-Mailer: Novell GroupWise 4.1 Date: Wed, 05 Jul 1995 12:35:07 +0000 From: Fred Bloggs <FREDB@ACOMP.CO.UK> To: w.buchanan@central.napier.ac.uk Subject: Technical Question Status: REO Dear Bill I have a big problem. Please help. Fred Message Single text file sent RFC822 header Message Message RFC822 defines: A header – which is basically the mail header and contains information for the successful transmission and delivery of a message. This typically contains the email addresses for sender and receiver, the time the message was sent and received. Any computer involved in the transmission can added to the header. The contents.

10.7 Example email message showing RFC822 part

10.8 MIME (Multipurpose Internet Mail Extension ) New headers MIME-version – a message that conforms to RFC 1521 or 1522 is MIME-version 1.0. Content-type – this field defines the type of data attached. Content-transfer-encoding – this field indicates the type of transformation necessary to represent the body in a format which can be transmitted as a message. Content-id – this field is used to uniquely identify MIME multiple attachments in the email message. Content-description – this field is a plain-text description of the object with the body. It can be used by the user to determine the data type. SMTP drawbacks: SMTP can only transmit ASCII characters and thus cannot transmit executable files or other binary objects. SMTP does not allow the attachment of files, such as images and audio. SMTP can only transmit 7-bit ASCII character thus it does support an extended ASCII character set. RFC1521/RFC1522 (MIME) Five new message header fields in the RFC 822 header, which provide extra information about the body of the message. Use of various content formats to support multimedia electronic mail. Defined transfer encodings for transforming attached files. Received: from pc419.eece.napier.ac.uk by ccmailgate.napier.ac.uk (SMTPLINK V2.11.01) ; Fri, 24 Jan 97 11:13:41 gmt Return-Path: <w.buchanan@napier.ac.uk> Message-ID: <32E90962.1574@napier.ac.uk> Date: Fri, 24 Jan 1997 11:14:22 -0800 From: Dr William Buchanan <w.buchanan@napier.ac.uk> Organization: Napier University X-Mailer: Mozilla 3.01 (Win95; I; 16bit) MIME-Version: 1.0 To: w.buchanan@napier.ac.uk Subject: Book recommendation Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit

10.9 MIME content (mixed) MIME content headers From: Dr William Buchanan <w.buchanan@napier.ac.uk> MIME-Version: 1.0 To: w.buchanan@napier.ac.uk Subject: Any subject Content-Type: multipart/mixed; boundary=“boundary name” This part of the message will be ignored. -- boundary name This is the first mail message part. And this is the second mail message part. -- boundary name -- MIME content headers text/plain text/richtext multipart/mixed multipart/parallel multipart/alternative multipart/digest message/rfc822 message/partial message/external-body image/jpeg image/gif video/mpeg audio/basic application/postscript application/octet-stream

10.10 MIME content (partial)  Example MIME file with 3 fragments (first part) From: Fred Bloggs <f.bloggs@toytown.ac.uk> MIME-Version: 1.0 To: a.body@anytown.ac.uk Subject: Any subject Content-Type: message/partial; id=“xyz@toytown.ac.uk”; number=1; total=3 Content=type: video/mpeg First part of MPEG file  Example MIME file with 3 fragments (second part) id=“xyz@toytown.ac.uk”; number=2; total=3 Second part of MPEG file  Example MIME file with 3 fragments (third part) id=“xyz@toytown.ac.uk”; number=3; total=3 Third part of MPEG file MIME content headers text/plain text/richtext multipart/mixed multipart/parallel multipart/alternative multipart/digest message/rfc822 message/partial message/external-body image/jpeg image/gif video/mpeg audio/basic application/postscript application/octet-stream

10.11 MIME encodings 7bit – no encoding, and all of the characters are 7-bit ASCII characters. 8bit – no encoding, and extended 8-bit ASCII characters are used. quoted-printable – encodes the data so that non-printing ASCII characters (such as line feeds and carriage returns) are displayed in a readable form. base64 – encodes by mapping 6-bit blocks of input to 8-bit blocks of output, all of which are printable ASCII characters. x-token – another non-standard encoding method. E.g. Content-transfer-encoding: quoted-printable Quotable-printable: Message has been encoded so that all non-printing characters have been converted to printable characters. A typical transform is to insert =xx where xx is the hexadecimal equivalent for the ASCII character. A form feed (FF) would be encoded with ‘=0C’

10.12 Just for fun

10.13 JFF Part II