SlideShare a Scribd company logo
1 of 44
Download to read offline
Lecture 9: Electronic Mail Representation and Transfer
Electronic Mail Paradigm, SMTP, POP/ IMAP
Outline
 Introduction
 Architecture
 User Agent
 Message Transfer Agent: SMTP
 Message Access Agent: POP and IMAP
 Web-Based Mail
Electronic Mail
 At beginning email were short and text
  only, today email much more complex.
 It allows a message to include text, audio,
  and video.
 It also allows one message to be sent to
  one or more recipients
Architecture
   To explain the architecture of e-mail we will
    use four scenarios
First scenario in electronic mail




Alice (user) send a message to Bob (another user) using User Agent
program in order to prepare the message and store it in Bob’s Mailbox.
The message has sender’s and recipient mailbox address (names of files)
Bob can retrieve and read the contents on his mailbox at any time using User
Agent
First scenario
   Sender and receiver of email are users on the
    same system (mail server).
   They directly connected to a shared system
   Administrator created one mailbox for each user
    where the received messages are stored
   A Mailbox is part of local hard drive – a special
    file with permission restriction. Only owner of
    mailbox has access to the mailbox
Second scenario in electronic mail




Alice needs to use UA program to send her message to the system (mail server)
at her own site. Mail server at her site uses queue to store messages waiting to be
sent.
Bob also needs a UA to retrieve messages stored in the mailbox of the mail server
at his site
Message needs to be sent through the internet from Alice’s site to Bob’s site.
So two MTAs are needed. MTA Client and MTA server
Second scenario
 Sender and receiver of the email are users
  on two different system
 Message needs to be sent over the Internet
 Here we need to have User Agents (UA)
  and Message Transfer Agents (MTA)
Third scenario in electronic mail
                        Bob as in 2nd scenario.
                        Alice is separated from her
                        mail server, connected to
                        server through LAN or WAN
                        Alice still need to use UA to
                        prepare the message. Then
                        she can send it through
                        LAN/WAN to MTA
Fourth scenario in electronic mail
                         This is most common
                         scenario.
                         Bob and Alice are
                         connected to Mail server
                         through LAN/WAN.
                         Here we need a set of
                         client/server agent,
                         Message Access Agent
                         (MAA)
User Agent
User Agent
   Compose Message
       To write message in proper format
       Provide template, built-in editor that can spell checking,
        grammar checking etc.
   Read Message
       Read incoming message
       Each received message contain;
            Number field
            Flag – status of email. E.g. new, read
            Size of message
            Sender
            Optional subject field
User Agent
   Reply Message
       Reply to the sender
   Forward Message
       Send the message to third party
   Handle Mailbox
     UA usually has Inbox and Outbox
     Inbox – keeps all received emails
     Outbox – keeps all sent email
User Agent
   Command Driven
     Accepts one character command from keyboard
      to perform its task. E.g. r to reply
     Examples: mail, pine, and elm

   GUI- based
       Microsoft Outlook, Netscape, Eudora,
        Thunderbird
User Agent
Sending email
                Format of an e-mail
Message
 Consist of Header and Body
 Header
       Define sender, subject of message and any
        other information
   Body
       Contain the actual information to be read by
        receiver
Receiving Mail
 UA is triggered by user (or timer)
 If user has mail, UA inform user with notice.
 If user ready to read the mail a list is
  displayed in which each line contain
  summary of information
 User can select any message and displays
  its contents on the screen.
E-mail address




 Local part: define name of special file (user mailbox)
 where all mail received for user is stored for retrieval
 by MAA
 Domain name: host to receive and send e-mail. Mail
 server of exchanger
Mailing List
 Allow one name (alias) to represent
  different e-mail addresses.
 Every time message to be sent system
  checks the recipient name against alias
  database
MIME – Multipurpose Internet Mail
Extensions
 E-mail can only send message in NVT 7-bit
  ASCII.
 MIME – supplementary protocol to allow
  non ASCII data sent through e-mail.
 Allows transmission of
     Binary data
     Multimedia files (video/audio clips)
     Multiple types in single message
     Mixed formats
