Docsity

Electronic Mail - Internet Engineering - Lecture Slides, Slides of Internet and Information Access

Partial preview of the text

Download Electronic Mail - Internet Engineering - Lecture Slides and more Slides Internet and Information Access in PDF only on Docsity!

Electronic Mail

Electronic Mail

  • Most heavily used application on any network
  • Uses client-server architecture
    • Electronic mail client accepts mail from user and delivers to server on destination computer
    • Many variations and styles of delivery
  • Simple Mail Transfer Protocol (SMTP)
    • TCP/IP
    • Delivery of simple text messages
  • Multi-purpose Internet Mail Extension (MIME)
    • Delivery of other types of data
    • Voice, images, video clips

User Agents and Mail Transfer Agents

Relay MTAs

The Entire E-mail System

SMTP

  • Simple Mail Transfer Protocol is standard application protocol for delivery of mail from source to destination
  • Built on top of TCP: provides reliable delivery of data
  • SMTP does not normally use intermediate mail servers for sending mail
  • SMTP uses persistent connections
  • Other functions:
    • E-mail address lookup
    • E-mail address verification
  • Example protocol exchange

SMTP

• RFC 821

  • Not concerned with format of messages or data
    • Covered in RFC 822 (see later)
  • SMTP uses info written on envelope of mail
    • Message header
  • Does not look at contents
    • Message body
  • Except:
    • Standardize message character set to 7 bit ASCII

Basic Operation

  • Mail created by user agent program (mail

client)

  • Message consists of:
    • Header containing recipient’s address and other info
    • Body containing user data
  • Messages queued and sent as input to SMTP

sender program

  • Typically a server process (daemon on UNIX)

SMTP Sender

  • Takes message from queue
  • Transmits to proper destination host
    • Via SMTP transaction
    • Over one or more TCP connections to port 25
  • Host may have multiple senders active
  • When delivery complete, sender deletes

destination from list for that message

  • When all destinations processed, message is

deleted

Optimization

  • If message destined for multiple users on a

given host, it is sent only once

  • Delivery to users handled at destination host
  • If multiple messages ready for given host, a

single TCP connection can be used

  • Saves overhead of setting up and dropping connection

SMTP Protocol - Reliability

  • Used to transfer messages from sender to

receiver over TCP connection

  • Attempts to provide reliable service
  • No guarantee to recover lost messages
  • No end to end acknowledgement to originator
  • Error indication delivery not guaranteed
  • Generally considered reliable

SMTP Receiver

  • Accepts arriving message
  • Places in user mailbox or copies to outgoing queue for forwarding
  • Receiver must:
    • Verify local mail destinations
    • Deal with errors
      • Transmission
      • Lack of disk space
  • Sender responsible for message until receiver confirm complete transfer - Indicates mail has arrived at host, not user

Conversation

  • SMTP limited to conversation between sender

and receiver

  • Main function is to transfer messages
  • Rest of mail handling beyond scope of SMTP
    • May differ between systems

Figure 3.9 SMTP Mail Flow