Connectivity:Overview
Understanding TCP/IP
We conclude our four part article looking in depth at the TCP/IP protocol.
Here, we examine the difference between the SMTP and POP3 email protocols.
By Julian Moss
I
n this series of articles we have
serves a group of users such as all those
messages would make this impractical
looked at the TCP/IP suite of pro
int one domain. The server receives all
so this is about the only way ISPs can
tocols, beginning with the link
mail intended for its users and then
prevent non subscribers such as spam
layer and progressing by stages to the
allows them to collect it using POP3
mers from using their mail servers to
application layer. We have seen how
(Post Office Protocol version 3) or some
send out messages.
each layer relies upon the layers below
other mail protocol. Similarly, most
Having received the correct ac
it, so that network applications can be
SMTP clients send messages to a single
knowledgement the sender signs on to
written without needing to take ac
server, whose job it is to relay those mes
the server by sending the string
count of considerations such as how
sages on to their eventual recipients.
HELO hostname . HELO is the sign
the network is constructed or what
An SMTP transaction begins when
on command and hostname is the
type of hardware or cabling is used.
the sender client opens a TCP connec
name of the host. As we will see, the
A striking point about many of the
tion with the receiver using the well
hostname is used in the Received:
application layer protocols is how sim
known port number 25. The server
header which the server adds to the
ple they are. The protocols based on
acknowledges the connection by send
message when it sends it on its way.
TCP mostly use commands and re
ing back a message of the form 220
This information allows the recipient
sponses in plain ASCII text, making
SMTP Server Ready . SMTP uses a
to trace the path taken by the message.
them easier for a user to understand
similar format of replies to ftp, which
and for a programmer to implement.
we looked at previously. The three
Sending
For further illustration we shall look at
digit code is all the client software
the two protocols that you may use
needs to tell if everything is going OK.
Once the sender gets a 250 OK
every day to send and receive Internet
The text is there to help the humans
acknowledgement it can start sending
email: SMTP and POP3.
who might be troubleshooting a prob
messages. The protocol is extremely
lem by analysing a log of the transac
simple. All the sender has to do is say
SMTP
tion. The box Application Protocol
who the message is from, who it is to,
Reply Codes provides more informa
and supply the contents of the mes
Simple Mail Transfer Protocol
tion about message reply codes.
sage.
(SMTP) is one of the most venerable of
An SMTP relay server might refuse
Who a message is from is specified
the Internet protocols. Designed in the
a connection by sending back a mes
with the command MAIL FROM:
early 1980s, its function is purely and
sage with a 421 Service not available
dress> . This command also tells the re
simply to transfer electronic mail
reply code. For example, an Internet
ceiver that it is about to receive a new
across and between networks and
Service Provider's SMTP server pro
message, so it knows to clear out its list
other transport systems. As such, its
vided for use by its subscribers to relay
of recipients. The address in the angle
use need not be restricted to systems
outgoing mail might refuse a connec
brackets (which are required) is the
that use TCP/IP. Any communications
tion from a host whose IP address in
return path for the message. The return
system capable of handling lines of up
dicates that it is not a subscriber to that
path is the address that any error re
to 1,000 7 bit ASCII characters could be
ISP. SMTP has no form of access con
port such as would be generated if the
used to carry messages using SMTP.
trol the way it can be used to relay
message is undeliverable is sent to.
On a TCP/IP network, however, TCP
provides the transport mechanism.
In SMTP the sender is the client, but
a client may communicate with many
SMTP uses a similar format of
different servers. Mail can be sent di
rectly from the sending host to the re
replies to ftp, which we looked at
ceiving host, requiring a separate TCP
connection to be made for each copy of
previously. The three digit code is
each message. However, few mail re
cipients run their own SMTP servers.
all the client software needs.
It is more usual for the destination
of an SMTP message to be a server that
Issue 93 (March 1998) page 15
File: C04100.13
PC Network Advisor
Next page >
New! The best sites for quality inkjet printer cartridges and the best sites for cheap inkjet cartridges