MIME
MIME header
Data types and subtypes in MIME
Message Transfer Agent: SMTP




 SMTP – define how commands and responses must be sent back
 and forth
SMTP - Simple Mail Transfer Protocol
 Runs over TCP
 Used between
     Mail transfer program on sender’s computer
     Mail server on recipient’s computer

   Specifies how
     Client interacts with server
     Recipients specified
     Message is transferred
SMTP
   SMTP is simple ASCII protocol where
     sender makes TCP connection to port 25 and
      waits
     receiver identifies itself and says if it will receive
      e-mail
     if rejected, sender tries again later
SMTP: Commands and responses



                                      Command Format




SMTP uses commands and responses to transfer messages
between MTA client and MTA server
SMTP: Commands
SMTP: Responses
SMTP: Responses (cont.)
SMTP - example
   Let us see how we can directly use SMTP to send an
    e-mail 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 e-mail.
    In this example, forouzanb@adelphia.net is sending an e-mail to
    himself.
   The first few lines show TELNET trying to connect to the
    Adelphia mail server.
   After connection, we can type the SMTP commands and then
    receive the responses, as shown on the next slide.
   Note that we have added, for clarification, some comment lines,
    designated by the “=” signs. These lines are not part of the e-
    mail procedure.
SMTP session

$ telnet mail.adelphia.net 25
Trying 68.168.78.100 . . .
Connected to mail.adelphia.net (68.168.78.100).
SMTP session
Message Access Agent: POP3 and IMAP4
POP3 and IMAP4
 First and second stages of mail delivery use
  SMTP. STMP not involve in the third stage
  because it is a push protocol; client push
  message to server
 The third stage needs a pull protocol;
  client pull the message from server
 POP3 – Post Office Protocol ver. 3
 IMAP4 – Internet Mail Access Protocol ver. 4
Push versus pull in electronic email
POP3
   POP3 client is installed in recipient computer.
   POP3 server is installed in mail server
   Mail access start when a client downloads its e-
    mail messages from a server.
   Two modes
       Delete: mail is deleted from mailbox after retrieval
       Keep: mail remains in mailbox after retrieval
The exchange of commands and
responses in POP3
                  Client opens a connection to
                  server on TCP port 110.
                  Then it send user name and
                  password to access mailbox.
                  After that, user can list and
                  retrieve mail message.
IMAP4
   IMAP4 is more sophisticated protocol that
    offers
     Check email header prior to downloading
     Search the content of email for specific string
     Partially download the email
     Create, delete or rename mailbox on mail server
     Create hierarchy of mailboxes in a folder for
      email storage
Web-based Mail
 Yahoo Mail, Gmail, Hotmail and etc..
 Mail transfer from sender’s browser to mail
  server through HTTP.
 Transfer of message from sending mail
  server to receiving server still through SMTP
 Message from receiving server (web server)
  to receiver’ browser is done through HTTP
 Instead of POP3 and IMAP4, HTTP is used
  as MAA
Web-based Mail
Summary
   Several program (protocol) including SMTP, POP3 and IMAP4, are used
    in the Internet to provide e-mail service
   The UA prepares the message, creates the envelope, and puts the
    message in the envelope.
   The email address consists of two parts: a local address (user mailbox)
    and a domain name. The form is localname@domainname.
   The MTA transfers the email across the Internet, LAN or WAN.
   SMTP uses commands and responses to transfer messages between an
    MTA client and an MTA server.
   The steps in transferring a mail message are connection establishment,
    message transfer, and connection termination.
   POP3 and IMAP4 used for pulling messages from mail server
   Multipurpose Internet Mail Extension (MIME) is an extension of SMTP
    that allows the transfer of multimedia and other non-ASCII messages.
Review Questions
 Describe the addressing system used by
  SMTP
 In e-mail, what are the tasks of User agent?
 What is MIME?
 Why do we need POP3 or IMAP4 for e-mail?

