Netprog: Email Protocols 1
- SMTP - Simple Mail Transfer Protocol
– RFC 821
- POP - Post Office Protocol
– RFC 1939
- Also:
Email SMTP - Simple Mail Transfer Protocol RFC 821 POP - Post - - PowerPoint PPT Presentation
Email SMTP - Simple Mail Transfer Protocol RFC 821 POP - Post Office Protocol RFC 1939 Also: RFC 822 Standard for the Format of ARPA Internet Text Messages RFCs 1521, 1522 Mime Netprog: Email Protocols 1
Netprog: Email Protocols 1
Netprog: Email Protocols 2
Netprog: Email Protocols 3
Netprog: Email Protocols 4
Netprog: Email Protocols 5
Netprog: Email Protocols 6
Netprog: Email Protocols 7
wyxu@canopus % telnet hub0.engr.sc.edu 25 Trying 129.252.21.22... Connected to hub0.engr.sc.edu. Escape character is '^]'. 220 HUB0.engr.sc.edu Microsoft ESMTP MAIL Service ready at Sat, 17 Nov 2007 20:18:49 -0500 HELO 250 HUB0.engr.sc.edu Hello [129.252.130.106] MAIL from:<wyxu@engr.sc.edu> 250 2.1.0 Sender OK RCPT to:<wyxu@cse.sc.edu> 250 2.1.5 Recipient OK DATA 354 Start mail input; end with <CRLF>.<CRLF> this is a test mail . 250 2.6.0 <c2b1c1a0-3951-4fd6-b6fb-675c0ee4a0dd> Queued mail for delivery
Netprog: Email Protocols 8
DATA 354 Start mail input; end with <CRLF>.<CRLF> this message is a test of SMTP .. ..foo .. . 250 2.6.0 <c2b1c1a0-3951-4fd6-b6fb-675c0ee4a0dd> Queued mail for delivery
Netprog: Email Protocols 9
S: VRFY Smith R: 250 Fred Smith <Smith@USC-ISIF.ARPA>
S: EXPN Example-People R: 250-Jon Postel <Postel@USC-ISIF.ARPA> R: 250-Fred Fonebone <Fonebone@USC-ISIQ.ARPA> R: 250-Sam Q. Smith <SQSmith@USC-ISIQ.ARPA> R: 250-Quincy Smith <@USC-ISIF.ARPA:Q-Smith@ISI-VAXA.ARPA> R: 250-<joe@foo-unix.ARPA> R: 250 <xyz@bar-unix.ARPA>
Netprog: Email Protocols 10
Netprog: Email Protocols 11
– Specified by MAIL and RCPT commands
– RFC 822 specifies header format – Each header field contains a name, a colon, and field value
– When transferred using DATA command, headers are sent first, followed by a blank line, followed by body
Netprog: Email Protocols 12
Netprog: Email Protocols 13
Netprog: Email Protocols 14
– Simplify configuration of all MTAs other than relay system’s MTA – Allow one system at an organization to act as mail hub
Netprog: Email Protocols 15
Netprog: Email Protocols 16
Netprog: Email Protocols 17
four 6-bit values
From: =?US-ASCII?Q?Keith_Moore?= <moore@cs.utk.edu> To:=?ISO-8859-1?Q?Keld_j=F8rn_Sim? =<test@gmail.com> Subject:=?ISO-8859-1?B?SWYgeW91IGNhbiByZWFkIHRoaXMgeW8=?==?ISO- 8859-2?B?dSB1bmR1cnN0YW5kIHRoZSBleGFtcGxlLg==?=
Netprog: Email Protocols 18
Mime-Version: Content-Type: Content-Transfer-Encoding: Content-ID: Content-Description:
Mime-Version:1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII
Netprog: Email Protocols 19
Netprog: Email Protocols 20
Netprog: Email Protocols 21
Netprog: Email Protocols 22
Netprog: Email Protocols 23
Netprog: Email Protocols 24
Netprog: Email Protocols 25
S: <wait for connection on TCP port 110> C: <open connection> S: +OK POP3 server ready <1896.697170952@dbc.mtview.ca.us> C: USER mrose S: +OK User accepted C: PASS mrosepass S: +OK Pass accepted C: STAT S: +OK 2 320 C: LIST S: +OK 2 messages (320 octets) S: 1 120 S: 2 200 S: . C: RETR 1 S: +OK 120 octets S: <the POP3 server sends message 1> S: . C: DELE 1 S: +OK message 1 deleted C: RETR 2 S: +OK 200 octets S: <the POP3 server sends message 2> S: . C: DELE 2 S: +OK message 2 deleted C: QUIT S: +OK dewey POP3 server signing off (maildrop empty)