Sub Topic   : E-Mail Transfer (part 2).                                         1
Recap  In the previous class, you have learnt about      • E-mail      • E-mail transfer mechanism                        ...
ObjectivesOn the completion of this topic, you would beable to understand   • E-mail Protocols   • SMTP   • POP           ...
Electronic mailProtocols   • Simple Mail Transfer Protocol (SMTP) delivers mail to     servers   • From clients to local m...
Understanding SMTP• Simple Mail Transfer Protocol (SMTP) is the most widely  used protocol for sending electronic mail (e-...
Basic Email Architecture                                                 SMTP messages are                             Sen...
Sending Mail with Simple Mail Transport Protocol • Message gets an SMTP header    – Includes host name and timestamp • TCP...
Electronic Mail: SMTP• Client’s SMTP mail server establishes a TCP  connection to the recipients SMTP server using  Port 2...
SMTP   User Agent                      User AgentMail Transfer Agent              Mail Transfer Agent       Client        ...
Sequence of Events in SMTP1.   TCP connection is established to port 252.   The sending machine (client) waits for the rec...
Scenario: Vidya sends message to Rajesh1) Alice uses Mail User Agent        4) SMTP client sends Alice’s   (MUA) to compos...
SMTP Elements• The Sender-SMTP and Receiver-SMTP processes are  client or server applications that support SMTP  functiona...
POP (Post Office Protocol)• POP stands for Post Office Protocol• The POP server holds the message until the recipient  ret...
POP illustration                                      Mary’s computer         John’s computer                             ...
Sequence of Events in POP1. Alice creates a message for Bob using some e-mail   program (i.e., user agent) and clicks “sen...
Sequence of Events in POP contd…4.   The message transfer agent now looks up for the IP     address of this machine using ...
Sequence of Events – Contd.6. Bob boots up his PC, connects to his ISP, and starts his   e-mail program7. The e-mail progr...
Quiz1)   E-mails are transferred across the internet using___A)   Simple Mail Transfer Protocol2)   Messages in SMTP must ...
Quiz1)   The initial stage of POP3 protocol is___A)   Authentication Stage2)   POP uses TCP connector to port ___A)   Numb...
Frequently Asked Questions1. List the protocols used for e-mail transfer2. List the sequence of steps to transfer the emai...
Upcoming SlideShare
Loading in...5
×

E mail transfer .74

901

Published on

