SlideShare uma empresa Scribd logo
1 de 42
CChhaapptteerr 2200 
EElleeccttrroonniicc MMaaiill:: 
SSMMTTPP,, PPOOPP,, aanndd IIMMAAPP 
Objectives 
Upon completion you will be able to: 
• Understand four configurations of email architecture 
• Understand the functions and formats of a user agent 
• Understand MIME and its capabilities and data types 
• Understand the functions and commands of an MTA 
• Understand the function of POP3 and IMAP4 
TCP/IP Protocol Suite 1
20.1 ARCHITECTURE 
To explain the architecture of email, we give four sscceennaarriiooss.. WWee bbeeggiinn 
wwiitthh tthhee ssiimmpplleesstt ssiittuuaattiioonn aanndd aadddd ccoommpplleexxiittyy aass wwee pprroocceeeedd.. TThhee ffoouurrtthh 
sscceennaarriioo iiss tthhee mmoosstt ccoommmmoonn iinn tthhee eexxcchhaannggee ooff eemmaaiill.. 
TThhee ttooppiiccss ddiissccuusssseedd iinn tthhiiss sseeccttiioonn iinncclluuddee:: 
FFiirrsstt SScceennaarriioo 
SSeeccoonndd SScceennaarriioo 
TThhiirrdd SScceennaarriioo 
FFoouurrtthh SScceennaarriioo 
TCP/IP Protocol Suite 2
Figure 20.1 First scenario 
TCP/IP Protocol Suite 3
NNoottee:: 
When the sender and the receiver of 
an email are on the same system, we 
need only two user agents. 
TCP/IP Protocol Suite 4
Figure 20.2 Second scenario 
TCP/IP Protocol Suite 5
NNoottee:: 
When the sender and the receiver of 
an email are on different systems, we 
need two UAs and a pair of MTAs 
(client and server). 
TCP/IP Protocol Suite 6
Figure 20.3 Third scenario 
TCP/IP Protocol Suite 7
NNoottee:: 
When the sender is connected to the 
mail server via a LAN or a WAN, we 
need two UAs and two pairs of MTAs 
(client and server). 
TCP/IP Protocol Suite 8
Figure 20.4 Fourth scenario 
TCP/IP Protocol Suite 9
Figure 20.5 Push vs. pull 
TCP/IP Protocol Suite 10
NNoottee:: 
When both sender and receiver are 
connected to the mail server via a LAN 
or a WAN, we need two UAs, two pairs 
of MTAs (client and server), and a 
pair of MAAs (client and server). This 
is the most common situation today. 
TCP/IP Protocol Suite 11
20.2 USER AGENT 
The user agent (UA) provides service to the user ttoo mmaakkee tthhee pprroocceessss ooff 
sseennddiinngg aanndd rreecceeiivviinngg aa mmeessssaaggee eeaassiieerr.. 
TThhee ttooppiiccss ddiissccuusssseedd iinn tthhiiss sseeccttiioonn iinncclluuddee:: 
SSeerrvviicceess PPrroovviiddeedd bbyy aa UUsseerr AAggeenntt 
UUsseerr AAggeenntt TTyyppeess 
SSeennddiinngg MMaaiill 
RReecceeiivviinngg MMaaiill 
AAddddrreesssseess 
MMaaiilliinngg LLiisstt 
MMIIMMEE 
TCP/IP Protocol Suite 12
Figure 20.6 User agent 
TCP/IP Protocol Suite 13
NNoottee:: 
Some examples of command-driven 
user agents are mail, pine, and elm 
TCP/IP Protocol Suite 14
NNoottee:: 
Some examples of GUI-based user 
agents are Eudora, Outlook, and 
Netscape. 
TCP/IP Protocol Suite 15
Figure 20.7 Format of an email 
TCP/IP Protocol Suite 16
Figure 20.8 Email address 
TCP/IP Protocol Suite 17
Figure 20.9 MIME 
TCP/IP Protocol Suite 18
Figure 20.10 MIME header 
TCP/IP Protocol Suite 19
TTaabbllee 2200..11 DDaattaa ttyyppeess aanndd ssuubbttyyppeess iinn MMIIMMEE 
TCP/IP Protocol Suite 20
TTaabbllee 2200..11 DDaattaa ttyyppeess aanndd ssuubbttyyppeess iinn MMIIMMEE ((CCoonnttiinnuueedd)) 
TCP/IP Protocol Suite 21
TTaabbllee 2200..22 CCoonntteenntt--ttrraannssffeerr--eennccooddiinngg 
TCP/IP Protocol Suite 22
Figure 20.11 Base64 
TCP/IP Protocol Suite 23
TTaabbllee 2200..33 BBaassee6644 eennccooddiinngg ttaabbllee 
TCP/IP Protocol Suite 24
Figure 20.12 Quoted-printable 
TCP/IP Protocol Suite 25
20.3 MESSAGE TRANSFER AGENT: 
SMTP 
The actual mail transfer requires message transfer aaggeennttss ((MMTTAAss)).. TThhee 
pprroottooccooll tthhaatt ddeeffiinneess tthhee MMTTAA cclliieenntt aanndd sseerrvveerr iinn tthhee IInntteerrnneett iiss ccaalllleedd 
SSiimmppllee MMaaiill TTrraannssffeerr PPrroottooccooll ((SSMMTTPP)).. 
TThhee ttooppiiccss ddiissccuusssseedd iinn tthhiiss sseeccttiioonn iinncclluuddee:: 
CCoommmmaannddss aanndd RReessppoonnsseess 
MMaaiill TTrraannssffeerr PPhhaasseess 
TCP/IP Protocol Suite 26
Figure 20.13 SMTP range 
TCP/IP Protocol Suite 27
Figure 20.14 Commands and responses 
TCP/IP Protocol Suite 28
Figure 20.15 Command format 
TCP/IP Protocol Suite 29
TTaabbllee 2200..44 CCoommmmaannddss 
TCP/IP Protocol Suite 30
TTaabbllee 2200..55 RReessppoonnsseess 
TCP/IP Protocol Suite 31
TTaabbllee 2200..55 RReessppoonnsseess ((CCoonnttiinnuueedd)) 
TCP/IP Protocol Suite 32
Figure 20.16 Connection establishment 
TCP/IP Protocol Suite 33
Figure 20.17 Message transfer 
TCP/IP Protocol Suite 34
Figure 20.18 Connection termination 
TCP/IP Protocol Suite 35
ExamplE 1 
Let us see how we can directly use SMTP to send an email and simulate the 
commands and responses we described in this section. We use TELNET to 
log into port 25 (the well-known port for SMTP). We then use the 
commands directly to send an email. In this example, 
forouzanb@adelphia.net is sending an email to himself. The first few lines 
show TELNET trying to connect to the adelphia mail server. 
$ telnet mail.adelphia.net 25 
Trying 68.168.78.100... 
Connected to mail.adelphia.net (68.168.78.100). 
After connection, we can type the SMTP commands and then receive the 
responses as shown below. We have shown the commands in black and the 
responses in color. Note that we have added for clarification some comment 
lines, designated by the “=” sign. These lines are not part of the email 
procedure. 
TCP/IP Protocol Suite 36
ExamplE 1 (ContinuEd) 
================== Connection Establishment ================ 
220 mta13.adelphia.net SMTP server ready Fri, 6 Aug 2004 . . . 
HELO mail.adelphia.net 
250 mta13.adelphia.net 
===================== Envelope =================== 
MAIL FROM: forouzanb@adelphia.net 
250 Sender <forouzanb@adelphia.net> Ok 
RCPT TO: forouzanb@adelphia.net 
250 Recipient <forouzanb@adelphia.net> Ok 
=================== Header and Body ================== 
DATA 
354 Ok Send data ending with <CRLF>.<CRLF> 
From: Forouzan 
TO: Forouzan 
This is a test message 
to show SMTP in action. 
. 
TCP/IP Protocol Suite 37
ExamplE 1 (ContinuEd) 
============= Connection Termination=============== 
250 Message received: adelphia.net@mail.adelphia.net 
QUIT 
221 mta13.adelphia.net SMTP server closing connection 
Connection closed by foreign host. 
TCP/IP Protocol Suite 38
20.4 MESSAGE ACCESS AGENT: 
POP AND IMAP 
The third stage of mail delivery uses a message access aaggeenntt;; tthhee cclliieenntt 
mmuusstt ppuullll mmeessssaaggeess ffrroomm tthhee sseerrvveerr.. CCuurrrreennttllyy ttwwoo mmeessssaaggee aacccceessss 
pprroottooccoollss aarree aavvaaiillaabbllee:: PPoosstt OOffffiiccee PPrroottooccooll,, vveerrssiioonn 33 ((PPOOPP33)) aanndd 
IInntteerrnneett MMaaiill AAcccceessss PPrroottooccooll,, vveerrssiioonn 44.. 
TThhee ttooppiiccss ddiissccuusssseedd iinn tthhiiss sseeccttiioonn iinncclluuddee:: 
PPOOPP33 
IIMMAAPP44 
TCP/IP Protocol Suite 39
Figure 20.19 POP3 and IMAP4 
TCP/IP Protocol Suite 40
Figure 20.20 POP3 
TCP/IP Protocol Suite 41
20.5 WEB-BASED MAIL 
Some websites such as Hotmail and Yahoo provide eemmaaiill sseerrvviiccee ttoo 
aannyyoonnee wwhhoo aacccceesssseess tthhee ssiittee.. MMaaiill ttrraannssffeerr aanndd rreettrriieevvaall rreeqquuiirreess tthhee uussee 
ooff HHTTTTPP.. 
TCP/IP Protocol Suite 42

