SlideShare una empresa de 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

Más contenido relacionado

La actualidad más candente

Computer networking class 12
Computer networking class 12Computer networking class 12
Computer networking class 12LakshyaT
 
User datagram protocol (udp)
User datagram protocol (udp)User datagram protocol (udp)
User datagram protocol (udp)Ramola Dhande
 
TCP/IP 3-way Handshake
TCP/IP 3-way Handshake TCP/IP 3-way Handshake
TCP/IP 3-way Handshake Alok Tripathi
 
OSI model and TCP/IP model
OSI model and TCP/IP modelOSI model and TCP/IP model
OSI model and TCP/IP modelRubal Sagwal
 
TCP - Transmission Control Protocol
TCP - Transmission Control ProtocolTCP - Transmission Control Protocol
TCP - Transmission Control ProtocolPeter R. Egli
 
Computer Network - Network Layer
Computer Network - Network LayerComputer Network - Network Layer
Computer Network - Network LayerManoj Kumar
 
Transmission Control Protocol (TCP)
Transmission Control Protocol (TCP)Transmission Control Protocol (TCP)
Transmission Control Protocol (TCP)k33a
 
Chapter 4 data link layer
Chapter 4 data link layerChapter 4 data link layer
Chapter 4 data link layerNaiyan Noor
 
7 layers of osi models
7 layers of osi models7 layers of osi models
7 layers of osi modelsSathish Kumar
 
Data Communication and Networks
Data Communication and NetworksData Communication and Networks
Data Communication and NetworksChAwais15
 

La actualidad más candente (20)

Wireless network security
Wireless network securityWireless network security
Wireless network security
 
Tcp/ip model
Tcp/ip  modelTcp/ip  model
Tcp/ip model
 
Unit 4 - Network Layer
Unit 4 - Network LayerUnit 4 - Network Layer
Unit 4 - Network Layer
 
Computer networking class 12
Computer networking class 12Computer networking class 12
Computer networking class 12
 
Network Sockets
Network SocketsNetwork Sockets
Network Sockets
 
User datagram protocol (udp)
User datagram protocol (udp)User datagram protocol (udp)
User datagram protocol (udp)
 
TCP/IP 3-way Handshake
TCP/IP 3-way Handshake TCP/IP 3-way Handshake
TCP/IP 3-way Handshake
 
OSI model and TCP/IP model
OSI model and TCP/IP modelOSI model and TCP/IP model
OSI model and TCP/IP model
 
Ch1 delays, loss, and throughput l5
Ch1 delays, loss, and throughput l5Ch1 delays, loss, and throughput l5
Ch1 delays, loss, and throughput l5
 
Data link layer
Data link layer Data link layer
Data link layer
 
Ppt of routing protocols
Ppt of routing protocolsPpt of routing protocols
Ppt of routing protocols
 
Advance Networking Course Details PPT
Advance Networking Course Details PPTAdvance Networking Course Details PPT
Advance Networking Course Details PPT
 
Sliding window protocol
Sliding window protocolSliding window protocol
Sliding window protocol
 
Transport layer
Transport layer Transport layer
Transport layer
 
TCP - Transmission Control Protocol
TCP - Transmission Control ProtocolTCP - Transmission Control Protocol
TCP - Transmission Control Protocol
 
Computer Network - Network Layer
Computer Network - Network LayerComputer Network - Network Layer
Computer Network - Network Layer
 
Transmission Control Protocol (TCP)
Transmission Control Protocol (TCP)Transmission Control Protocol (TCP)
Transmission Control Protocol (TCP)
 
Chapter 4 data link layer
Chapter 4 data link layerChapter 4 data link layer
Chapter 4 data link layer
 
7 layers of osi models
7 layers of osi models7 layers of osi models
7 layers of osi models
 
Data Communication and Networks
Data Communication and NetworksData Communication and Networks
Data Communication and Networks
 

