HANNAM UNIVERSITY 1 Chapter 22 Simple Mail Transfer Protocol (SMTP)

Slides:



Advertisements
Similar presentations
McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Chapter 22 Simple Mail Transfer Protocol (SMTP)
Advertisements

By: E. Susheel Chandar M. Guna Sekaran Intranet Mail Server.
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,
SMTP – Simple Mail Transfer Protocol
Application: Electronic Mail Linda Wu (CMPT )
(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
Simple Mail Transfer Protocol (SMTP) CS-328 Dick Steflik.
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 (SMTP) Team: Zealous Team: Zealous Presented By: Vishal Parikh ( ) Vishal Parikh ( ) Ribhu Pathria( )
Simple Mail Transfer Protocol
Chapter 7: Internet-Based Applications Business Data Communications, 6e.
Architecture of SMTP, POP, IMAP, MIME.
Mail Server Fitri Setyorini. Content SMTP POP3 How mail server works IMAP.
Electronic Mail: SMTP, POP, and IMAP
Simple Mail Transfer Protocol (SMTP) Kanika Thapar CISC 856 TCP/IP and Upper Layer Protocols 11/8/2007 (Some slides provided by Ezra Kissel, some figures.
Electronic Mail Three major components: SMTP user agents mail servers
Electronic Mail (SMTP, POP, IMAP, MIME)
10. Electronic Mail.
Simple Mail Transfer Protocol
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
CSE401N: Computer Networks Lecture-5 Electronic Mail S. M. Hasibul Haque Lecturer Dept. of CSE, BUET.
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.
Electronic Mail Originally –Memo sent from one user to another Now –Memo sent to one or more mailboxes Mailbox –Destination point for messages.
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.
Computer Networks26-1 Chapter 26. Remote Logging, Electronic Mail and File Transfer.
Sending and Receiving Mails
Simple Mail Transfer Protocol (SMTP)
SMTP – Simple Mail Transfer Protocol
SMTP( 简单邮件传输协议 ) SIMPLE MAIL TRANSFER PROTOCOL RFC 2812.
File Transfer Protocol (FTP)
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.
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.
SMTP / MIME Florin Zidaru.
McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Chapter 26 SMTP and FTP.
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
1 Kyung Hee University Chapter 22 Simple Mail Transfer Protocol (SMTP)
Chapter 26 SMTP and FTP 26.1 Electronic Mail Sending/Receiving Mail Addresses User Agent MIME Mail Transfer Agent Mail Access Protocols.
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.
Simple Mail Transfer Protocol
SMTP - Simple Mail Transfer Protocol POP - Post Office Protocol
Networking Applications
Simple Mail Transfer Protocol (SMTP)
SMTP, POP3, IMAP.
CS- 492 : Distributed system & Parallel Processing
Chapter 2: Application layer
William Stallings Data and Computer Communications
Presentation transcript:

HANNAM UNIVERSITY 1 Chapter 22 Simple Mail Transfer Protocol (SMTP)

HANNAM UNIVERSITY 2 CONTENTS USER AGENT (UA) ADDRESSES DELAYED DELIVERY ALIASES MAIL TRANSFER AGENT (MTA) COMMANDS AND RESPONSES MAIL TRANSFER PHASES MIME MAIL DELIVERY MAIL ACCESS PROTOCOLS

HANNAM UNIVERSITY 3 SMTP 개념

HANNAM UNIVERSITY 4 UA 와 MTA

HANNAM UNIVERSITY 5 중계 MTA

HANNAM UNIVERSITY 6 전자우편 게이트웨이

HANNAM UNIVERSITY 7 USER AGENT (UA) 22.1

HANNAM UNIVERSITY 사용자 에이전트  전자우편 송신  봉투  송신자 주소, 수신자 주소  메시지  헤더 : 송신자, 수신자, 메시지 제목  몸체 : 실제정보  전자우편 수신  주기적으로 편지함 검사 및 통보  메시지 출력  CMP 메시지

HANNAM UNIVERSITY 사용자 에이전트

HANNAM UNIVERSITY 10 ADDRESSES 22.2

HANNAM UNIVERSITY 주소  전자우편 주소

HANNAM UNIVERSITY 12 DELAYED DELIVERY 22.3

HANNAM UNIVERSITY 지연배달  송신측 지연  메시지 생성후 스풀로 이동  주기적으로 스풀에 저장된 메시지 검사  타임아웃 발생시 송신자에게 배달

HANNAM UNIVERSITY 지연배달  송신측 지연

HANNAM UNIVERSITY 지연배달  수신측 지연  메시지 수신후 편지함으로 이동  중간지연  중계 MTA 들이 전자우편을 수신하고 편지함과 스풀 에 저장하며 적절한 때에 전송

HANNAM UNIVERSITY 지연배달  수신측 지연

HANNAM UNIVERSITY 17 ALIASES 22.4

HANNAM UNIVERSITY 별칭  별칭확장

HANNAM UNIVERSITY 별칭  일대다 확장

HANNAM UNIVERSITY 별칭  다대일 확장

HANNAM UNIVERSITY 21 MAIL TRANSFER AGENT 22.5

HANNAM UNIVERSITY 전자우편 전송 에이전트  전체 전자우편 시스템

HANNAM UNIVERSITY 23 COMMANDS AND RESPONSES 22.6

HANNAM UNIVERSITY 명령과 응답  명령과 응답

HANNAM UNIVERSITY 명령과 응답  명령어 형식  키워드 뒤에 따라오는 0 이상의 인수  필수 명령  HELO, MAIL, RCPT, DATA, QUIT  권장 항목  RSET, VRFY, NOOP  그 외  TURN, EXPN, HELP, SEND, SMOL, SMAL

HANNAM UNIVERSITY 명령과 응답 KeywordArgument(s) HELO Sender ’ s host name MAIL Sender of the message RCPT Intended recipient of the message DATA Body f the mail QUIT RSET VRFY Name of recipient to be verified NOOP TURN EXPN Mailing list to be expanded HELP Command namd SEND Intended recipient of the message SMOL Intended recipient of the message SMAL Intended recipient of the message

HANNAM UNIVERSITY 명령과 응답  명령  HELLO : 클라이언트가 자신이 누구인지 알림 HELLO : challenger.atc.fhda.edu  MAIL FROM : 송신자를 알림 MAIL FROM :  RCPT TO : 수신자를 알림 RCPT TO :  DATA : 실제 메시지 송신 DATA This is the message To be sent to the McGraw-Hill Company  QUIT 메시지 종료 QUIT

HANNAM UNIVERSITY 명령과 응답  응답  2yz ( 긍정적 완료 응답 )  성공적인 완료와 새로운 명령 시작을 의미  3yz ( 긍적적 중간 응답 )  요청된 명령은 수행되었으나 수신자가 수행하기 전에 추가정보 필요  4yz ( 임시 부정적 완료 응답 )  요청된 명령이 거절되었으나, 오류 조건이 임시적임을 의미한다. 그 명령은 재 전송  5yz ( 영구 부정적 완료 응답 )  요청된 명령이 거절되었고, 재전송 될 수 없다

HANNAM UNIVERSITY 명령과 응답 CodeDescription Positive Completion Reply 211System status or help reply 214Help message 220Service ready 221Service closing transmission channel 250Request command completed 251User not local the message will be forwarded Positive Intermediate Reply 354Start mail input Transient Negative Completion Reply 421Service not available 450Mailbox not available

HANNAM UNIVERSITY 명령과 응답 451 Command aborted: local error 452 Command aborted; insufficient storage Permanent Negative Completion Reply 500 Syntax error; unrecognized command 501 Syntax error in parameters or arguments 502 Command not implemented 503 Bad sequence of commands 504 Command temporarily not implemented 550 Command is not executed; mailbox unavailable 551 User not local 552 Requested action aborted; esceeded storage location 553 Requested action not taken; mailbox name not allowed 554 Transaction failed

HANNAM UNIVERSITY 31 MAIL TRANSFER PHASES 22.7

HANNAM UNIVERSITY 전자우편 전송 단계  연결 수립

HANNAM UNIVERSITY 전자우편 전송 단계  메시지 전송

HANNAM UNIVERSITY 전자우편 전송 단계  연결종료

HANNAM UNIVERSITY 35 MULTIPURPOSE INTERNET MAIL EXTENSIONS (MIME) 22.8

HANNAM UNIVERSITY MIME  MIME  SMTP 의 확장  ASC Ⅱ가 아닌 데이터를 NVT ASC Ⅱ로 변환

HANNAM UNIVERSITY MIME  MIME 헤더

HANNAM UNIVERSITY MIME  MIME-Version  사용된 MIME 의 버전을 규정 MIME-Version : 1.1  Content-Type  메시지의 몸체에서 사용되는 데이터의 종류 규정 content-Type :

HANNAM UNIVERSITY MIME  MIME 데이터 유형과 서브유형 TypeSubtypeDescription TextPlain Unformatted text Multi- Part Mixed Body contains ordered parts of different data types Parallel Same as above, but no order Digest Similar to Mixed, but the default is message/RFC822 Alternative Parts are different versions of the same message Messag e RFC822 Body is an encapsulated message Partial Body is a fragment of a bigger message External- Body Body is a reference to another message

HANNAM UNIVERSITY MIME TypeSubtypeDescription Image JPEGImage is in JPEG format GIFImage is in GIF format VideoMPEGVideo is in MPEG format AudioBasicSingle channel encoding of voice at 8 KHz Applica- tion PostScriptAdobe PostScript Octet-streamGeneral binary data(eight-bit bytes)

HANNAM UNIVERSITY MIME  Content-Transfer-Encoding  메시지를 0 과 1 로 인코딩하는 방법 정의 Content-Transfer-encoding : TypeDescription 7bit NVT ASC Ⅱ characters and short lines 8bit Non-ASC Ⅱ characters and short lines Binary Non-ASC Ⅱ characters with unlimited-length lines Base64 Six-bit blocks of data are encoded into eight- bit ASC Ⅱ characters Quoted- printable Non-ASC Ⅱ characters are encoded as an equal sign followed by an ASC Ⅱ code

HANNAM UNIVERSITY MIME  Base 64

HANNAM UNIVERSITY MIME  Quoted-printable

HANNAM UNIVERSITY 44 MAIL DELIVERY 22.9

HANNAM UNIVERSITY 전자우편 배달  delivery

HANNAM UNIVERSITY 전자우편 배달  delivery  첫 번째 단계  사용자 에이전트에서 로컬 서버로 이동  SMTP Client/SMTP Server Software  두 번째 단계  로컬 서버에서 원격 서버로 이동  세 번째 단계  원격 사용자 에이전트는 편지함을 액세스하고 전자우편을 받기 위해 POP3 와 IMAP4 사용

HANNAM UNIVERSITY 47 MAIL ACCESS PROTOCOLS 22.10

HANNAM UNIVERSITY 전자우편 접근 프로토콜  Access Protocol  메인서버 편지함에서 수신자에게 가져오는 Pull Protocol  POP3(Post Office Protocol 버전 3)  Server/client protocol  IMAP4(Internet Mail Access Protocol 버전 4)  POP3 에 비해 추가적인 기능 제공

HANNAM UNIVERSITY 전자우편 접근 프로토콜  POP3