Mais conteúdo relacionado

Mais procurados

Mais procurados (20)

What Is User Datagram Protocol?
What Is User Datagram Protocol?What Is User Datagram Protocol?
What Is User Datagram Protocol?
 
Ip addressing classful
Ip addressing classfulIp addressing classful
Ip addressing classful
 
Network Protocol and TCP/IP
Network Protocol and TCP/IPNetwork Protocol and TCP/IP
Network Protocol and TCP/IP
 
Chap 19 ftp & tftp
Chap 19 ftp & tftpChap 19 ftp & tftp
Chap 19 ftp & tftp
 
Cs8591 Computer Networks
Cs8591 Computer NetworksCs8591 Computer Networks
Cs8591 Computer Networks
 
Lecture 6 -_presentation_layer
Lecture 6 -_presentation_layerLecture 6 -_presentation_layer
Lecture 6 -_presentation_layer
 
Data link control protocol(1)
Data link control protocol(1)Data link control protocol(1)
Data link control protocol(1)
 
Smtp
SmtpSmtp
Smtp
 
Transport Layer
Transport LayerTransport Layer
Transport Layer
 
Ethernet
EthernetEthernet
Ethernet
 
Chapter 2: Network Models
Chapter 2: Network ModelsChapter 2: Network Models
Chapter 2: Network Models
 