More Related Content

What's hot

E mail protocol - SMTP
E mail protocol - SMTPE mail protocol - SMTP
E mail protocol - SMTPMd Syed Ahamad
 
SMTP - SIMPLE MAIL TRANSFER PROTOCOL
SMTP - SIMPLE MAIL TRANSFER PROTOCOLSMTP - SIMPLE MAIL TRANSFER PROTOCOL
SMTP - SIMPLE MAIL TRANSFER PROTOCOLVidhu Arora
 
Mail POP vs IMAP
Mail POP vs IMAPMail POP vs IMAP
Mail POP vs IMAPjrock2004
 
Ethernet and Token ring (Computer Networks)
Ethernet and Token ring (Computer Networks)Ethernet and Token ring (Computer Networks)
Ethernet and Token ring (Computer Networks)Shail Nakum
 
Electronic mail - Computer Networks
Electronic mail - Computer NetworksElectronic mail - Computer Networks
Electronic mail - Computer NetworksUmme Jamal
 
Information on protocols-email protocols
Information on protocols-email protocolsInformation on protocols-email protocols
Information on protocols-email protocolsPriyanka Shinde
 
What Is Sliding Window Protocol?
What Is Sliding Window Protocol?What Is Sliding Window Protocol?
What Is Sliding Window Protocol?Simplilearn
 
FTP - File Transfer Protocol
FTP - File Transfer ProtocolFTP - File Transfer Protocol
FTP - File Transfer ProtocolPeter R. Egli
 

What's hot (20)

Email
EmailEmail
Email
 
Smtp protocol
Smtp protocolSmtp protocol
Smtp protocol
 
POP3 Post Office Protocol
POP3 Post Office ProtocolPOP3 Post Office Protocol
POP3 Post Office Protocol
 
Smtp, pop3, imapv 4
Smtp, pop3, imapv 4Smtp, pop3, imapv 4
Smtp, pop3, imapv 4
 
E mail protocol - SMTP
E mail protocol - SMTPE mail protocol - SMTP
E mail protocol - SMTP
 
SMTP - SIMPLE MAIL TRANSFER PROTOCOL
SMTP - SIMPLE MAIL TRANSFER PROTOCOLSMTP - SIMPLE MAIL TRANSFER PROTOCOL
SMTP - SIMPLE MAIL TRANSFER PROTOCOL
 
Introduction to Application layer
Introduction to Application layerIntroduction to Application layer
Introduction to Application layer
 
Mail POP vs IMAP
Mail POP vs IMAPMail POP vs IMAP
Mail POP vs IMAP
 
Transportlayer tanenbaum
Transportlayer tanenbaumTransportlayer tanenbaum
Transportlayer tanenbaum
 
Application layer
Application layerApplication layer
Application layer
 
Tcp IP Model
Tcp IP ModelTcp IP Model
Tcp IP Model
 
Ethernet and Token ring (Computer Networks)
Ethernet and Token ring (Computer Networks)Ethernet and Token ring (Computer Networks)
Ethernet and Token ring (Computer Networks)
 
Mail server
Mail serverMail server
Mail server
 
Electronic mail - Computer Networks
Electronic mail - Computer NetworksElectronic mail - Computer Networks
Electronic mail - Computer Networks
 
Electronic mail
Electronic mailElectronic mail
Electronic mail
 
Ssl https
Ssl httpsSsl https
Ssl https
 
HTTP Presentation
HTTP Presentation HTTP Presentation
HTTP Presentation
 
Information on protocols-email protocols
Information on protocols-email protocolsInformation on protocols-email protocols
Information on protocols-email protocols
 
What Is Sliding Window Protocol?
What Is Sliding Window Protocol?What Is Sliding Window Protocol?
What Is Sliding Window Protocol?
 
FTP - File Transfer Protocol
FTP - File Transfer ProtocolFTP - File Transfer Protocol
FTP - File Transfer Protocol
 

Viewers also liked

Email ppt
Email pptEmail ppt
Email pptmelgade
 
