SMTP, MIME
1
E-Mail
It is a digital mechanism for exchanging
messages through internet or intranet
communication platforms.
E-mail systems are based on store and
forward model in which e-mail server
systems accept , forward and store
messages on behalf of users ,who only
need to connect to the email
infrastructure.
2
1 ARCHITECTURE
3
First Scenario
Second Scenario
Third Scenario
Fourth Scenario
4
2 USER AGENT
5
6
7
Example:
8
Note
9
10
11
Figure 2 Second scenario
5
1
2 3 4
12
Note
13
14
Figure 3 Third scenario
3
7
5
4 6
15
Note
16
17
Figure 4 Fourth scenario
1 9
2
8
5
4 6
18
19
Note
20
Figure 5 Push versus pull
21
Figure 6 Format of an email
22
Figure 7 E-mail address
23
3 MESSAGE TRANSFER AGENT
The actual mail transfer is done through message transfer agents
(MTAs).
To send mail, a system must have the client MTA, and to receive
mail, a system must have a server MTA.
The formal protocol that defines the MTA client and server in
the Internet is called Simple Mail Transfer Protocol (SMTP).
24
Figure 8 SMTP range
25
SMTP is used 2 times
Between the sender and the sender’s mail
server.
Between the sender’s mail server and the
receiver’s mail server.
26
27
Figure 9 Commands and responses
28
29
30
31
32
Figure 10 Connection establishment
250 OK 3
33
Figure 11 Message transfer
34
Figure 12 Connection termination
1 QUIT
35
36
4 MESSAGE ACCESS AGENT
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.
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 are from the server to the client.
38
Figure 15 MIME
39
MIME Header
MIME Header added to the original Email
header section to define transformation
parameters.
40
Figure 16 MIME header
41
42
43