0% found this document useful (0 votes)
104 views15 pages

Simple Mail Transfer Protocol (SMTP: Out Line of Internet Electronic Mails

The document describes the Simple Mail Transfer Protocol (SMTP) and how electronic mail is transferred over the Internet. SMTP uses client and server software, message transfer agents, and TCP connections to transfer messages between user agents and mailboxes. Commands like HELO, MAIL, RCPT, DATA, and QUIT are used to identify the client, specify the sender and recipient, transfer the message contents, and end the transaction. Additional commands provide functionality like verifying recipient addresses. MIME extensions allow messages to contain different content types and encodings.

Uploaded by

23wings
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
104 views15 pages

Simple Mail Transfer Protocol (SMTP: Out Line of Internet Electronic Mails

The document describes the Simple Mail Transfer Protocol (SMTP) and how electronic mail is transferred over the Internet. SMTP uses client and server software, message transfer agents, and TCP connections to transfer messages between user agents and mailboxes. Commands like HELO, MAIL, RCPT, DATA, and QUIT are used to identify the client, specify the sender and recipient, transfer the message contents, and end the transaction. Additional commands provide functionality like verifying recipient addresses. MIME extensions allow messages to contain different content types and encodings.

Uploaded by

23wings
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 15

Computer Networks Prof.

Hema A Murthy

Simple Mail Transfer Protocol (SMTP


Out line of Internet Electronic Mails

user User Agent


client
Queue of mail
Message Transfer
Agent

TCP connection

Message Transfer
Agent

user User mail server


User Agent box

Indian Institute of Technology Madras


Computer Networks Prof. Hema A Murthy

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]

Indian Institute of Technology Madras


Computer Networks Prof. Hema A Murthy

SMTP (contd.)
• HELO – Identify client
• MAIL From:
[email protected]
• …… sender ok
• RCPT To: [email protected]
• rcpt ok

Indian Institute of Technology Madras


Computer Networks Prof. Hema A Murthy

SMTP (contd.)
• DATA
• Enter mail end with a dot on a line by
itself
• Mail accepted
• Quit

Indian Institute of Technology Madras


Computer Networks Prof. Hema A Murthy

SMTP (contd.)
• Additional Commands:
– RSET – about the current mail transaction
– VRFY – Lets client ask the sender to verify
recipients address without sending mail.
– NOOP – From server respond with and ok
– EXPN – Expand a mailing list

Indian Institute of Technology Madras


Computer Networks Prof. Hema A Murthy

SMTP (contd.)
• Message Format: (RFC 822)
– header
– body
– Originally body – simple text
– MIME extension – permits all sorts oftext
– <Msg Header>
– Series of CRLF
– Header separated from body by a blank line
– Header line:
• <Type, Value> pairs separated by a column
Indian Institute of Technology Madras
Computer Networks Prof. Hema A Murthy

SMTP (contd.)
• Example
• To:
• Subject:
• From:
• CC:
• RFC 822 – Supports audio, video, images,
word, docs etc
Indian Institute of Technology Madras
Computer Networks Prof. Hema A Murthy

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

Indian Institute of Technology Madras


Computer Networks Prof. Hema A Murthy

SMTP ( contd.)
• Text:
– text/ rich text
– marked up texts
• Application:
– application/ postscripts
– application/ network
• Also enables structuring of multiport type
– - Message carrying more than one data type
structures
Indian Institute of Technology Madras
Computer Networks Prof. Hema A Murthy

SMTP (contd.)
• Mechanism for encoding:
– Email contains only ASCII
– Encoding – base 64
– Map three bytes of original into 4 ASCII
characters
– Each 6-bit maps to a valid ASCII
characteruc, lc, 10 digits + and /

Indian Institute of Technology Madras


Computer Networks Prof. Hema A Murthy

SMTP (contd.)
• Example:
• MIME – Version: 1.0
• Content Type: multiport/ mixed
• boundary = “ …..XYZ”

Indian Institute of Technology Madras


Computer Networks Prof. Hema A Murthy

SMTP (contd.)
• From: [email protected]
• To: [email protected]
• Date: Tue, 23 Apr 2002 09:00:00 ……….XYZ
• Content – Type: text/ plain; char set = us – ASCII
• Content Transfer – Encoding: 7 bit
• Here is the picture and draft report:
• hema
• ……. XYZ
• Content – Type: image/ jpeg
• Content Transfer – Encoding: base 64

Indian Institute of Technology Madras


Computer Networks Prof. Hema A Murthy

SMTP (contd.)

Unreadable encodng of picture

…….XYZ
Content Type: application/ postscripts:
name = “draft.ps”
Content Transfer – Encoding: 7 bit

Readable encoding of a PS document

Indian Institute of Technology Madras


Computer Networks Prof. Hema A Murthy

SMTP (contd)
Mail Transfer using a mail gateway

Mail
reader
Mail gateway
Mail
reader
Mail
daemon Mail
Mail
daemon
daemon

SMTP/ TCP SMTP/ TCP

Indian Institute of Technology Madras


Computer Networks Prof. Hema A Murthy

SMTP (contd.)
• Mail server: Example: lantana
– Need mail on bhairavi
• Recipient machine must be up
– Otherwise gateway delivers later
• User may use POP3 (Post Office
Protocol)
– Fetch mail from gateway to specific host

Indian Institute of Technology Madras

You might also like