Email - Electronic Mail
Email - Electronic MailEmail - Electronic Mail
Email - Electronic MailPeter R. Egli
 
Email - electronic mail
Email - electronic mailEmail - electronic mail
Email - electronic mailkundana
 
E Mail Ppt
E Mail PptE Mail Ppt
E Mail Pptkevpatel
 
Web technology and commerce unit 1
Web technology and commerce unit 1Web technology and commerce unit 1
Web technology and commerce unit 1arun0501
 
How Email Works storyboarad_cartoon
How Email Works storyboarad_cartoonHow Email Works storyboarad_cartoon
How Email Works storyboarad_cartoonLori deRoin
 
Internet Security
Internet SecurityInternet Security
Internet SecurityManoj Sahu
 
Computer viruses 911 computer support
Computer viruses 911 computer supportComputer viruses 911 computer support
Computer viruses 911 computer supportbozzerapide
 
Lecture 4 -_internet_infrastructure_2_updated_2011
Lecture 4 -_internet_infrastructure_2_updated_2011Lecture 4 -_internet_infrastructure_2_updated_2011
Lecture 4 -_internet_infrastructure_2_updated_2011Serious_SamSoul
 
History of Computer Virus
History of Computer Virus History of Computer Virus
History of Computer Virus Ammy Vijay
 
Virus Identification Visual Quiz, Viruses, Types of Viruses Biology Lesson Po...
Virus Identification Visual Quiz, Viruses, Types of Viruses Biology Lesson Po...Virus Identification Visual Quiz, Viruses, Types of Viruses Biology Lesson Po...
Virus Identification Visual Quiz, Viruses, Types of Viruses Biology Lesson Po...www.sciencepowerpoint.com
 
Tutorial on dhcp
Tutorial on dhcp Tutorial on dhcp
Tutorial on dhcp Salah Amean
 

Viewers also liked (20)

Email ppt
Email pptEmail ppt
Email ppt
 
Email - Electronic Mail
Email - Electronic MailEmail - Electronic Mail
Email - Electronic Mail
 
Email - electronic mail
Email - electronic mailEmail - electronic mail
Email - electronic mail
 
E Mail Ppt
E Mail PptE Mail Ppt
E Mail Ppt
 
Week3 lec3-bscs1
Week3 lec3-bscs1Week3 lec3-bscs1
Week3 lec3-bscs1
 
Inter quiz
Inter quizInter quiz
Inter quiz
 
Web technology and commerce unit 1
Web technology and commerce unit 1Web technology and commerce unit 1
Web technology and commerce unit 1
 
Chap 15 multicasting
Chap 15 multicastingChap 15 multicasting
Chap 15 multicasting
 
Chap 16 bootp & dhcp
Chap 16 bootp & dhcpChap 16 bootp & dhcp
Chap 16 bootp & dhcp
 
Chapter 25
Chapter 25Chapter 25
Chapter 25
 
How Email Works storyboarad_cartoon
How Email Works storyboarad_cartoonHow Email Works storyboarad_cartoon
How Email Works storyboarad_cartoon
 
Internet Security
Internet SecurityInternet Security
Internet Security
 
Computer viruses 911 computer support
Computer viruses 911 computer supportComputer viruses 911 computer support
Computer viruses 911 computer support
 
Lecture 4 -_internet_infrastructure_2_updated_2011
Lecture 4 -_internet_infrastructure_2_updated_2011Lecture 4 -_internet_infrastructure_2_updated_2011
Lecture 4 -_internet_infrastructure_2_updated_2011
 
Electronic mail
Electronic mailElectronic mail
Electronic mail
 
Chap 21 snmp
Chap 21 snmpChap 21 snmp
Chap 21 snmp
 
History of Computer Virus
History of Computer Virus History of Computer Virus
History of Computer Virus
 
Virus Identification Visual Quiz, Viruses, Types of Viruses Biology Lesson Po...
Virus Identification Visual Quiz, Viruses, Types of Viruses Biology Lesson Po...Virus Identification Visual Quiz, Viruses, Types of Viruses Biology Lesson Po...
Virus Identification Visual Quiz, Viruses, Types of Viruses Biology Lesson Po...
 
