SlideShare a Scribd company logo
Simple Mail Transfer Protocol
Simple Mail Transfer Protocol
History
 Simple Mail Transfer Protocol (SMTP) is
an Internet standard for electronic mail (email)
transmission.
 First defined by RFC 821in 1982
 SMTP became widely used in the early 1980s. At
the time, it was a complement to Unix to Unix
Copy Program (UUCP) mail, which was better
suited for handling email transfers between
machines that were intermittently connected.
Introduction
 SMTP (Simple Mail Transfer Protocol) is
a TCP/IP protocol used in sending and
receiving e-mail.
 Users typically use a program that uses
SMTP for sending e-mail and either POP3 or
IMAP for receiving e-mail.
SMTP Concept
Working
 SMTP is a simple ASCII protocol that is based on client-
server model. After establishing the TCP connection, the
sending machine, operating as the client, waits for the
receiving machine, operating as the server, to talk first.
The server starts by sending a line of text giving its
identity and telling whether or not it is prepared to receive
mail. If it is not, the client releases the connection and
tries again later.
 If the server is willing to accept e-mail, the client
announces whom the e-mail is coming from and
destination, the server gives the client the go ahead to
send the message. Then the client sends the message
and the server acknowledges it.
Smtp commands
 The HELO command is used to initiate an
SMTP session. When one host needs to
establish an SMTP session with another host
 MAIL FROM: command is used primarily to
send email addresses
 The RCPT TO: command tells the receiving
host the email address of the message
recipient
Smtp commands contd.
 DATA has the body of the mail
 The QUIT command is used to terminate an
SMTP session
 The RSET command performs an SMTP
reset, and then aborts the message that is
currently being sent.
 EXPN includes the mailing list to be expanded
SMTP response codes
 Responses are 3 digit codes sent from server to client
 220: The SMTP service is ready
 221: SMTP is closing the transmission channel
 250: The command has been completed
 354: OK to transmit message
 450: Command can not be completed because the
mailbox is busy
 451: Command has been aborted because of an error
 452: Command has been aborted because the receiving
host
is out of disk space
 500: Syntax error
 550: Specified mailbox is unavailable or does not exist
 552: Command was aborted because the recipient has
exceeded
their storage quota
 554: The transaction has failed
Mail Transfer Phases
 Connection Establishment
 Mail transfer
 Connection termination
Connection Establishment
 An SMTP sender will attempt to set up a TCP connection with a
target host when it has one or more mail message to deliver to
that host. The following sequence occurs during connection
setup:

 1. The sender opens a TCP connection with the receiver.
 2. Once the connection is established, the receiver identifies
itself with '220 Service Ready".
 3. The sender identifies itself with the HELO command.
 4. The receiver accepts the sender's identification with "250 'OK".
 5. If the mail service on the destination is not available, the
destination host returns a "421 Service Not Available" reply in
step 2 and the process is terminated.
Mail Transfer
• Once the connection has been established, the
SMTP sender may send one or more messages to
the SMTP receiver.
• There are three logical phases to the transfer of a
message :
 1. A MAIL command identifies the originator of the
message.
 2. One or more RCPT commands identify the
recipients of this message.
 3. A DATA command transfers the message text.
Connection termination
The SMTP sender closes the connection in the
following manner:
 1. The sender sends a QUIT command and
waits for a reply.
 2. Sender initiates TCP close operation for the
TCP connection.
 3. The receiver initiates its TCP close after
sending is reply to the QUIT command.
LATEST DEVELOPMENTS
 Today’s email content needs to be lively,
dynamic and time-dependent.
 A drop in click rates and falling conversion
rates, just like everyone else who still sends
the same email to everyone in their database
 The latest development is real-time content in
emails. Previously the content of an email
was fixed at the time it was sent. Now the
content of your mails can be updated in real-
time, every single time the email is opened.
Examples
 Offer of the day
 Live data
 Limited time content
 Social content
 Agile emails
The most recent development stage is agile
emails where the content is updated each
time the email is opened. Combined with
dynamic content and automisation, this
creates fantastic and unlimited opportunities.
IDN
 International email (IDN email or Intl email) is
email that contains international characters
(characters which do not exist in
the ASCII character set), encoded as UTF-8, in
the email header and in supporting mail transfer
protocols. The most significant aspect of this is the
allowance of email addresses (also known as
email identities) in most of the world's writing
systems, at both interface and transport levels.
IDN Contd.
 A Russian might wish to
