Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Simple mail transfer protocol

3,846 views

Published on

SMTP -Made by anagha ghotkar

Published in: Technology
  • Be the first to comment

Simple mail transfer protocol

  1. 1. Overview • Introduction to SMTP • History of Smtp • General features of SMTP • Sendmail • Relays And Gate ways • How SMTP works • Limitations in SMTP • Example of SMTP
  2. 2. 3
  3. 3. 4 Composes, reads, replies to ,forwards and handles mailboxes Transfers mails from one host to another Collects mail and delivers to user agent Transfers mails from one host to another Collects mail and delivers to user agentIntroduction…
  4. 4. Introduction to SMTP • SMTP is an Internet standard for electronic mail. • SMTP is the protocol in widespread use today. • It is the actual protocol used to transfer mail from MTA to MTA. • MTA: Mail Transfer Agent .... A program that actually routes and delivers mail. • MUA: Mail User Agen t ... A program that is used to access mail after delivery. • The objective of SMTP is to transfer mail reliably and efficiently.
  5. 5. History of SMTP • The SMTP specification originally started with the Mail Transfer Protocol in 1980 • It evolved into Simple Mail Transfer Protocol (SMTP) in 1981 • Specified in RFC 821 • Most recent RFC is 2821 • First and most important implementation is sendmail
  6. 6. General Features • Independent of underlying transmission subsystem. • Just needs a reliable ordered data stream channel. • Operates over TCP port 25. • Uses an request-response protocol that is useful to human readers (SMTP commands). • SMTP sessions are stateful, with both parties carefully maintaining a common view of the current state.
  7. 7. 8 Sendmail Mail Transfer Agent [MTA] : is a computer program or software agent that transfers electronic mail messages from one computer to another. • Sendmail is a MTA • Supports several mail transfers including SMTP • Pro’s • Can perform header rewriting, mail routing • Extensive support available • Con’s • Not secure • Code is bulky [compared to other MTA’s such as qmail]
  8. 8. 9 Message transfer… SMTP is a push protocol
  9. 9. 10 • SMTP server can also assume the role of a “relay” • SMTP mail gateways are used to transport mail prepared by a protocol other than SMTP Relays and Gateways SMTP supported Non-SMTP supported
  10. 10. 11 Link Layer PCI IP-PCI Keyword: argument(s) Command format: Response format: 3-digit status code [textual information] How SMTP works? Link Layer PCI IP-PCI TCP-PCI SMTP command/responseTCP-PCI SMTP command/responseTCP-PCI SMTP command/response
  11. 11. 12 How SMTP works : Status Codes The Server responds with a 3 digit code that may be followed by text info – 2## - Success – 3## - Command can be accepted with more information – 4## - Command was rejected, but error condition is temporary – 5## - Command rejected, Bad User!
  12. 12. 13 Limitations in SMTP • Only uses NVT 7 bit ASCII format – How to represent other data types? • Susceptible to misuse (Spamming, faking sender address)
  13. 13. SMTP transport example

×