The Application Layer
The Application LayerThe Application Layer
The Application Layer
 
Ccn unit-2- data link layer by prof.suresha v
Ccn unit-2- data link layer by prof.suresha vCcn unit-2- data link layer by prof.suresha v
Ccn unit-2- data link layer by prof.suresha v
 
Data communication and networks by B. Forouzan
Data communication and networks by B. ForouzanData communication and networks by B. Forouzan
Data communication and networks by B. Forouzan
 
Osi and tcp ip model
Osi and tcp ip modelOsi and tcp ip model
Osi and tcp ip model
 
Transmission Control Protocol (TCP)
Transmission Control Protocol (TCP)Transmission Control Protocol (TCP)
Transmission Control Protocol (TCP)
 
Simple Mail Transfer Protocol
Simple Mail Transfer ProtocolSimple Mail Transfer Protocol
Simple Mail Transfer Protocol
 
Ch12
Ch12Ch12
Ch12
 
DCN Error Detection & Correction
DCN Error Detection & CorrectionDCN Error Detection & Correction
DCN Error Detection & Correction
 
Address resolution protocol (ARP)
Address resolution protocol (ARP)Address resolution protocol (ARP)
Address resolution protocol (ARP)
 

Destaque

Destaque (20)

Chap 26 vpn
Chap 26 vpnChap 26 vpn
Chap 26 vpn
 
Chap 21 snmp
Chap 21 snmpChap 21 snmp
Chap 21 snmp
 
Chap 22 www http
Chap 22 www httpChap 22 www http
Chap 22 www http
 
Chap 28 security
Chap 28 securityChap 28 security
Chap 28 security
 
Chap 18 telnet
Chap 18 telnetChap 18 telnet
Chap 18 telnet
 
Chap 25 multimedia
Chap 25 multimediaChap 25 multimedia
Chap 25 multimedia
 
Chap 02 osi model
Chap 02 osi modelChap 02 osi model
Chap 02 osi model
 
Chap 17 dns
Chap 17 dnsChap 17 dns
Chap 17 dns
 
Smtp protocol
Smtp protocolSmtp protocol
Smtp protocol
 
Chap 27 next generation i pv6
Chap 27 next generation i pv6Chap 27 next generation i pv6
Chap 27 next generation i pv6
 
TFTP - Trivial File Transfer Protocol
TFTP - Trivial File Transfer ProtocolTFTP - Trivial File Transfer Protocol
TFTP - Trivial File Transfer Protocol
 
User datagram protocol (udp)
User datagram protocol (udp)User datagram protocol (udp)
User datagram protocol (udp)
 
TCP/IP Network ppt
TCP/IP Network pptTCP/IP Network ppt
TCP/IP Network ppt
 
