INTERNET Email - an Introduction and Overview


Jim Jackson <jj@franjam.org.uk>


This document can be found at http://www.franjam.org.uk/linux/InternetEmail.html


In the Beginning


What is an Email?


Email Header Fields


Hello World!

  From: Jim Jackson <jj@franjam.org.uk>
  To: all@world.com
  Subject: Message to Everyone

  Hello World!


Getting Email from here to there

               +----------+                +----------+
   +------+    |          |                |          |
   | User |<-->|          |      SMTP      |          |
   +------+    |  Client- |Commands/Replies| Server-  |
   +------+    |   SMTP   |<-------------->|    SMTP  |    +------+
   | File |<-->|          |    and Mail    |          |<-->| File |
   |System|    |          |                |          |    |System|
   +------+    +----------+                +----------+    +------+
                SMTP client                SMTP server

The SMTP conversation

                         <--------    220 Greeting message
        HELO system.name  -------->               
                         <--------    250 servername pleased to meet you
        Mail From: user@add.com 
                          -------->
                         <--------    250 user@add.com... sender ok
        Rcpt To: name@host.edu
                          -------->
                         <--------    250 name@host.edu... Recipient ok
        Data              -------->
                         <--------    354 Enter mail, end with "." 
                                              on a line by itself
        RFC2822 stream of bytes...
                          -------->
        .                 -------->
                         <--------    250 RefID Message Accepted
        quit              -------->
                         <--------    221 system.name closing connection

Envelope Sender and Recipient(s)

Think of the example of an email to an email list. It is composed To: elist@address, and when it gets to the elist site the elist software then sends out the email message to all the people on the list, changing the envelope recipients, and changing the envelope sender to be the address of the elist admin people - so they get any DSN's.

(spammers just love the simple in SMTP :-)


Email Delivery


Reading Email


Post Office Protocol - POP


Internet Message Access Protocol - IMAP


Web Based Mail reading


Typical Mail Services

                                           +-----------+
   User's Machine        |---------------->|   SMTP    |
     +-------+ SMTP out  |                 |  Relay    |------->  Outgoing 
     |       |-----------|        -------->|           |          SMTP mail
     |       | POP/IMAP           |        +-----------+
     |       |<-------------|     |
     +-------+              |     |        +-------------+
         |                  |--------------|             |
         | Web Mail               |        |IMAP/  SMTP  |       Incoming 
         |                 +--------+  |---|POP    Server|<----- SMTP
         |                 |  Web   |  |   |Server       |       mail 
         |-----------------|  Mail  |<-|   |             |
                           | Server |      |             |
                           +--------+      +-------------+
                                           


HomePage http://www.franjam.org.uk



This document was generated using AFT v5.095