use дерек@екзампил.ком as their identifier
but be forced to use a transcription such
as derek@example.com
 International email, by contrast,
uses Unicode characters encoded as UTF-8 -
allowing for the encoding the text of
addresses in most of the world's writing
systems
Usage
 All email servers use SMTP
 godaddy- 250 msgs per day
 gmail- 150 msgs a day
 But we can pay and create if we want to
create full fledged email servers
Evolution
 Earlier using SMTP only text needed to be
transferred. However nowadays, additional
features such multimedia also
 Security and encryption features added
 Both provide a way to encrypt a
communication channel between two
computers (e.g. your computer and our
server).
 TLS is the successor to SSL and the terms
SSL and TLS are used interchangeably
unless you're referring to a specific version of
the protocol.
Versions
 STARTTLS is a way to take an existing insecure
connection and upgrade it to a secure connection
using SSL/TLS.
 Note that despite having TLS in the name,
STARTTLS doesn't mean you have to use TLS,
you can use SSL
 So the ordering of protocols in terms of oldest to
newest is: SSL v2, SSL v3, TLS v1.0, TLS v1.1,
TLS v1.2, TLS v1.3 (currently proposed).
 Recently Google enabled smtp/tls - for security
purposes. both parties need to support this.
 When you connect to an SSL/TLS encrypted port, or
use STARTTLS to upgrade an existing connection,
both sides will negotiate which protocol and which
version to use based on what has been configured in
the software and what each side supports.
 SSL/TLS is virtually universal these days
 SSL v2 was deprecated and phased out many
years ago due to security issues. SSL v3 is
currently deprecated due to security issues, and
 support has or is being phased out by most
services these days. Almost all software supports
TLS v1.0. As at October 2016, support for TLS
v1.1
 and TLS v1.2 is also very good, though there are
some exceptions, mostly with Internet Explorer.
 To add security to some existing protocols (e.g. IMAP,
POP, etc.), it was decided to just add SSL/TLS
encryption as a layer underneath the existing protocol.
 To distinguish that software should talk the SSL/TLS
encrypted version of the protocol rather than the
plaintext one, a different port number was used for
each protocol. So you have:
 IMAP uses port 143, but SSL/TLS encrypted IMAP
uses port 993.
 POP uses port 110, but SSL/TLS encrypted POP uses
port 995.
 SMTP uses port 25, but SSL/TLS encrypted SMTP
uses port 465.
 This has now basically become the de facto
standard that everyone uses.
 IMAP SSL/TLS encrypted over port 993 or
POP SSL/TLS encrypted over port 995.
 Many sites (including FastMail) now disable
plain IMAP (port 143) and plain POP (port
110) altogether so people must use an
SSL/TLS encrypted connection.
Thank You 

More Related Content

PPTX
Tcp/ip model
PPTX
Simple mail transfer protocol (smtp)
PPTX
Smtp, pop3, imapv 4
PPTX
Electronic mail - Computer Networks
PPTX
POP3 Post Office Protocol
PPT
Application layer protocols
PPT
Ports & sockets
PPT
Mail server
Tcp/ip model
Simple mail transfer protocol (smtp)
Smtp, pop3, imapv 4
Electronic mail - Computer Networks
POP3 Post Office Protocol
Application layer protocols
Ports & sockets
Mail server

What's hot (20)

PPTX
Simple Mail Transfer Protocol
PPT
Network Layer,Computer Networks
PPTX
Link state routing protocol
PPT
Chapter 4 data link layer
PPT
Distance vector routing
PPTX
Congestion control
PPT
PPTX
switching techniques in data communication and networking
PPTX
IP addressing seminar ppt
PPTX
Computer network switching
PPTX
Flow Control.pptx
PPT
Smtp
PPTX
HDLC and Point to point protocol
PPTX
Unicasting , Broadcasting And Multicasting New
PPT
Routing
PPTX
Message and Stream Oriented Communication
PPT
Secure Socket Layer
PPTX
Transport layer
PPTX
IPV6 ADDRESS
Simple Mail Transfer Protocol
Network Layer,Computer Networks
Link state routing protocol
Chapter 4 data link layer
Distance vector routing
Congestion control
switching techniques in data communication and networking
IP addressing seminar ppt
Computer network switching
Flow Control.pptx
Smtp
HDLC and Point to point protocol
Unicasting , Broadcasting And Multicasting New
Routing
Message and Stream Oriented Communication
Secure Socket Layer
Transport layer
IPV6 ADDRESS
Ad

