• No results found

. Prof. Anja Feldmann, Ph.D. Balakrishnan Chandrasekaran, Ph.D.

N/A
N/A
Protected

Academic year: 2021

Share ". Prof. Anja Feldmann, Ph.D. Balakrishnan Chandrasekaran, Ph.D."

Copied!
29
0
0

Loading.... (view fulltext now)

Full text

(1)

Email

Prof. Anja Feldmann, Ph.D.

(2)

Email: Agenda

• Brief introduction

• Accessing emails

• User agents and mail access protocols

• Storage and retrieval

(3)

Email: mode of communication

(4)

Email: First Electronic Missive

1971

Ray Tomlinson

Ray Tomlinson

(5)

Email: First Email

(6)

Email: Components

• User Agents

• Mail Servers

• Simple Mail Transfer Protocol

(SMTP)

mail

server

mail

server

mail

server

SMTP

SMTP

SMTP

user

agent

user

agent

user

agent

user

agent

user

agent

outgoing

(7)

Email: User Agent

“Mail Reader”

• Composing, editing,

reading mail messages

(e.g., Thunderbird, Outlook, Mail)

Outgoing & incoming messages stored

on server

(8)

Email: Mail Servers

• Mailbox

contains incoming messages for user

• Message queue

of outgoing mail

• SMTP protocol

between mail servers to send email

messages

• client: sending mail server

• server: receiving mail server

(9)

Email: SMTP

• Uses

TCP

to

reliably

transfer email message from client to

server

• port 25

• direct

transfer: sending server to receiving server

• Three phases of transfer

• Handshaking

• Transfer of messages

• Closure

(10)

Email: SMTP

• Command/response interaction (like HTTP)

• commands: ASCII text

• response: status code and phrase

(11)

Email: Walkthrough

1. Alice uses

user agent

to compose message

“to”

[email protected]

user

agent

server

mail

mail

server

1

2

3

4

5

6

user

agent

(12)

Email: Walkthrough

2.

Alice’s

user agent

sends message to her

mail server

;

message placed in

message queue

.

user

agent

server

mail

mail

server

1

2

3

4

5

6

user

agent

(13)

Email: Walkthrough

3.

Client

side of

SMTP

opens

TCP

connection with Bob’s mail

server.

user

agent

server

mail

mail

server

1

2

3

4

5

6

user

agent

(14)

Email: Walkthrough

4.

SMTP client

sends Alice’s

message

over the

TCP

connection.

user

agent

server

mail

mail

server

1

2

3

4

5

6

user

agent

(15)

Email: Walkthrough

5. Bob’s

mail server

places the

message

in Bob’s

mailbox

.

user

agent

server

mail

mail

server

1

2

3

4

5

6

user

agent

(16)

Email: Walkthrough

6.

Bob invokes his

user agent

to read

message

.

user

agent

server

mail

mail

server

1

2

3

4

5

6

user

agent

(17)

Sample SMTP Interaction

S

: 220 hamburger.edu

C

: HELO crepes.fr

(18)

Sample SMTP Interaction

C

: MAIL FROM: <[email protected]>

S

: 250 [email protected]... Sender ok

C

: RCPT TO: <[email protected]>

S

: 250 [email protected] ... Recipient ok

C

: DATA

S

: 354 Enter mail, end with "." on a line by itself

C

: Do you like ketchup?

C

: How about pickles?

C

: .

(19)

Sample SMTP Interaction

C

: QUIT

(20)

SMTP: Try it out

telnet <server-name> 25

• see 220 reply from server

• enter

HELO

,

MAIL FROM

,

RCPT TO

,

DATA

,

QUIT

commands

(21)

SMTP: Summary

• Uses

persistent

connections

• Requires

message (header & body)

to be in

7-bit ASCII

(22)

Mail Message Format

• RFC 822

• standard for text message format

Header

Body

(23)

Mail Message Format

Header lines

• To:

• From:

• Subject:

Header

Body

Blank line

(24)

Mail Message Format

Body

• “Message”

• ASCII characters only

Header

Body

(25)

Mail access protocols

• SMTP

: delivery/storage to receiver’s server

• Mail access protocol

: retrieval from server

user

agent

server

mail

mail

server

1

2

3

4

5

6

user

agent

SMTP

(26)

Mail access protocols

• Post Office Protocol (POP)

[RFC 1939]

• authorization, download

• Internet Mail Access Protocol (IMAP)

[RFC 1730]

• more features, including manipulation of stored messages on server

• HTTP

• gmail, Hotmail, Yahoo! Mail, etc.

user

agent

server

mail

mail

server

1

2

3

4

5

6

user

agent

SMTP

(27)

POP3 vs IMAP

POP3

Download-and-delete

mode

• cannot re-read e-mail if user

changes client

Download-and-keep

mode

• copies of messages on different

clients

IMAP

Keeps all messages in one place—

at server

Organize messages in folders

Keeps user state across sessions

(28)

POP3 vs IMAP

POP3

Download-and-delete mode

• cannot re-read e-mail if user

changes client

Download-and-keep mode

• copies of messages on different

clients

IMAP

Keeps all messages in one place

at server

Organize messages in folders

Keeps user state across sessions

(29)

Email: Recap

• Important form of communication

• User agents and mail servers

• Mail server protocol

• SMTP

References

Related documents

We apply the proposed methods to discover single nucleotide polymor- phisms (SNPs) associated with type 2 diabetes risk in the WHI Clinical Trial and Observational Study SNP

PRODUCED BY NUNES, MATA AND VALÉRIO (1989) — Carlos Robalo Marques, Paulo Soares Esteves. 5/94 EXCHANGE RATE RISK IN THE EMS AFTER THE WIDENING OF

In table B.1 (appendix), we summarize the rest of our results comparing the proportion of consistent price changes among treatments, periods, and levels of

The Simple Mail Transfer Protocol (SMTP), on the other hand, governs the transfer of outbound e-mail from the sending client to the e-mail server (MDA), as well as the transport

Mail Architecture Client Person A Outgoing Server SMTP Client SMTP User Mail Boxes Inbound Server IMAP Internet SMTP POP3..

entities: Alice’s mail client (for email composition and sending), Alice’s outgoing mail server, Bob’s incoming mail server, and Bob’s mail client (for email retrieval

- Email from: address to be used by PBX to send emails - SMTP mail server: mail server address used by the company - Port: listening port of the SMTP server.. - SMTP

When a user send an email, the email client will deliver the mail to the local SMTP server running on the Mail/File server. The SMTP server will then determine if the mail is