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