Viewers also liked (20)

PPSX
Email protocol & courtesy
DOC
Simple Mail Transfer Protocol
PPT
Smtp
PPTX
What is tcp
PPT
PPT
Smtp
PPTX
SMTP MULE
PPTX
Imap(internet massege access protocaols)
PPT
Smtp protocol
PDF
Nagios Conference 2013 - William Leibzon - SNMP Protocol and Nagios Plugins
PPTX
Telnet
PPT
Chap 20 smtp, pop, imap
PDF
TFTP - Trivial File Transfer Protocol
PPTX
Simple Network Management Protocol
PPTX
Data link control protocol(2)
PPTX
PPTX
User datagram protocol (udp)
PPTX
TCP- Transmission Control Protocol
PPT
Quiz 090323090328 Phpapp02
PPTX
Cultural Quiz Spandan IIT Jodhpur
Email protocol & courtesy
Simple Mail Transfer Protocol
Smtp
What is tcp
Smtp
SMTP MULE
Imap(internet massege access protocaols)
Smtp protocol
Nagios Conference 2013 - William Leibzon - SNMP Protocol and Nagios Plugins
Telnet
Chap 20 smtp, pop, imap
TFTP - Trivial File Transfer Protocol
Simple Network Management Protocol
Data link control protocol(2)
User datagram protocol (udp)
TCP- Transmission Control Protocol
Quiz 090323090328 Phpapp02
Cultural Quiz Spandan IIT Jodhpur
Ad

Similar to Simple Mail Transfer Protocol (20)

PPSX
SMTP(simple mail transfer protocol).ppsx
PPT
Mail services
PPT
Mail server
PPT
internet applications
PDF
Internet technology unit 6
PPT
SMTP – Simple Mail Transfer Protocol | Explained for Beginners
PDF
Email - Electronic Mail
PPTX
Simple Mail Transfer Protocol
PPTX
Electronic Mail
PPT
E-Mail - Technical Overview
PDF
Lec 9(Emails)
PPT
Ftp smtp
PPTX
Simple mail transfer protocol
PDF
Lecture 9 electronic_mail_representation_and_transfer
PPT
Distributedapplications
PPT
Dictributed application by Waqas
PPT
TCP/IP Protocol Suite model Transmission Control Protocol
PPT
SMTP(true)
PPTX
Electronic mail protocols and operations
PPTX
Application layer
SMTP(simple mail transfer protocol).ppsx
Mail services
Mail server
internet applications
Internet technology unit 6
SMTP – Simple Mail Transfer Protocol | Explained for Beginners
Email - Electronic Mail
Simple Mail Transfer Protocol
Electronic Mail
E-Mail - Technical Overview
Lec 9(Emails)
Ftp smtp
Simple mail transfer protocol
Lecture 9 electronic_mail_representation_and_transfer
Distributedapplications
Dictributed application by Waqas
TCP/IP Protocol Suite model Transmission Control Protocol
SMTP(true)
Electronic mail protocols and operations
Application layer

More from Ujjayanta Bhaumik (8)

PPTX
Foreign studies and internships
PPTX
Disney Quiz
PPTX
Light field
PPTX
Auto-tech quiz
PPTX
Augmented reality
PPTX
Enter the dragon.pptx
PPTX
General Quiz
PPTX
Airlines Quiz
Foreign studies and internships
Disney Quiz
Light field
Auto-tech quiz
Augmented reality
Enter the dragon.pptx
General Quiz
Airlines Quiz

Recently uploaded (20)