Tutorial on dhcp
Tutorial on dhcp Tutorial on dhcp
Tutorial on dhcp
 
PGP for Smarties
PGP for SmartiesPGP for Smarties
PGP for Smarties
 

Similar to Lecture 9 electronic_mail_representation_and_transfer

Similar to Lecture 9 electronic_mail_representation_and_transfer (20)

Electronic mail
Electronic mailElectronic mail
Electronic mail
 
Electronic Mail
Electronic MailElectronic Mail
Electronic Mail
 
Electronic Mail.ppt
Electronic Mail.pptElectronic Mail.ppt
Electronic Mail.ppt
 
Cn u5
Cn u5Cn u5
Cn u5
 
Mail server
Mail serverMail server
Mail server
 
Application layer
Application layerApplication layer
Application layer
 
How Email Works
How Email WorksHow Email Works
How Email Works
 
window server 2008 mail configuration
window server 2008 mail configurationwindow server 2008 mail configuration
window server 2008 mail configuration
 
E-Mail - Technical Overview
E-Mail - Technical OverviewE-Mail - Technical Overview
E-Mail - Technical Overview
 
presentation on email.pptx
presentation on email.pptxpresentation on email.pptx
presentation on email.pptx
 
Pop (post office protocol)e mail (electronic mail)
Pop (post office protocol)e mail (electronic mail)Pop (post office protocol)e mail (electronic mail)
Pop (post office protocol)e mail (electronic mail)
 
Email ftp
Email ftpEmail ftp
Email ftp
 
Mail services and mail commands in linux
Mail services and mail commands in linuxMail services and mail commands in linux
Mail services and mail commands in linux
 
Email ftp
Email ftpEmail ftp
Email ftp
 
Electronic mail
Electronic mailElectronic mail
Electronic mail
 
E mail transfer .74
E mail transfer .74E mail transfer .74
E mail transfer .74
 
How email works
How email worksHow email works
How email works
 
10135 a 05
10135 a 0510135 a 05
10135 a 05
 
Internet mail server
Internet mail server Internet mail server
Internet mail server
 
Electronic mail protocols and operations
 Electronic mail protocols and operations Electronic mail protocols and operations
Electronic mail protocols and operations
 

More from Serious_SamSoul

Lecture 13 -_e-commmerce_e-banking_and_advanced_tech
Lecture 13 -_e-commmerce_e-banking_and_advanced_techLecture 13 -_e-commmerce_e-banking_and_advanced_tech
Lecture 13 -_e-commmerce_e-banking_and_advanced_techSerious_SamSoul
 
Lecture 12 -_internet_security
Lecture 12 -_internet_securityLecture 12 -_internet_security
Lecture 12 -_internet_securitySerious_SamSoul
 
Lecture 11 client_server_interaction
Lecture 11 client_server_interactionLecture 11 client_server_interaction
Lecture 11 client_server_interactionSerious_SamSoul
 
Lecture 7 -_ftp,_tftp,_telnet_and_ssh
Lecture 7 -_ftp,_tftp,_telnet_and_sshLecture 7 -_ftp,_tftp,_telnet_and_ssh
Lecture 7 -_ftp,_tftp,_telnet_and_sshSerious_SamSoul
 
Lecture 6 -_presentation_layer
Lecture 6 -_presentation_layerLecture 6 -_presentation_layer
Lecture 6 -_presentation_layerSerious_SamSoul
 
Lecture 5 internet-protocol_assignments
Lecture 5 internet-protocol_assignmentsLecture 5 internet-protocol_assignments
Lecture 5 internet-protocol_assignmentsSerious_SamSoul
 
Lecture 3 -_internet_infrastructure_updated_2011
Lecture 3 -_internet_infrastructure_updated_2011Lecture 3 -_internet_infrastructure_updated_2011
Lecture 3 -_internet_infrastructure_updated_2011Serious_SamSoul
 