ET3003-1 introduction (Semester II 2013-2014)
ET3003-1 introduction (Semester II 2013-2014)ET3003-1 introduction (Semester II 2013-2014)
ET3003-1 introduction (Semester II 2013-2014)
 
Ch20
Ch20Ch20
Ch20
 
Udp Programming
Udp ProgrammingUdp Programming
Udp Programming
 
How Email Works storyboarad_cartoon
How Email Works storyboarad_cartoonHow Email Works storyboarad_cartoon
How Email Works storyboarad_cartoon
 
Chap 24 mobile ip
Chap 24 mobile ipChap 24 mobile ip
Chap 24 mobile ip
 
Panorama des technologies antispam
Panorama des technologies antispamPanorama des technologies antispam
Panorama des technologies antispam
 
Lec5 chp6
Lec5 chp6Lec5 chp6
Lec5 chp6
 

Semelhante a Chap 20 smtp, pop, imap

Electronic mail chap-20
Electronic mail chap-20Electronic mail chap-20
Electronic mail chap-20Vaidik Trivedi
 
Meeting 11. electronic mail: smtp
Meeting 11. electronic mail: smtpMeeting 11. electronic mail: smtp
Meeting 11. electronic mail: smtpSyaiful Ahdan
 
Chapter 26 - Remote Logging, Electronic Mail & File Transfer
Chapter 26 - Remote Logging, Electronic Mail & File TransferChapter 26 - Remote Logging, Electronic Mail & File Transfer
Chapter 26 - Remote Logging, Electronic Mail & File TransferWayne Jones Jnr
 
Chap 13 stream control transmission protocol
Chap 13 stream control transmission protocolChap 13 stream control transmission protocol
Chap 13 stream control transmission protocolNoctorous Jamal
 
PowerPoint_merge.ppt
PowerPoint_merge.pptPowerPoint_merge.ppt
PowerPoint_merge.pptssuser3b47e6
 
PowerPoint_merge (2).pdf
PowerPoint_merge (2).pdfPowerPoint_merge (2).pdf
PowerPoint_merge (2).pdfssuser3b47e6
 
Internet technology unit 3
Internet technology unit 3Internet technology unit 3
Internet technology unit 3WE-IT TUTORIALS
 
IRJET- Secure Email Software using e-SMTP
IRJET-  	  Secure Email Software using e-SMTPIRJET-  	  Secure Email Software using e-SMTP
IRJET- Secure Email Software using e-SMTPIRJET Journal
 
IRJET- Secure Email Software using e-SMTP
IRJET- Secure Email Software using e-SMTPIRJET- Secure Email Software using e-SMTP
IRJET- Secure Email Software using e-SMTPIRJET Journal
 
IRJET- Modeling a New Startup Algorithm for TCP New Reno
IRJET- Modeling a New Startup Algorithm for TCP New RenoIRJET- Modeling a New Startup Algorithm for TCP New Reno
IRJET- Modeling a New Startup Algorithm for TCP New RenoIRJET Journal
 
transfer protocols,ftp,smtp,pop,imap
transfer protocols,ftp,smtp,pop,imaptransfer protocols,ftp,smtp,pop,imap
transfer protocols,ftp,smtp,pop,imapAKSHIT KOHLI
 
12753028 scot-configuration-troubleshooting
12753028 scot-configuration-troubleshooting12753028 scot-configuration-troubleshooting
12753028 scot-configuration-troubleshootingkratos1979
 

Semelhante a Chap 20 smtp, pop, imap (20)

Electronic mail chap-20
Electronic mail chap-20Electronic mail chap-20
Electronic mail chap-20
 
Chap 23 ip over atm
Chap 23 ip over atmChap 23 ip over atm
Chap 23 ip over atm
 
Meeting 11. electronic mail: smtp
Meeting 11. electronic mail: smtpMeeting 11. electronic mail: smtp
Meeting 11. electronic mail: smtp
 
Chapter 26 - Remote Logging, Electronic Mail & File Transfer
Chapter 26 - Remote Logging, Electronic Mail & File TransferChapter 26 - Remote Logging, Electronic Mail & File Transfer
Chapter 26 - Remote Logging, Electronic Mail & File Transfer
 
Chapter 26
Chapter 26Chapter 26
Chapter 26
 
Chap 13 stream control transmission protocol
Chap 13 stream control transmission protocolChap 13 stream control transmission protocol
Chap 13 stream control transmission protocol
 
Chap 11 udp
Chap 11 udpChap 11 udp
Chap 11 udp
 