PPTX
UNIT 4 Total Quality Management .pptx
DOCX
573137875-Attendance-Management-System-original
PDF
Operating System & Kernel Study Guide-1 - converted.pdf
PPTX
KTU 2019 -S7-MCN 401 MODULE 2-VINAY.pptx
PPTX
additive manufacturing of ss316l using mig welding
PPTX
Geodesy 1.pptx...............................................
PDF
Well-logging-methods_new................
PDF
Model Code of Practice - Construction Work - 21102022 .pdf
PDF
The CXO Playbook 2025 – Future-Ready Strategies for C-Suite Leaders Cerebrai...
PPTX
Sustainable Sites - Green Building Construction
PDF
Arduino robotics embedded978-1-4302-3184-4.pdf
PPT
Project quality management in manufacturing
PPTX
Strings in CPP - Strings in C++ are sequences of characters used to store and...
PPTX
CH1 Production IntroductoryConcepts.pptx
PPTX
Infosys Presentation by1.Riyan Bagwan 2.Samadhan Naiknavare 3.Gaurav Shinde 4...
PPTX
Lecture Notes Electrical Wiring System Components
PPTX
M Tech Sem 1 Civil Engineering Environmental Sciences.pptx
PPTX
Welding lecture in detail for understanding
PPTX
OOP with Java - Java Introduction (Basics)
PDF
Structs to JSON How Go Powers REST APIs.pdf
UNIT 4 Total Quality Management .pptx
573137875-Attendance-Management-System-original
Operating System & Kernel Study Guide-1 - converted.pdf
KTU 2019 -S7-MCN 401 MODULE 2-VINAY.pptx
additive manufacturing of ss316l using mig welding
Geodesy 1.pptx...............................................
Well-logging-methods_new................
Model Code of Practice - Construction Work - 21102022 .pdf
The CXO Playbook 2025 – Future-Ready Strategies for C-Suite Leaders Cerebrai...
Sustainable Sites - Green Building Construction
Arduino robotics embedded978-1-4302-3184-4.pdf
Project quality management in manufacturing
Strings in CPP - Strings in C++ are sequences of characters used to store and...
CH1 Production IntroductoryConcepts.pptx
Infosys Presentation by1.Riyan Bagwan 2.Samadhan Naiknavare 3.Gaurav Shinde 4...
Lecture Notes Electrical Wiring System Components
M Tech Sem 1 Civil Engineering Environmental Sciences.pptx
Welding lecture in detail for understanding
OOP with Java - Java Introduction (Basics)
Structs to JSON How Go Powers REST APIs.pdf

