Applications:Electronic Mail (SMTP, Pop, Imap, Mime) : Presented By-Tarun Lall Badrinath Sai Kumar Praveen
Applications:Electronic Mail (SMTP, Pop, Imap, Mime) : Presented By-Tarun Lall Badrinath Sai Kumar Praveen
(SMTP,POP,IMAP,MIME)
MAILBOXES SERVER
FOR INCOMING MAIL (TO ACCEPT MAIL)
Mailbox Names and Aliases
USER READS
MAIL
SUB
Electronic Mail Addresses
The receiver responds with message 354 start mail input and specifies the
sequence of characters used to terminate the mail message. It consists of 5
characters: carriage return, line feed,period,carriage return, and line feed.
consider the following example:
suppose user smith at host Alpha.EDU sends a message to users
jones,green and brown at host Beta.GOV.
The SMTP client software on host Alpha.EDU contacts the SMTP server
software on host Beta.GOV and begins the exchange as shown:
C: RCPT To:<[email protected]>
S: 550 No Such User Here
C: RCPT To:[email protected]
S: 250 ok
C: DATA
S: 354 Start Mail input;end with <CR><LF>.<CR><LF>
C: .sends body of mail message.
C: continues for as may lines as message contains
C: <CR><LF>.<CR><LF>
S: 250 ok
C: QUIT
S: 221 Beta.GOV Service Closing transmission channel
SMTP is much more complex because if a user has moved, the server
may know the users new mailbox address. SMTP allows the server to
inform the client about the new address so the client can use it in future.
When informing the client about a new address, the server may choose
to forward the mail that triggered the message, or it may request that the
client take the responsibility for forwarding.
Mail Retrieval
SMTP scheme- Server should remain ready
to accept e-mails all the time.
How can a user receive e-mail without a
permanent connection?
User assigned a mail box on computer that has
permanent internet connection.
User forms dialup connection and runs protocol
that receives messages from permanent
mailbox.
Post Office Protocol
Protocol to transfer e-mail messages from mailbox
to local computer.
User invokes a POP3 client, which creates a TCP
connection to a POP3 server on the mailbox
computer.
Computer with permanent mailbox must run 2
servers-
SMTP( Accepts mail sent to user)
POP3 (Allows to extract messages from mailbox).
IMAP4
Internet Message Access Protocol is an
alternative to POP3.
User runs a IMAP4 client that contacts the
server to retrieve messages.
IMAP4 allows user to dynamically create,
delete or rename mail boxes.
MIME
Multipurpose Internet Mail Extensions are
defined for transmission of non-ASCII data.
It allows ordinary data to be encoded in
ASCII and transmitted in standard email.
MIME header specifies:
Version of MIME used.
Type of data being sent.
Encoding used to convert data to ASCII.
MIME Multipart Messages
Four subtypes for multipart messages:
Mixed
Allows single message to contain multiple messages.
Possible to send text, graphics and sound in single
message.
Alternative
Allows single message to include multiple
representations of same data.
Useful when sending same message to multiple
recipients.
Subtypes for Multipart Message
Parallel
Permits message to include subparts that should be
viewed together(Like video and audio).
Digest
Permits a message to contain set of other messages.
E.g., collection of e-mail messages from a
discussion.
Summary
E-mail uses TCP/IP paradigm.
SMTP- Defines how a mail system on one
machine transfers mail to server on another.
POP3- Specifies how user can retrieve
contents of a mailbox.
MIME- Provides a mechanism that allows
arbitrary data to be transmitted using SMTP.