Electronic Mail
Electronic Mail
Contents
Email
Email Scenario
SMTP
POP3
IMAP
Electronic Mail (EMAIL)
One of the most popular Internet services is electronic mail (e-mail).
The general architecture of an e-mail system including the three main
components:
User agent (UA)
Message transfer agent (MTA)
Message access agent (MAA)
To explain the architecture of e-mail, four scenarios will be discussed from simple
to complex level.
Electronic Mail (EMAIL) Architecture: First Scenario
System
Two user agents are used while the sender and the receiver
of an e-mail are on the same system.
Electronic Mail (EMAIL) Architecture Second Scenario
MTA Internet
MTA
Client Server
System’ System’
(mail Server) (mail Server)
When the sender and the receiver of an e-mail are on
different systems, we need two UAs and a pair of
(Message transfer agent )MTAs (client and server).
Electronic Mail (EMAIL) Architecture Third Scenario
MTA
UA Sender Client
MTA
Server UA: User Agent
Receiver
LAN
or
WAN
MTA Internet
MTA
Client Server
The sender is
connected to the System
mail server via a
System
LAN or a WAN. (mail Server) (mail Server)
Electronic Mail (EMAIL) Architecture Fourth Scenario
Receiver
MAA UA
UA: User Agent MTA Client
Client
Sender MAA
MTA
Server Server
LAN
or LAN
WAN or
WAN
Responses
Responses are sent from the server to the client. A response is a three
digit code that may be followed by additional textual information
Mail Transfer Phases
The process of transferring a mail message occurs in three phases:
connection establishment, mail transfer, and connection termination.
Message Access Agent: POP and IMAP
The first and the second stages of mail delivery use SMTP.
However, SMTP is not involved in the third stage because SMTP
is a push protocol; it pushes the message from the client to the
server. In other words, the direction of the bulk data (messages) is
from the client to the server.
On the other hand, the third stage needs a pull protocol; the
client must pull messages from the server. The direction of the
bulk data is from the server to the client.
The third stage uses a message access agent.
Currently two message access protocols are available: Post
Office Protocol, version 3 (POP3) and Internet Mail Access
Protocol, version 4 (IMAP4).
POP3
Post Office Protocol, version 3 (POP3) is simple and limited in
functionality.
The client POP3 software is installed on the recipient computer;
the server POP3 software is installed on the mail server.
Mail access starts with the client when the user needs to download
e-mail from the mailbox on the mail server.
The client opens a connection to the server on TCP port 110.
It then sends its user name and password to access the mailbox.
The user can then list and retrieve the mail messages, one by one.
POP3 has two modes: the delete mode and the keep mode
POP3
In the delete mode, the mail is deleted from the mailbox after each
retrieval.
In the keep mode, the mail remains in the mailbox after retrieval.
The delete mode is normally used when the user is working at her
permanent computer and can save and organize the received
mail after reading or replying.
The keep mode is normally used when the user accesses her mail
away from her primary computer (e.g., a laptop).
The mail is read but kept in the system for later retrieval and
organizing.
IMAP4