Professional Documents
Culture Documents
Protocol
Ezra Kissel
CISC 856 TCP/IP and Upper Layer
Protocols
11/1/2005
(some/most slides provided by M. Lacroce and J. Watson)
Overview
Introduction
Message Breakdown
Sending Messages
Extensions
Retrieving mail (Mailbox Protocols)
Examples
Email Statistics
Email Statistics (2004):
31 billion emails sent
daily, expected to double
by 2006
Email generates about
one billion Gigabytes of
new information per
year
Spam accounts for about
40% of all email traffic
http://www.spamfilterreview.com
SMTP
SMTP
SMTP
Format of an email
sender address
receiver address
other information
Message
Post Office
Mailbox
Post office
and mail route
Receivers
Mailbox
The Basics
Keyword
Arguments
HELO
MAIL
FROM:
RCPT TO:
Email of Intended
recipient
DATA
QUIT
The Extras
Keyword
Arguments
RSET
VRFY
Name to be verified
NOOP
TURN
EXPN
HELP
Command Name
Status Codes
2## - Success
3## - Command can be accepted with
more information
4## - Command was rejected, but error
condition is temporary
5## - Command rejected, Bad User!
Connection Establishment
TCP Connection
Establishment
Message
Progress
Connection
Termination
Limitations in SMTP
No authentication mechanisms
Messages are sent un-encrypted
Susceptible to misuse (Spamming,
faking sender address)
Text
Application
Image
Audio
Video
MIME Headers
MIME-Version: 1.1
Content-Type: type/subtype
Content-Transfer-Encoding: encoding type
Content-Id: message id
Content-Description: textual explanation of
non-textual contents
Base64 Encoding
01111010
(8)
(I)
01001001
(4)
(57)
(E)
01000101
(5)
00110101
Quoted-Printable Encoding
(=)
00111101
(9)
00111001
(D)
01000100
--MIMEStream=_0+92061_793033260215529_597673089
Content-Type: TEXT/PLAIN; charset="US-ASCII"; format=flowed
/9j/4AAQSkZJRgABAgEASABIAAD/4QNxRXhpZgAATU0AKgAAAAgABwESAAMA
AAABAAEAAAEaAAUAAAABAAAAYgEbAAUAAAABAAAAagEoAAMAAAABAAIAAAEx
osv/0I5nPvr7sVdirsVf/9GO5z76+6hxQ1il2Kv/0o5nPvr7eKtYq7FX/9k=
--MIMEStream=_0+92061_793033260215529_597673089--
SMTP AUTH
MTA
Client
TCP Connection
Establishment
MTA
Server
POP3
IMAP4
Internet
Whole
m
IMAP:
Dr.Amer
Friends
Internet
rs
heade
essage
Simple
Allows the user to obtain a list of
their Emails
Users can retrieve their emails
Users can either delete or keep the
email on their system
Minimizes server resources