Docsity

SMTP - Computer Networks - Lecture Slides, Slides of Computer Networks

Partial preview of the text

Download SMTP - Computer Networks - Lecture Slides and more Slides Computer Networks in PDF only on Docsity!

Out line of Internet Electronic Mails

user

User Agent

Queue of mail

client TCP connection

User mailbox

User Agent

user

server

Message TransferAgent Message TransferAgent

Simple Mail Transfer Protocol (SMTP

SMTP (contd.)

•^

User agent: mail, elm, pine

-^

Message Transfer Agent: Send mail

-^

Commands used to send mail:

-^

HELO, MAIL, RCPT, DATA, QUIT

•^

mail –v [email protected]

SMTP (contd.)

•^

DATA

•^

Enter mail end with a dot on a line by itself

-^

Mail accepted

-^

Quit

SMTP (contd.)

•^

Additional Commands:^ –

RSET – about the current mail transaction – VRFY – Lets client ask the sender to verifyrecipients address without sending mail. – NOOP – From server respond with and ok – EXPN – Expand a mailing list

SMTP (contd.)

  • Example •^

To:

•^

Subject:

•^

From:

•^

CC:

  • RFC 822 – Supports audio, video, images,

word, docs etc

SMTP (contd.)

-^

MIME:

Multipurpose Internet Mail Extensions

-^

MIME – Version: Version of MIME being used

-^

Content Description:

-^

A human readable description of what’s in the

message

-^

Content Type: Type of message

-^

Example: Still images: image/gif,

image/jpeg

SMTP (contd.)

•^

Mechanism for encoding:^ –

Email contains only ASCII – Encoding – base 64 – Map three bytes of original into 4 ASCIIcharacters – Each 6-bit maps to a valid ASCIIcharacteruc, lc, 10 digits + and /

SMTP (contd.)

•^

Example:

-^

MIME – Version: 1.

-^

Content Type: multiport/ mixed

-^

boundary = “ …..XYZ”

SMTP (contd.)

Unreadable encodng of picture…….XYZContent Type: application/ postscripts:

name = “draft.ps”

Content Transfer – Encoding: 7 bitReadable encoding of a PS document

SMTP (contd)

Mailreader Maildaemon

Mailreader

Maildaemon

Maildaemon

SMTP/ TCP

SMTP/ TCP

Mail gateway

Mail Transfer using a mail gateway