Simple Mail Transfer Protocol

  • 3. History  Simple Mail Transfer Protocol (SMTP) is an Internet standard for electronic mail (email) transmission.  First defined by RFC 821in 1982  SMTP became widely used in the early 1980s. At the time, it was a complement to Unix to Unix Copy Program (UUCP) mail, which was better suited for handling email transfers between machines that were intermittently connected.
  • 4. Introduction  SMTP (Simple Mail Transfer Protocol) is a TCP/IP protocol used in sending and receiving e-mail.  Users typically use a program that uses SMTP for sending e-mail and either POP3 or IMAP for receiving e-mail.
  • 6. Working  SMTP is a simple ASCII protocol that is based on client- server model. After establishing the TCP connection, the sending machine, operating as the client, waits for the receiving machine, operating as the server, to talk first. The server starts by sending a line of text giving its identity and telling whether or not it is prepared to receive mail. If it is not, the client releases the connection and tries again later.  If the server is willing to accept e-mail, the client announces whom the e-mail is coming from and destination, the server gives the client the go ahead to send the message. Then the client sends the message and the server acknowledges it.
  • 7. Smtp commands  The HELO command is used to initiate an SMTP session. When one host needs to establish an SMTP session with another host  MAIL FROM: command is used primarily to send email addresses  The RCPT TO: command tells the receiving host the email address of the message recipient
  • 8. Smtp commands contd.  DATA has the body of the mail  The QUIT command is used to terminate an SMTP session  The RSET command performs an SMTP reset, and then aborts the message that is currently being sent.  EXPN includes the mailing list to be expanded
  • 9. SMTP response codes  Responses are 3 digit codes sent from server to client  220: The SMTP service is ready  221: SMTP is closing the transmission channel  250: The command has been completed  354: OK to transmit message  450: Command can not be completed because the mailbox is busy
  • 10.  451: Command has been aborted because of an error  452: Command has been aborted because the receiving host is out of disk space  500: Syntax error  550: Specified mailbox is unavailable or does not exist  552: Command was aborted because the recipient has exceeded their storage quota  554: The transaction has failed
  • 11. Mail Transfer Phases  Connection Establishment  Mail transfer  Connection termination
  • 12. Connection Establishment  An SMTP sender will attempt to set up a TCP connection with a target host when it has one or more mail message to deliver to that host. The following sequence occurs during connection setup:   1. The sender opens a TCP connection with the receiver.  2. Once the connection is established, the receiver identifies itself with '220 Service Ready".  3. The sender identifies itself with the HELO command.  4. The receiver accepts the sender's identification with "250 'OK".  5. If the mail service on the destination is not available, the destination host returns a "421 Service Not Available" reply in step 2 and the process is terminated.
  • 13. Mail Transfer • Once the connection has been established, the SMTP sender may send one or more messages to the SMTP receiver. • There are three logical phases to the transfer of a message :  1. A MAIL command identifies the originator of the message.  2. One or more RCPT commands identify the recipients of this message.  3. A DATA command transfers the message text.
  • 14. Connection termination The SMTP sender closes the connection in the following manner:  1. The sender sends a QUIT command and waits for a reply.  2. Sender initiates TCP close operation for the TCP connection.  3. The receiver initiates its TCP close after sending is reply to the QUIT command.
  • 16.  Today’s email content needs to be lively, dynamic and time-dependent.  A drop in click rates and falling conversion rates, just like everyone else who still sends the same email to everyone in their database
  • 17.  The latest development is real-time content in emails. Previously the content of an email was fixed at the time it was sent. Now the content of your mails can be updated in real- time, every single time the email is opened.
  • 18. Examples  Offer of the day  Live data  Limited time content  Social content
  • 19.  Agile emails The most recent development stage is agile emails where the content is updated each time the email is opened. Combined with dynamic content and automisation, this creates fantastic and unlimited opportunities.
  • 20. IDN  International email (IDN email or Intl email) is email that contains international characters (characters which do not exist in the ASCII character set), encoded as UTF-8, in the email header and in supporting mail transfer protocols. The most significant aspect of this is the allowance of email addresses (also known as email identities) in most of the world's writing systems, at both interface and transport levels.
  • 21. IDN Contd.  A Russian might wish to use дерек@екзампил.ком as their identifier but be forced to use a transcription such as derek@example.com  International email, by contrast, uses Unicode characters encoded as UTF-8 - allowing for the encoding the text of addresses in most of the world's writing systems
  • 22. Usage  All email servers use SMTP  godaddy- 250 msgs per day  gmail- 150 msgs a day  But we can pay and create if we want to create full fledged email servers
  • 23. Evolution  Earlier using SMTP only text needed to be transferred. However nowadays, additional features such multimedia also  Security and encryption features added
  • 24.  Both provide a way to encrypt a communication channel between two computers (e.g. your computer and our server).  TLS is the successor to SSL and the terms SSL and TLS are used interchangeably unless you're referring to a specific version of the protocol.
  • 25. Versions  STARTTLS is a way to take an existing insecure connection and upgrade it to a secure connection using SSL/TLS.  Note that despite having TLS in the name, STARTTLS doesn't mean you have to use TLS, you can use SSL  So the ordering of protocols in terms of oldest to newest is: SSL v2, SSL v3, TLS v1.0, TLS v1.1, TLS v1.2, TLS v1.3 (currently proposed).
  • 26.  Recently Google enabled smtp/tls - for security purposes. both parties need to support this.  When you connect to an SSL/TLS encrypted port, or use STARTTLS to upgrade an existing connection, both sides will negotiate which protocol and which version to use based on what has been configured in the software and what each side supports.  SSL/TLS is virtually universal these days
  • 27.  SSL v2 was deprecated and phased out many years ago due to security issues. SSL v3 is currently deprecated due to security issues, and  support has or is being phased out by most services these days. Almost all software supports TLS v1.0. As at October 2016, support for TLS v1.1  and TLS v1.2 is also very good, though there are some exceptions, mostly with Internet Explorer.
  • 28.  To add security to some existing protocols (e.g. IMAP, POP, etc.), it was decided to just add SSL/TLS encryption as a layer underneath the existing protocol.  To distinguish that software should talk the SSL/TLS encrypted version of the protocol rather than the plaintext one, a different port number was used for each protocol. So you have:  IMAP uses port 143, but SSL/TLS encrypted IMAP uses port 993.  POP uses port 110, but SSL/TLS encrypted POP uses port 995.  SMTP uses port 25, but SSL/TLS encrypted SMTP uses port 465.
  • 29.  This has now basically become the de facto standard that everyone uses.  IMAP SSL/TLS encrypted over port 993 or POP SSL/TLS encrypted over port 995.  Many sites (including FastMail) now disable plain IMAP (port 143) and plain POP (port 110) altogether so people must use an SSL/TLS encrypted connection.