Beruflich Dokumente
Kultur Dokumente
Chapter 22
Simple Mail
Transfer Protocol
(SMTP)
McGraw-Hill
22-2
SMTP concept
(RFC 821, ISI, USC 1982)
22-3
UA periodically checks
the milboxes and
informs the user by
giving a notice
File
system
Ephemeral
port
McGraw-Hill
Well-known
TCP port 25
22-4
Relay MTAs
The receivers server may be down and the
relaying MTA can store the mail and make
repeated attempts later to deliver mail to the
server for several days. If the recipient's
server is still unavailable, the mail will be
returned to the sender.
File
system
McGraw-Hill
File
system
22-5
Mail gateway
Relaying system allows
connection between
parties who may or may
not have TCP/IP protocol
suite.
File
system
Protocol other
than SMTP
McGraw-Hill
22-6
22-7
Format of an E-mail
McGraw-Hill
22-8
marko@cs.sdsu.edu
Sender-site delay
22-9
McGraw-Hill
Receiver-site delay
22-10
McGraw-Hill
22-11
Aliases
SMTP allows that a single name
represent several different e-mil
addresses (one-to-many-alias
expansion)
McGraw-Hill
22-12
One-to-many expansion
McGraw-Hill
Many-to-one expansion
McGraw-Hill
22-13
22-14
SMTP is a bidirectional
e-mail system, therefore both
ends must have an MTA
client and an MTA server.
McGraw-Hill
McGraw-Hill
22-15
SMTP Commands
22-16
Mandatory commands
(every implementation must support these)
SMTP Commands
Description
HELO cs.sdsu.edu
QUIT
RSET
VRFY masc0860@rohan.sdsu.edu
HELP: <command>
NOOP
TURN
McGraw-Hill
22-17
Responses
Code
Descrition
Code
Descrition)
211
354
214
Help message
421
220
Service ready
450
221
451
250
452
251
22-18
Responses (cont.)
Code
Descrition
Code
Descrition)
500
550
501
551
502
552
503
553
504
554
Transaction failed
McGraw-Hill
22-19
McGraw-Hill
22-20
Connection establishment
McGraw-Hill
Message transfer
McGraw-Hill
22-21
22-22
22-23
Connection termination
McGraw-Hill
22-24
McGraw-Hill
22-25
MIME header
MIME is a set of software functions that transform non-ASCII data to NVT
ASCII data and vice versa. Therefore the transformation parameters have to be
defined. This is done through an additional header.
McGraw-Hill
22-26
Description
Text
Plain
Unformatted text
Image
JPEG
GIF
MPEG
Video
McGraw-Hill
Subtype
.......... ...........
..............................
Audio
Basic
Application
PostScript
Adobe PostScript
Octet-Stream
22-27
Content-Transfer-Encoding
Type
Very
popular
McGraw-Hill
Description
7-bit
8-bit
binary
Base64
Quotedprintable
22-28
Base64
Has 1 at the
beginning
8*3 = 6*4
Binary values
are converted
into printable
ASCII characters
(see next slide)
McGraw-Hill
Numbers
between
0 and 63
22-29
McGraw-Hill
22-30
Email delivery
Remote server
The remote server receives
mail from the local server,
then stores it into users
mailbox
The client send the mail to the local
server (the remote server may not be
available, therefore the mail is stored in
local server until it can be sent). Local
server acts then as a client and sends the
mail to the remote server
McGraw-Hill
McGraw-Hill
22-31
POP3 is a mail
access protocol
(mail reader)
which is not
part of the
SMTP.
POP3 is a
pull protocol
(the receiving
user is pulling
the mail from
the mailbox)