E-mail
Three major components
User agents
mail servers
simple mail transfer protocol : SMTP
User Agent
a.k.a : mail reader
Composiing, editing, reading mail messages
mail servers
- sender mail server
- reciever mail server
mail servers:
SMTP RFC
- TCP를 사용하고 Port는 25
- transfer을 위해 three phases가 있다.
- SMTP handshaking
- SMTP transfer of messages
- SMTP closure
Alice가 bob에게 메세지 보내는 시나리오
- Alice는 이메일주소에 메세지를 작성하여 보낸다.
- 메세지를 자신의 sending mail server에 SMTP를 사용하며 메세지를 보낸다
- CLIENT side에서는 Bob의 메일 서버와 tcp connection을 한다.
- SMTP는 ALICE의 메세지를 TCP connection을 통해 전송한다.
- Bob의 메일서버는 이를 저장한다.
SMTP: observations
Http와 비교
- HTTP: client pull
- SMTP: client push
-
HTTP: 각 object가 각 response메세지를 전달
-
SMTP : multiple한 object가 multipart 한 message를 보낸다.
-
SMTP : persistent connections
Retreving email
- SMTP :receiver's server에 메세지를 저장하거나 전송
- mail access protocol : retrieval from server
IMAP : 메세지를 서버에 저장하고, retrieval, deletion, folders등의 기능