0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
901
On Slideshare
0
From Embeds
0
Number of Embeds
3
Actions
Shares
0
Downloads
21
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide
  • User agent ( a.k.a . a “mail reader”) is the interface to the mail system. — This is the entity used for composing, editing, sending, and reading email messages. — The examples are Eudora, Outlook, elm, pine, Netscape Messenger, etc . The mail server is the entity that delivers your outgoing mail and stores your incoming mail. Did you know that different protocols were used for sending and retrieving email? — Your mail client uses different protocols and communicates with different servers (running different applications and different protocols).
  • E mail transfer .74

    1. 1. Sub Topic : E-Mail Transfer (part 2). 1
    2. 2. Recap In the previous class, you have learnt about • E-mail • E-mail transfer mechanism 2
    3. 3. ObjectivesOn the completion of this topic, you would beable to understand • E-mail Protocols • SMTP • POP 3
    4. 4. Electronic mailProtocols • Simple Mail Transfer Protocol (SMTP) delivers mail to servers • From clients to local mail server • Inter-mail server delivery • Post Office Protocol (POP) for user access to delivered email 4
    5. 5. Understanding SMTP• Simple Mail Transfer Protocol (SMTP) is the most widely used protocol for sending electronic mail (e-mail) on the Internet 1 5
    6. 6. Basic Email Architecture SMTP messages are Sender delivered by TCP/IP. client The underlying IP routing generally takes SMTP multiple hops SMTP Mail SMTP Mail Mail Server Server server Mail (relay)Server Mail Server POP3 or IMAP Recipient client Fig .2 6
    7. 7. Sending Mail with Simple Mail Transport Protocol • Message gets an SMTP header – Includes host name and timestamp • TCP Connection on Port 25 – Mail client transmits message to its default SMTP server – Header updated by each mail server handling it – Sender-SMTP server transmits to recipient-SMTP server – Recipient-SMTP server can forward message to another mail server 7
    8. 8. Electronic Mail: SMTP• Client’s SMTP mail server establishes a TCP connection to the recipients SMTP server using Port 25• three phases in message transfer – handshaking (greeting) – transfer of messages – closure 8
    9. 9. SMTP User Agent User AgentMail Transfer Agent Mail Transfer Agent Client Server Port TCP ephemeral 25 port Internet Fig .3 9
    10. 10. Sequence of Events in SMTP1. TCP connection is established to port 252. The sending machine (client) waits for the receiving machine (server) to talk first3. The server sends its identity and preparedness to receive mail4. The client announces whom the e-mail is coming from and whom it is going to send5. The server gives the client the go-ahead to send the message6. The client sends the message and the server acknowledges it7. When all the e-mail has been exchanged in both directions, the connection is released 10
    11. 11. Scenario: Vidya sends message to Rajesh1) Alice uses Mail User Agent 4) SMTP client sends Alice’s (MUA) to compose message message over the TCP and “to” connection bob@polytechnic.edu 5) Bob’s mail server places the2) Alice’s MUA sends message message in his mailbox to her mail server; message 6) Bob invokes his user agent to placed in message queue read message3) Client side of SMTP opens TCP connection with Bob’s mail server 1 mail mail server user user server 2 agent agent 3 4 6 5 Fig .5 BobAlice 11
    12. 12. SMTP Elements• The Sender-SMTP and Receiver-SMTP processes are client or server applications that support SMTP functionality• Typically the Sender-SMTP transmits a request to initialize an SMTP connection on the Receiver-SMTP server port 25 Sender-SMTP and Receiver-SMTP• The Sender-SMTP and Receiver-SMTP are processes that support the SMTP commands listed in RFC 821 (SMTP) and RFC 1869 12
    13. 13. POP (Post Office Protocol)• POP stands for Post Office Protocol• The POP server holds the message until the recipient retrieves it with his/her email software• POP protocol is used to transfer the mail from POP server to user’s machine 13
    14. 14. POP illustration Mary’s computer John’s computer Local inbox SMTP Internet POP SMTP SMTP Mail spool Mail server Mail serverFig .2 14
    15. 15. Sequence of Events in POP1. Alice creates a message for Bob using some e-mail program (i.e., user agent) and clicks “send”2. The e-mail program hands over the message to the message transfer agent (SMTP Server) on Alices host3. The message transfer agent (SMTP Server) sees that it is directed to bob@xyz.com so it uses DNS to look up the MX record for xyz.com. This query returns the DNS name of xyz.coms mail server 15
    16. 16. Sequence of Events in POP contd…4. The message transfer agent now looks up for the IP address of this machine using DNS again5. It then establishes a TCP connection to the SMTP server on port 25 of this machine. Using an SMTP command sequence analogous, it transfers the message to Bob mailbox and breaks the TCP connection 16
    17. 17. Sequence of Events – Contd.6. Bob boots up his PC, connects to his ISP, and starts his e-mail program7. The e-mail program establishes a TCP connection to the POP3 server at port 110 of the ISPs mail server machine8. Bobs e-mail program runs the POP3 protocol to fetch the contents of the mailbox to his hard disk9. Once all the e-mail has been transferred, the TCP connection is released 17
    18. 18. Quiz1) E-mails are transferred across the internet using___A) Simple Mail Transfer Protocol2) Messages in SMTP must be in __textA) ASCII3) SMTP is a ____ protocolA) Push4) The exchange of mails using TCP/IP is performed by____A) Message Transfer Agent (MTA) 18
    19. 19. Quiz1) The initial stage of POP3 protocol is___A) Authentication Stage2) POP uses TCP connector to port ___A) Number 110 19
    20. 20. Frequently Asked Questions1. List the protocols used for e-mail transfer2. List the sequence of steps to transfer the email from sender’s SMTP server to receiver’s SMTP server3. Briefly explain POP protocol 20
    1. A particular slide catching your eye?

      Clipping is a handy way to collect important slides you want to go back to later.

    ×