Lecture 2 -_understanding_networks_with_presenter_notes
Lecture 2 -_understanding_networks_with_presenter_notesLecture 2 -_understanding_networks_with_presenter_notes
Lecture 2 -_understanding_networks_with_presenter_notesSerious_SamSoul
 
Lecture 1 -_overview_of_the_internet-1-
Lecture 1 -_overview_of_the_internet-1-Lecture 1 -_overview_of_the_internet-1-
Lecture 1 -_overview_of_the_internet-1-Serious_SamSoul
 
Lecture 1 -_overview_of_the_internet-1-
Lecture 1 -_overview_of_the_internet-1-Lecture 1 -_overview_of_the_internet-1-
Lecture 1 -_overview_of_the_internet-1-Serious_SamSoul
 

More from Serious_SamSoul (10)

Lecture 13 -_e-commmerce_e-banking_and_advanced_tech
Lecture 13 -_e-commmerce_e-banking_and_advanced_techLecture 13 -_e-commmerce_e-banking_and_advanced_tech
Lecture 13 -_e-commmerce_e-banking_and_advanced_tech
 
Lecture 12 -_internet_security
Lecture 12 -_internet_securityLecture 12 -_internet_security
Lecture 12 -_internet_security
 
Lecture 11 client_server_interaction
Lecture 11 client_server_interactionLecture 11 client_server_interaction
Lecture 11 client_server_interaction
 
Lecture 7 -_ftp,_tftp,_telnet_and_ssh
Lecture 7 -_ftp,_tftp,_telnet_and_sshLecture 7 -_ftp,_tftp,_telnet_and_ssh
Lecture 7 -_ftp,_tftp,_telnet_and_ssh
 
Lecture 6 -_presentation_layer
Lecture 6 -_presentation_layerLecture 6 -_presentation_layer
Lecture 6 -_presentation_layer
 
Lecture 5 internet-protocol_assignments
Lecture 5 internet-protocol_assignmentsLecture 5 internet-protocol_assignments
Lecture 5 internet-protocol_assignments
 
Lecture 3 -_internet_infrastructure_updated_2011
Lecture 3 -_internet_infrastructure_updated_2011Lecture 3 -_internet_infrastructure_updated_2011
Lecture 3 -_internet_infrastructure_updated_2011
 
Lecture 2 -_understanding_networks_with_presenter_notes
Lecture 2 -_understanding_networks_with_presenter_notesLecture 2 -_understanding_networks_with_presenter_notes
Lecture 2 -_understanding_networks_with_presenter_notes
 
Lecture 1 -_overview_of_the_internet-1-
Lecture 1 -_overview_of_the_internet-1-Lecture 1 -_overview_of_the_internet-1-
Lecture 1 -_overview_of_the_internet-1-
 
Lecture 1 -_overview_of_the_internet-1-
Lecture 1 -_overview_of_the_internet-1-Lecture 1 -_overview_of_the_internet-1-
Lecture 1 -_overview_of_the_internet-1-
 

Recently uploaded

General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...Poonam Aher Patil
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentationcamerronhm
 
Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jisc
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxRamakrishna Reddy Bijjam
 
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxHMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxmarlenawright1
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17Celine George
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17Celine George
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxDenish Jangid
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfagholdier
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.MaryamAhmad92
 
Fostering Friendships - Enhancing Social Bonds in the Classroom
Fostering Friendships - Enhancing Social Bonds  in the ClassroomFostering Friendships - Enhancing Social Bonds  in the Classroom
Fostering Friendships - Enhancing Social Bonds in the ClassroomPooky Knightsmith
 
Wellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxWellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxJisc
 
Interdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptxInterdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptxPooja Bhuva
 
Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsKarakKing
 
Spellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseSpellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseAnaAcapella
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptxMaritesTamaniVerdade
 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxJisc
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsMebane Rash
 
Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structuredhanjurrannsibayan2
 
Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...Association for Project Management
 

Recently uploaded (20)