Transportlayer.ppt
Transportlayer.pptTransportlayer.ppt
Transportlayer.ppt
 
Chap 09 icmp
Chap 09 icmpChap 09 icmp
Chap 09 icmp
 
Chap 10 igmp
Chap 10 igmpChap 10 igmp
Chap 10 igmp
 
PowerPoint_merge.ppt
PowerPoint_merge.pptPowerPoint_merge.ppt
PowerPoint_merge.ppt
 
IGMP.ppt
IGMP.pptIGMP.ppt
IGMP.ppt
 
PowerPoint_merge (2).pdf
PowerPoint_merge (2).pdfPowerPoint_merge (2).pdf
PowerPoint_merge (2).pdf
 
Internet technology unit 3
Internet technology unit 3Internet technology unit 3
Internet technology unit 3
 
IRJET- Secure Email Software using e-SMTP
IRJET-  	  Secure Email Software using e-SMTPIRJET-  	  Secure Email Software using e-SMTP
IRJET- Secure Email Software using e-SMTP
 
IRJET- Secure Email Software using e-SMTP
IRJET- Secure Email Software using e-SMTPIRJET- Secure Email Software using e-SMTP
IRJET- Secure Email Software using e-SMTP
 
Chap 18 telnet
Chap 18 telnetChap 18 telnet
Chap 18 telnet
 
IRJET- Modeling a New Startup Algorithm for TCP New Reno
IRJET- Modeling a New Startup Algorithm for TCP New RenoIRJET- Modeling a New Startup Algorithm for TCP New Reno
IRJET- Modeling a New Startup Algorithm for TCP New Reno
 
transfer protocols,ftp,smtp,pop,imap
transfer protocols,ftp,smtp,pop,imaptransfer protocols,ftp,smtp,pop,imap
transfer protocols,ftp,smtp,pop,imap
 
12753028 scot-configuration-troubleshooting
12753028 scot-configuration-troubleshooting12753028 scot-configuration-troubleshooting
12753028 scot-configuration-troubleshooting
 

Mais de Noctorous Jamal

Chap 06 delivery and routing of ip packets
Chap 06 delivery and routing of ip packetsChap 06 delivery and routing of ip packets
Chap 06 delivery and routing of ip packetsNoctorous Jamal
 
Chap 05 ip addresses classfless
Chap 05 ip addresses classflessChap 05 ip addresses classfless
Chap 05 ip addresses classflessNoctorous Jamal
 
Chap 04 ip addresses classful
Chap 04 ip addresses classfulChap 04 ip addresses classful
Chap 04 ip addresses classfulNoctorous Jamal
 
Chap 03 underlying technology
Chap 03 underlying technologyChap 03 underlying technology
Chap 03 underlying technologyNoctorous Jamal
 
Lecture 8 The Communication System Finalterm Slides
Lecture 8  The Communication System Finalterm SlidesLecture 8  The Communication System Finalterm Slides
Lecture 8 The Communication System Finalterm SlidesNoctorous Jamal
 
Lecture 7 The Communication System Finalterm Slides
Lecture 7  The Communication System Finalterm SlidesLecture 7  The Communication System Finalterm Slides
Lecture 7 The Communication System Finalterm SlidesNoctorous Jamal
 
Lecture 6 The Communication System Finalterm Slides
Lecture 6  The Communication System Finalterm SlidesLecture 6  The Communication System Finalterm Slides
Lecture 6 The Communication System Finalterm SlidesNoctorous Jamal
 

Mais de Noctorous Jamal (14)

Chap 16 bootp & dhcp
Chap 16 bootp & dhcpChap 16 bootp & dhcp
Chap 16 bootp & dhcp
 
Chap 15 multicasting
Chap 15 multicastingChap 15 multicasting
Chap 15 multicasting
 
Chap 14 rip, ospf
Chap 14 rip, ospfChap 14 rip, ospf
Chap 14 rip, ospf
 
Chap 12 tcp
Chap 12 tcpChap 12 tcp
Chap 12 tcp
 
Chap 08 ip
Chap 08 ipChap 08 ip
Chap 08 ip
 
Chap 07 arp & rarp
Chap 07 arp & rarpChap 07 arp & rarp
Chap 07 arp & rarp
 
Chap 06 delivery and routing of ip packets
Chap 06 delivery and routing of ip packetsChap 06 delivery and routing of ip packets
Chap 06 delivery and routing of ip packets
 
Chap 05 ip addresses classfless
Chap 05 ip addresses classflessChap 05 ip addresses classfless
Chap 05 ip addresses classfless
 
