Docsity

simple mail transfer protocol, Summaries of Computer Networks

Partial preview of the text

Download simple mail transfer protocol and more Summaries Computer Networks in PDF only on Docsity!

COMPUTER NETWORKS · APPLICATION LAYER

Simple Mail Transfer

Protocol (SMTP)

B.Tech CSE · 5th Semester

Presented By:- Manas Thakur

What is SMTP?

An application-layer protocol that sends email from a client to a mail server and between mail servers over a reliable TCP

connection.

Application layer

Sends and transfers email between servers

TCP, port 25

Connection is set up before mail is sent

Push protocol

Sender's server pushes mail to the receiver's

Reliable

Store-and-forward through intermediate MTAs

How SMTP Works

SMTP envelope

Holds the sender address, recipient addresses and routing information. Servers use it to deliver mail; the recipient never sees it. Like the address on a postal envelope.

Three phases

  1. Connection setup 2. Mail transfer 3. Connection termination

Ports and Extended SMTP

SMTP ports

25

Server-to-server relay; often blocked by ISPs for client mail

587 Secure submission with TLS; recommended for clients

465 Implicit-TLS submission (legacy SMTPS)

2525 Unofficial alternative when port 25 is blocked

SMTP vs ESMTP

Feature SMTP ESMTP

Greeting HELO EHLO

Authentication Not built in Supported (AUTH)

Multimedia Needs MIME 8BITMIME supported

Message size Not negotiated SIZE extension

SMTP vs POP3 vs IMAP

Feature SMTP POP3 IMAP

Purpose Sends mail Retrieves mail Retrieves mail

Type Push Pull Pull

Works between Servers; client and its server Receiver and its server Receiver and its server

Mail storage Only forwards mail Downloads all mail Keeps mail on server

TCP port 25 110 143

State Stateless Stateful Stateful

SMTP pushes mail to the destination server; POP3 and IMAP let the user pull it from the mailbox.