General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentation
 
Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
 
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxHMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.
 
Fostering Friendships - Enhancing Social Bonds in the Classroom
Fostering Friendships - Enhancing Social Bonds  in the ClassroomFostering Friendships - Enhancing Social Bonds  in the Classroom
Fostering Friendships - Enhancing Social Bonds in the Classroom
 
Wellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxWellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptx
 
Interdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptxInterdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptx
 
Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functions
 
Spellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseSpellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please Practise
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptx
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 
Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structure
 
Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...
 

Lecture 9 electronic_mail_representation_and_transfer

  • 1. Lecture 9: Electronic Mail Representation and Transfer Electronic Mail Paradigm, SMTP, POP/ IMAP
  • 2. Outline  Introduction  Architecture  User Agent  Message Transfer Agent: SMTP  Message Access Agent: POP and IMAP  Web-Based Mail
  • 3. Electronic Mail  At beginning email were short and text only, today email much more complex.  It allows a message to include text, audio, and video.  It also allows one message to be sent to one or more recipients
  • 4. Architecture  To explain the architecture of e-mail we will use four scenarios
  • 5. First scenario in electronic mail Alice (user) send a message to Bob (another user) using User Agent program in order to prepare the message and store it in Bob’s Mailbox. The message has sender’s and recipient mailbox address (names of files) Bob can retrieve and read the contents on his mailbox at any time using User Agent
  • 6. First scenario  Sender and receiver of email are users on the same system (mail server).  They directly connected to a shared system  Administrator created one mailbox for each user where the received messages are stored  A Mailbox is part of local hard drive – a special file with permission restriction. Only owner of mailbox has access to the mailbox
  • 7. Second scenario in electronic mail Alice needs to use UA program to send her message to the system (mail server) at her own site. Mail server at her site uses queue to store messages waiting to be sent. Bob also needs a UA to retrieve messages stored in the mailbox of the mail server at his site Message needs to be sent through the internet from Alice’s site to Bob’s site. So two MTAs are needed. MTA Client and MTA server
  • 8. Second scenario  Sender and receiver of the email are users on two different system  Message needs to be sent over the Internet  Here we need to have User Agents (UA) and Message Transfer Agents (MTA)
  • 9. Third scenario in electronic mail Bob as in 2nd scenario. Alice is separated from her mail server, connected to server through LAN or WAN Alice still need to use UA to prepare the message. Then she can send it through LAN/WAN to MTA
  • 10. Fourth scenario in electronic mail This is most common scenario. Bob and Alice are connected to Mail server through LAN/WAN. Here we need a set of client/server agent, Message Access Agent (MAA)
  • 12. User Agent  Compose Message  To write message in proper format  Provide template, built-in editor that can spell checking, grammar checking etc.  Read Message  Read incoming message  Each received message contain;  Number field  Flag – status of email. E.g. new, read  Size of message  Sender  Optional subject field
  • 13. User Agent  Reply Message  Reply to the sender  Forward Message  Send the message to third party  Handle Mailbox  UA usually has Inbox and Outbox  Inbox – keeps all received emails  Outbox – keeps all sent email
  • 14. User Agent  Command Driven  Accepts one character command from keyboard to perform its task. E.g. r to reply  Examples: mail, pine, and elm  GUI- based  Microsoft Outlook, Netscape, Eudora, Thunderbird
  • 16. Sending email Format of an e-mail
  • 17. Message  Consist of Header and Body  Header  Define sender, subject of message and any other information  Body  Contain the actual information to be read by receiver
  • 18. Receiving Mail  UA is triggered by user (or timer)  If user has mail, UA inform user with notice.  If user ready to read the mail a list is displayed in which each line contain summary of information  User can select any message and displays its contents on the screen.
  • 19. E-mail address Local part: define name of special file (user mailbox) where all mail received for user is stored for retrieval by MAA Domain name: host to receive and send e-mail. Mail server of exchanger
  • 20. Mailing List  Allow one name (alias) to represent different e-mail addresses.  Every time message to be sent system checks the recipient name against alias database
  • 21. MIME – Multipurpose Internet Mail Extensions  E-mail can only send message in NVT 7-bit ASCII.  MIME – supplementary protocol to allow non ASCII data sent through e-mail.  Allows transmission of  Binary data  Multimedia files (video/audio clips)  Multiple types in single message  Mixed formats
  • 22. MIME
  • 24. Data types and subtypes in MIME
  • 25. Message Transfer Agent: SMTP SMTP – define how commands and responses must be sent back and forth
  • 26. SMTP - Simple Mail Transfer Protocol  Runs over TCP  Used between  Mail transfer program on sender’s computer  Mail server on recipient’s computer  Specifies how  Client interacts with server  Recipients specified  Message is transferred
  • 27. SMTP  SMTP is simple ASCII protocol where  sender makes TCP connection to port 25 and waits  receiver identifies itself and says if it will receive e-mail  if rejected, sender tries again later
  • 28. SMTP: Commands and responses Command Format SMTP uses commands and responses to transfer messages between MTA client and MTA server
  • 32. SMTP - example  Let us see how we can directly use SMTP to send an e-mail 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 e-mail. In this example, forouzanb@adelphia.net is sending an e-mail to himself.  The first few lines show TELNET trying to connect to the Adelphia mail server.  After connection, we can type the SMTP commands and then receive the responses, as shown on the next slide.  Note that we have added, for clarification, some comment lines, designated by the “=” signs. These lines are not part of the e- mail procedure.
  • 33. SMTP session $ telnet mail.adelphia.net 25 Trying 68.168.78.100 . . . Connected to mail.adelphia.net (68.168.78.100).
  • 35. Message Access Agent: POP3 and IMAP4
  • 36. POP3 and IMAP4  First and second stages of mail delivery use SMTP. STMP not involve in the third stage because it is a push protocol; client push message to server  The third stage needs a pull protocol; client pull the message from server  POP3 – Post Office Protocol ver. 3  IMAP4 – Internet Mail Access Protocol ver. 4
  • 37. Push versus pull in electronic email
  • 38. POP3  POP3 client is installed in recipient computer.  POP3 server is installed in mail server  Mail access start when a client downloads its e- mail messages from a server.  Two modes  Delete: mail is deleted from mailbox after retrieval  Keep: mail remains in mailbox after retrieval
  • 39. The exchange of commands and responses in POP3 Client opens a connection to server on TCP port 110. Then it send user name and password to access mailbox. After that, user can list and retrieve mail message.
  • 40. IMAP4  IMAP4 is more sophisticated protocol that offers  Check email header prior to downloading  Search the content of email for specific string  Partially download the email  Create, delete or rename mailbox on mail server  Create hierarchy of mailboxes in a folder for email storage
  • 41. Web-based Mail  Yahoo Mail, Gmail, Hotmail and etc..  Mail transfer from sender’s browser to mail server through HTTP.  Transfer of message from sending mail server to receiving server still through SMTP  Message from receiving server (web server) to receiver’ browser is done through HTTP  Instead of POP3 and IMAP4, HTTP is used as MAA
  • 43. Summary  Several program (protocol) including SMTP, POP3 and IMAP4, are used in the Internet to provide e-mail service  The UA prepares the message, creates the envelope, and puts the message in the envelope.  The email address consists of two parts: a local address (user mailbox) and a domain name. The form is localname@domainname.  The MTA transfers the email across the Internet, LAN or WAN.  SMTP uses commands and responses to transfer messages between an MTA client and an MTA server.  The steps in transferring a mail message are connection establishment, message transfer, and connection termination.  POP3 and IMAP4 used for pulling messages from mail server  Multipurpose Internet Mail Extension (MIME) is an extension of SMTP that allows the transfer of multimedia and other non-ASCII messages.
  • 44. Review Questions  Describe the addressing system used by SMTP  In e-mail, what are the tasks of User agent?  What is MIME?  Why do we need POP3 or IMAP4 for e-mail?