Chap 04 ip addresses classful
Chap 04 ip addresses classfulChap 04 ip addresses classful
Chap 04 ip addresses classful
 
Chap 03 underlying technology
Chap 03 underlying technologyChap 03 underlying technology
Chap 03 underlying technology
 
Chap 01 intro
Chap 01 introChap 01 intro
Chap 01 intro
 
Lecture 8 The Communication System Finalterm Slides
Lecture 8  The Communication System Finalterm SlidesLecture 8  The Communication System Finalterm Slides
Lecture 8 The Communication System Finalterm Slides
 
Lecture 7 The Communication System Finalterm Slides
Lecture 7  The Communication System Finalterm SlidesLecture 7  The Communication System Finalterm Slides
Lecture 7 The Communication System Finalterm Slides
 
Lecture 6 The Communication System Finalterm Slides
Lecture 6  The Communication System Finalterm SlidesLecture 6  The Communication System Finalterm Slides
Lecture 6 The Communication System Finalterm Slides
 

Último

ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdfONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdfKamal Acharya
 
Unit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdfUnit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdfRagavanV2
 
data_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdfdata_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdfJiananWang21
 
Bhosari ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready For ...
Bhosari ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready For ...Bhosari ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready For ...
Bhosari ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready For ...tanu pandey
 
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...Call Girls in Nagpur High Profile
 
notes on Evolution Of Analytic Scalability.ppt
notes on Evolution Of Analytic Scalability.pptnotes on Evolution Of Analytic Scalability.ppt
notes on Evolution Of Analytic Scalability.pptMsecMca
 
Call for Papers - International Journal of Intelligent Systems and Applicatio...
Call for Papers - International Journal of Intelligent Systems and Applicatio...Call for Papers - International Journal of Intelligent Systems and Applicatio...
Call for Papers - International Journal of Intelligent Systems and Applicatio...Christo Ananth
 
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...Call Girls in Nagpur High Profile
 
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptxBSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptxfenichawla
 
Unleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leapUnleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leapRishantSharmaFr
 
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Bookingdharasingh5698
 
Double rodded leveling 1 pdf activity 01
Double rodded leveling 1 pdf activity 01Double rodded leveling 1 pdf activity 01
Double rodded leveling 1 pdf activity 01KreezheaRecto
 
Intze Overhead Water Tank Design by Working Stress - IS Method.pdf
Intze Overhead Water Tank  Design by Working Stress - IS Method.pdfIntze Overhead Water Tank  Design by Working Stress - IS Method.pdf
Intze Overhead Water Tank Design by Working Stress - IS Method.pdfSuman Jyoti
 
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...ranjana rawat
 

Último (20)

ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdfONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
 
Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024
 
Unit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdfUnit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdf
 
data_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdfdata_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdf
 
Bhosari ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready For ...
Bhosari ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready For ...Bhosari ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready For ...
Bhosari ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready For ...
 
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...
 
notes on Evolution Of Analytic Scalability.ppt
notes on Evolution Of Analytic Scalability.pptnotes on Evolution Of Analytic Scalability.ppt
notes on Evolution Of Analytic Scalability.ppt
 
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort ServiceCall Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
 
Call for Papers - International Journal of Intelligent Systems and Applicatio...
Call for Papers - International Journal of Intelligent Systems and Applicatio...Call for Papers - International Journal of Intelligent Systems and Applicatio...
Call for Papers - International Journal of Intelligent Systems and Applicatio...
 
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
 
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptxBSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
 
Unleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leapUnleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leap
 
Roadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and RoutesRoadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and Routes
 
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
 
Double rodded leveling 1 pdf activity 01
Double rodded leveling 1 pdf activity 01Double rodded leveling 1 pdf activity 01
Double rodded leveling 1 pdf activity 01
 
Intze Overhead Water Tank Design by Working Stress - IS Method.pdf
Intze Overhead Water Tank  Design by Working Stress - IS Method.pdfIntze Overhead Water Tank  Design by Working Stress - IS Method.pdf
Intze Overhead Water Tank Design by Working Stress - IS Method.pdf
 
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
 
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar ≼🔝 Delhi door step de...
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar  ≼🔝 Delhi door step de...Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar  ≼🔝 Delhi door step de...
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar ≼🔝 Delhi door step de...
 