Destacado (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 19 ftp & tftp
Chap 19 ftp & tftpChap 19 ftp & tftp
Chap 19 ftp & tftp
 
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
 
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
 

Similar a Email Architecture, Protocols and Standards

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
 

Similar a Email Architecture, Protocols and Standards (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
 
Smtp
SmtpSmtp
Smtp
 
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
 

Más 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
 

Más 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

Class 1 | NFPA 72 | Overview Fire Alarm System
Class 1 | NFPA 72 | Overview Fire Alarm SystemClass 1 | NFPA 72 | Overview Fire Alarm System
Class 1 | NFPA 72 | Overview Fire Alarm Systemirfanmechengr
 
Work Experience-Dalton Park.pptxfvvvvvvv
Work Experience-Dalton Park.pptxfvvvvvvvWork Experience-Dalton Park.pptxfvvvvvvv
Work Experience-Dalton Park.pptxfvvvvvvvLewisJB
 
Research Methodology for Engineering pdf
Research Methodology for Engineering pdfResearch Methodology for Engineering pdf
Research Methodology for Engineering pdfCaalaaAbdulkerim
 
Indian Dairy Industry Present Status and.ppt
Indian Dairy Industry Present Status and.pptIndian Dairy Industry Present Status and.ppt
Indian Dairy Industry Present Status and.pptMadan Karki
 
Energy Awareness training ppt for manufacturing process.pptx
Energy Awareness training ppt for manufacturing process.pptxEnergy Awareness training ppt for manufacturing process.pptx
Energy Awareness training ppt for manufacturing process.pptxsiddharthjain2303
 
11. Properties of Liquid Fuels in Energy Engineering.pdf
11. Properties of Liquid Fuels in Energy Engineering.pdf11. Properties of Liquid Fuels in Energy Engineering.pdf
11. Properties of Liquid Fuels in Energy Engineering.pdfHafizMudaserAhmad
 
System Simulation and Modelling with types and Event Scheduling
System Simulation and Modelling with types and Event SchedulingSystem Simulation and Modelling with types and Event Scheduling
System Simulation and Modelling with types and Event SchedulingBootNeck1
 
CCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdf
CCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdfCCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdf
CCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdfAsst.prof M.Gokilavani
 
BSNL Internship Training presentation.pptx
BSNL Internship Training presentation.pptxBSNL Internship Training presentation.pptx
BSNL Internship Training presentation.pptxNiranjanYadav41
 
Risk Management in Engineering Construction Project
Risk Management in Engineering Construction ProjectRisk Management in Engineering Construction Project
Risk Management in Engineering Construction ProjectErbil Polytechnic University
 
Crushers to screens in aggregate production
Crushers to screens in aggregate productionCrushers to screens in aggregate production
Crushers to screens in aggregate productionChinnuNinan
 
Engineering Drawing section of solid
Engineering Drawing     section of solidEngineering Drawing     section of solid
Engineering Drawing section of solidnamansinghjarodiya
 
Sachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective IntroductionSachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective IntroductionDr.Costas Sachpazis
 
Configuration of IoT devices - Systems managament
Configuration of IoT devices - Systems managamentConfiguration of IoT devices - Systems managament
Configuration of IoT devices - Systems managamentBharaniDharan195623
 
home automation using Arduino by Aditya Prasad
home automation using Arduino by Aditya Prasadhome automation using Arduino by Aditya Prasad
home automation using Arduino by Aditya Prasadaditya806802
 
Crystal Structure analysis and detailed information pptx
Crystal Structure analysis and detailed information pptxCrystal Structure analysis and detailed information pptx
Crystal Structure analysis and detailed information pptxachiever3003
 
Instrumentation, measurement and control of bio process parameters ( Temperat...
Instrumentation, measurement and control of bio process parameters ( Temperat...Instrumentation, measurement and control of bio process parameters ( Temperat...
Instrumentation, measurement and control of bio process parameters ( Temperat...121011101441
 
Earthing details of Electrical Substation
Earthing details of Electrical SubstationEarthing details of Electrical Substation
Earthing details of Electrical Substationstephanwindworld
 
Input Output Management in Operating System
Input Output Management in Operating SystemInput Output Management in Operating System
Input Output Management in Operating SystemRashmi Bhat
 

Último (20)

Class 1 | NFPA 72 | Overview Fire Alarm System
Class 1 | NFPA 72 | Overview Fire Alarm SystemClass 1 | NFPA 72 | Overview Fire Alarm System
Class 1 | NFPA 72 | Overview Fire Alarm System
 
Work Experience-Dalton Park.pptxfvvvvvvv
Work Experience-Dalton Park.pptxfvvvvvvvWork Experience-Dalton Park.pptxfvvvvvvv
Work Experience-Dalton Park.pptxfvvvvvvv
 
Research Methodology for Engineering pdf
Research Methodology for Engineering pdfResearch Methodology for Engineering pdf
Research Methodology for Engineering pdf
 
Indian Dairy Industry Present Status and.ppt
Indian Dairy Industry Present Status and.pptIndian Dairy Industry Present Status and.ppt
Indian Dairy Industry Present Status and.ppt
 
POWER SYSTEMS-1 Complete notes examples
POWER SYSTEMS-1 Complete notes  examplesPOWER SYSTEMS-1 Complete notes  examples
POWER SYSTEMS-1 Complete notes examples
 
Energy Awareness training ppt for manufacturing process.pptx
Energy Awareness training ppt for manufacturing process.pptxEnergy Awareness training ppt for manufacturing process.pptx
Energy Awareness training ppt for manufacturing process.pptx
 
11. Properties of Liquid Fuels in Energy Engineering.pdf
11. Properties of Liquid Fuels in Energy Engineering.pdf11. Properties of Liquid Fuels in Energy Engineering.pdf
11. Properties of Liquid Fuels in Energy Engineering.pdf
 
System Simulation and Modelling with types and Event Scheduling
System Simulation and Modelling with types and Event SchedulingSystem Simulation and Modelling with types and Event Scheduling
System Simulation and Modelling with types and Event Scheduling
 
CCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdf
CCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdfCCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdf
CCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdf
 
BSNL Internship Training presentation.pptx
BSNL Internship Training presentation.pptxBSNL Internship Training presentation.pptx
BSNL Internship Training presentation.pptx
 
Risk Management in Engineering Construction Project
Risk Management in Engineering Construction ProjectRisk Management in Engineering Construction Project
Risk Management in Engineering Construction Project
 
Crushers to screens in aggregate production
Crushers to screens in aggregate productionCrushers to screens in aggregate production
Crushers to screens in aggregate production
 
Engineering Drawing section of solid
Engineering Drawing     section of solidEngineering Drawing     section of solid
Engineering Drawing section of solid
 
Sachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective IntroductionSachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
 
Configuration of IoT devices - Systems managament
Configuration of IoT devices - Systems managamentConfiguration of IoT devices - Systems managament
Configuration of IoT devices - Systems managament
 
home automation using Arduino by Aditya Prasad
home automation using Arduino by Aditya Prasadhome automation using Arduino by Aditya Prasad
home automation using Arduino by Aditya Prasad
 
Crystal Structure analysis and detailed information pptx
Crystal Structure analysis and detailed information pptxCrystal Structure analysis and detailed information pptx
Crystal Structure analysis and detailed information pptx
 
Instrumentation, measurement and control of bio process parameters ( Temperat...
Instrumentation, measurement and control of bio process parameters ( Temperat...Instrumentation, measurement and control of bio process parameters ( Temperat...
Instrumentation, measurement and control of bio process parameters ( Temperat...
 
Earthing details of Electrical Substation
Earthing details of Electrical SubstationEarthing details of Electrical Substation
Earthing details of Electrical Substation
 
Input Output Management in Operating System
Input Output Management in Operating SystemInput Output Management in Operating System
Input Output Management in Operating System
 

Email Architecture, Protocols and Standards

  • 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