(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7
(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7
(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7
 
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
 

Chap 20 smtp, pop, imap

  • 1. CChhaapptteerr 2200 EElleeccttrroonniicc MMaaiill:: SSMMTTPP,, PPOOPP,, aanndd IIMMAAPP Objectives Upon completion you will be able to: • Understand four configurations of email architecture • Understand the functions and formats of a user agent • Understand MIME and its capabilities and data types • Understand the functions and commands of an MTA • Understand the function of POP3 and IMAP4 TCP/IP Protocol Suite 1
  • 2. 20.1 ARCHITECTURE To explain the architecture of email, we give four sscceennaarriiooss.. WWee bbeeggiinn wwiitthh tthhee ssiimmpplleesstt ssiittuuaattiioonn aanndd aadddd ccoommpplleexxiittyy aass wwee pprroocceeeedd.. TThhee ffoouurrtthh sscceennaarriioo iiss tthhee mmoosstt ccoommmmoonn iinn tthhee eexxcchhaannggee ooff eemmaaiill.. TThhee ttooppiiccss ddiissccuusssseedd iinn tthhiiss sseeccttiioonn iinncclluuddee:: FFiirrsstt SScceennaarriioo SSeeccoonndd SScceennaarriioo TThhiirrdd SScceennaarriioo FFoouurrtthh SScceennaarriioo TCP/IP Protocol Suite 2
  • 3. Figure 20.1 First scenario TCP/IP Protocol Suite 3
  • 4. NNoottee:: When the sender and the receiver of an email are on the same system, we need only two user agents. TCP/IP Protocol Suite 4
  • 5. Figure 20.2 Second scenario TCP/IP Protocol Suite 5
  • 6. NNoottee:: When the sender and the receiver of an email are on different systems, we need two UAs and a pair of MTAs (client and server). TCP/IP Protocol Suite 6
  • 7. Figure 20.3 Third scenario TCP/IP Protocol Suite 7
  • 8. NNoottee:: When the sender is connected to the mail server via a LAN or a WAN, we need two UAs and two pairs of MTAs (client and server). TCP/IP Protocol Suite 8
  • 9. Figure 20.4 Fourth scenario TCP/IP Protocol Suite 9
  • 10. Figure 20.5 Push vs. pull TCP/IP Protocol Suite 10
  • 11. NNoottee:: When both sender and receiver are connected to the mail server via a LAN or a WAN, we need two UAs, two pairs of MTAs (client and server), and a pair of MAAs (client and server). This is the most common situation today. TCP/IP Protocol Suite 11
  • 12. 20.2 USER AGENT The user agent (UA) provides service to the user ttoo mmaakkee tthhee pprroocceessss ooff sseennddiinngg aanndd rreecceeiivviinngg aa mmeessssaaggee eeaassiieerr.. TThhee ttooppiiccss ddiissccuusssseedd iinn tthhiiss sseeccttiioonn iinncclluuddee:: SSeerrvviicceess PPrroovviiddeedd bbyy aa UUsseerr AAggeenntt UUsseerr AAggeenntt TTyyppeess SSeennddiinngg MMaaiill RReecceeiivviinngg MMaaiill AAddddrreesssseess MMaaiilliinngg LLiisstt MMIIMMEE TCP/IP Protocol Suite 12
  • 13. Figure 20.6 User agent TCP/IP Protocol Suite 13
  • 14. NNoottee:: Some examples of command-driven user agents are mail, pine, and elm TCP/IP Protocol Suite 14
  • 15. NNoottee:: Some examples of GUI-based user agents are Eudora, Outlook, and Netscape. TCP/IP Protocol Suite 15
  • 16. Figure 20.7 Format of an email TCP/IP Protocol Suite 16
  • 17. Figure 20.8 Email address TCP/IP Protocol Suite 17
  • 18. Figure 20.9 MIME TCP/IP Protocol Suite 18
  • 19. Figure 20.10 MIME header TCP/IP Protocol Suite 19
  • 20. TTaabbllee 2200..11 DDaattaa ttyyppeess aanndd ssuubbttyyppeess iinn MMIIMMEE TCP/IP Protocol Suite 20
  • 21. TTaabbllee 2200..11 DDaattaa ttyyppeess aanndd ssuubbttyyppeess iinn MMIIMMEE ((CCoonnttiinnuueedd)) TCP/IP Protocol Suite 21
  • 23. Figure 20.11 Base64 TCP/IP Protocol Suite 23
  • 24. TTaabbllee 2200..33 BBaassee6644 eennccooddiinngg ttaabbllee TCP/IP Protocol Suite 24
  • 25. Figure 20.12 Quoted-printable TCP/IP Protocol Suite 25
  • 26. 20.3 MESSAGE TRANSFER AGENT: SMTP The actual mail transfer requires message transfer aaggeennttss ((MMTTAAss)).. TThhee pprroottooccooll tthhaatt ddeeffiinneess tthhee MMTTAA cclliieenntt aanndd sseerrvveerr iinn tthhee IInntteerrnneett iiss ccaalllleedd SSiimmppllee MMaaiill TTrraannssffeerr PPrroottooccooll ((SSMMTTPP)).. TThhee ttooppiiccss ddiissccuusssseedd iinn tthhiiss sseeccttiioonn iinncclluuddee:: CCoommmmaannddss aanndd RReessppoonnsseess MMaaiill TTrraannssffeerr PPhhaasseess TCP/IP Protocol Suite 26
  • 27. Figure 20.13 SMTP range TCP/IP Protocol Suite 27
  • 28. Figure 20.14 Commands and responses TCP/IP Protocol Suite 28
  • 29. Figure 20.15 Command format TCP/IP Protocol Suite 29
  • 30. TTaabbllee 2200..44 CCoommmmaannddss TCP/IP Protocol Suite 30
  • 31. TTaabbllee 2200..55 RReessppoonnsseess TCP/IP Protocol Suite 31
  • 32. TTaabbllee 2200..55 RReessppoonnsseess ((CCoonnttiinnuueedd)) TCP/IP Protocol Suite 32
  • 33. Figure 20.16 Connection establishment TCP/IP Protocol Suite 33
  • 34. Figure 20.17 Message transfer TCP/IP Protocol Suite 34
  • 35. Figure 20.18 Connection termination TCP/IP Protocol Suite 35
  • 36. ExamplE 1 Let us see how we can directly use SMTP to send an email and simulate the commands and responses we described in this section. We use TELNET to log into port 25 (the well-known port for SMTP). We then use the commands directly to send an email. In this example, forouzanb@adelphia.net is sending an email to himself. The first few lines show TELNET trying to connect to the adelphia mail server. $ telnet mail.adelphia.net 25 Trying 68.168.78.100... Connected to mail.adelphia.net (68.168.78.100). After connection, we can type the SMTP commands and then receive the responses as shown below. We have shown the commands in black and the responses in color. Note that we have added for clarification some comment lines, designated by the “=” sign. These lines are not part of the email procedure. TCP/IP Protocol Suite 36
  • 37. ExamplE 1 (ContinuEd) ================== Connection Establishment ================ 220 mta13.adelphia.net SMTP server ready Fri, 6 Aug 2004 . . . HELO mail.adelphia.net 250 mta13.adelphia.net ===================== Envelope =================== MAIL FROM: forouzanb@adelphia.net 250 Sender <forouzanb@adelphia.net> Ok RCPT TO: forouzanb@adelphia.net 250 Recipient <forouzanb@adelphia.net> Ok =================== Header and Body ================== DATA 354 Ok Send data ending with <CRLF>.<CRLF> From: Forouzan TO: Forouzan This is a test message to show SMTP in action. . TCP/IP Protocol Suite 37
  • 38. ExamplE 1 (ContinuEd) ============= Connection Termination=============== 250 Message received: adelphia.net@mail.adelphia.net QUIT 221 mta13.adelphia.net SMTP server closing connection Connection closed by foreign host. TCP/IP Protocol Suite 38
  • 39. 20.4 MESSAGE ACCESS AGENT: POP AND IMAP The third stage of mail delivery uses a message access aaggeenntt;; tthhee cclliieenntt mmuusstt ppuullll mmeessssaaggeess ffrroomm tthhee sseerrvveerr.. CCuurrrreennttllyy ttwwoo mmeessssaaggee aacccceessss pprroottooccoollss aarree aavvaaiillaabbllee:: PPoosstt OOffffiiccee PPrroottooccooll,, vveerrssiioonn 33 ((PPOOPP33)) aanndd IInntteerrnneett MMaaiill AAcccceessss PPrroottooccooll,, vveerrssiioonn 44.. TThhee ttooppiiccss ddiissccuusssseedd iinn tthhiiss sseeccttiioonn iinncclluuddee:: PPOOPP33 IIMMAAPP44 TCP/IP Protocol Suite 39
  • 40. Figure 20.19 POP3 and IMAP4 TCP/IP Protocol Suite 40
  • 41. Figure 20.20 POP3 TCP/IP Protocol Suite 41
  • 42. 20.5 WEB-BASED MAIL Some websites such as Hotmail and Yahoo provide eemmaaiill sseerrvviiccee ttoo aannyyoonnee wwhhoo aacccceesssseess tthhee ssiittee.. MMaaiill ttrraannssffeerr aanndd rreettrriieevvaall rreeqquuiirreess tthhee uussee ooff HHTTTTPP.. TCP/IP Protocol Suite 42