SMTP Tapu Ahmed Jeremy Nunn. Basics Responsible for electronic mail delivery. Responsible for electronic mail delivery. Simple ASCII protocol that runs.

Slides:



Advertisements
Similar presentations
CCNA – Network Fundamentals
Advertisements

TCP/IP Protocol Suite 1 Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Chapter 23 Electronic Mail: SMTP,
SMTP – Simple Mail Transfer Protocol
Lesson 7: Business, , & Personal Information Management
Application Layer Pertemuan 25 Matakuliah: H0484/Jaringan Komputer Tahun: 2007.
Chapter 6: Distributed Applications Business Data Communications, 5e.
1 © 2003, Cisco Systems, Inc. All rights reserved. CCNA 1 v3.0 Module 11 TCP/IP Transport and Application Layers.
CSCE 515: Computer Network Programming Chin-Tser Huang University of South Carolina.
Chapter 30 Electronic Mail Representation & Transfer
Simple Mail Transfer Protocol (SMTP) Team: Zealous Team: Zealous Presented By: Vishal Parikh ( ) Vishal Parikh ( ) Ribhu Pathria( )
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public 1 Version 4.0 Application Layer Functionality and Protocols Network Fundamentals – Chapter.
Architecture of SMTP, POP, IMAP, MIME.
Introduction 1 Lecture 7 Application Layer (FTP, ) slides are modified from J. Kurose & K. Ross University of Nevada – Reno Computer Science & Engineering.
SIMPLE MAIL TRANSFER PROTOCOL SECURITY Guided By Prof : Richard Sinn Bhavesh Jadav Mayur Mulani.
Lecturer : Ms.Trần Thị Ngọc Hoa Chapter 8 File Transfer Protocol – Simple Mail Transfer Protocol.
Introduction 1-1 Chapter 2 FTP & Computer Networking: A Top Down Approach 6 th edition Jim Kurose, Keith Ross Addison-Wesley March 2012 IC322 Fall.
Electronic Mail (SMTP, POP, IMAP, MIME)
Process-to-Process Delivery:
Chapter 17 Networking Dave Bremer Otago Polytechnic, N.Z. ©2008, Prentice Hall Operating Systems: Internals and Design Principles, 6/E William Stallings.
Mail Services.
The Linux Operating System Lecture 7: Tonga Institute of Higher Education.
Chapter 7: Internet-Based Applications Business Data Communications, 6e.
1 Computer Communication & Networks Lecture 27 Application Layer: Electronic mail and FTP Waleed.
SMTP PROTOCOL CONFIGURATION AND MANAGEMENT Chapter 8.
Computer Networking From LANs to WANs: Hardware, Software, and Security Chapter 12 Electronic Mail.
Network Protocols. Why Protocols?  Rules and procedures to govern communication Some for transferring data Some for transferring data Some for route.
Presentation on Osi & TCP/IP MODEL
CCNA 1 v3.0 Module 11 TCP/IP Transport and Application Layers.
Simple Mail Transfer Protocol (SMTP)
Copyright 2003 CCNA 1 Chapter 9 TCP/IP Transport and Application Layers By Your Name.
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public 1 Version 4.0 Network Services Networking for Home and Small Businesses – Chapter 6.
1 Version 3.0 Module 11 TCP Application and Transport.
Internet Applications
Postfix Mail Server Postfix is used frequently and handle thousands of messages. compatible with sendmail at command level. high performance program easier-
MCSE Guide to Microsoft Exchange Server 2003 Administration Chapter Two Installing and Configuring Exchange Server 2003.
TCP/IP Transport and Application (Topic 6)
1 Electronic Messaging Module - Electronic Messaging ♦ Overview Electronic messaging helps you exchange messages with other computer users anywhere in.
1 © 2003, Cisco Systems, Inc. All rights reserved. CCNA 1 v3.0 Module 11 TCP/IP Transport and Application Layers.
CCNA 1 v3.0 Module 11 TCP/IP Transport and Application Layers.
1 SMTP - Simple Mail Transfer Protocol –RFC 821 POP - Post Office Protocol –RFC 1939 Also: –RFC 822 Standard for the Format of ARPA Internet Text.
Application Layer Khondaker Abdullah-Al-Mamun Lecturer, CSE Instructor, CNAP AUST.
Data Communications and Networks Chapter 5 – Network Services DNS, DHCP, FTP and SMTP ICT-BVF8.1- Data Communications and Network Trainer: Dr. Abbes Sebihi.
SIMPLE MAIL TRANSFER PROTOCOL. Introduction Simple Mail Transfer Protocol is the standard protocol on the Internet and part of the TCP/IP protocol.
Networking Basics CCNA 1 Chapter 11.
SIMPLE MAIL TRANSFER PROTOCOL PRADEEP KOLLIPARA SANDEEP PINNAMANENI.
LinxChix And Exim. Mail agents MUA = Mail User Agent Interacts directly with the end user  Pine, MH, Elm, mutt, mail, Eudora, Marcel, Mailstrom,
SMTP / MIME Florin Zidaru.
Protocols COM211 Communications and Networks CDA College Olga Pelekanou
A Quick Look At How Works Understanding the basics of how works can make life a lot easier for any user. Especially those who are interested.
SMTP - Simple Mail Transfer Protocol RFC 821
Chapter 16: Distributed Applications Business Data Communications, 4e.
Linux Operations and Administration Chapter Twelve Configuring a Mail Server.
MCSE Guide to Microsoft Exchange Server 2003 Administration Chapter One Introduction to Exchange Server 2003.
1 Kyung Hee University Chapter 22 Simple Mail Transfer Protocol (SMTP)
Ch 2. Application Layer Myungchul Kim
26.1 Electronic Mail Sending/Receiving Mail Addresses User Agent MIME Mail Transfer Agent Mail Access Protocols.
IST 201 Chapter 11 Lecture 2. Ports Used by TCP & UDP Keep track of different types of transmissions crossing the network simultaneously. Combination.
© MMII JW RyderCS 428 Computer Networks1 Electronic Mail  822, SMTP, MIME, POP  Most widely used application service  Sometimes only way a person ever.
SMTP - Simple Mail Transfer Protocol POP - Post Office Protocol
Networking Applications
SUBMITTED BY: NAIMISHYA ATRI(7TH SEM) IT BRANCH
Chapter 6: Distributed Applications
Social Media And Global Computing Sending
CS- 492 : Distributed system & Parallel Processing
has many aspects that work together to give people almost instant communication from any computer on the internet to any other computer There.
Process-to-Process Delivery:
William Stallings Data and Computer Communications
Unit – 4 Chap - 2 Mail Delivery System
Chapter 7 Network Applications
Process-to-Process Delivery: UDP, TCP
Presentation transcript:

SMTP Tapu Ahmed Jeremy Nunn

Basics Responsible for electronic mail delivery. Responsible for electronic mail delivery. Simple ASCII protocol that runs on top of TCP/IP. Simple ASCII protocol that runs on top of TCP/IP. Uses reserved port number 25. Uses reserved port number 25.

SMTP Model You want to send an from A to B. Both A and B are simple workstations. AB

We will first attempt the destination server to see if it will accept mail. A Port 25 Server B If server can accept mail, the client submits. If, server is busy, client will cancel connection and try again. A submits source and destination. If both are valid, server gives the go-ahead signal

AB Our goal is to send a mail from A to B Step 1 Step 2 Step 3 Send Req ACK ALocal Mail Server Send Mail ACK A Local Mail Server will store and queue Local Mail Server DNS Query DNS Server Reply with IP address resolution

Step 4 Step 5 Step 6 Server AServer B REQ ACK Server AServer B: receive/store Send ACK Server BB Ring ACK Optional SMTP protocol exists here, between the two servers and their “jumps.”

The exchange of mails using TCP/IP is performed by a message transfer agent (MTA). The exchange of mails using TCP/IP is performed by a message transfer agent (MTA). –An MTA is responsible for routing mails to their proper destinations. –MTA uses the Mail Exchange (MX) record from a DNS server to determine location. In essence, the SMTP protocol describes how two MTAs communicate with each other using a single TCP connection. In essence, the SMTP protocol describes how two MTAs communicate with each other using a single TCP connection.

Sending Host User A Queue Local MTA Relay MTA Local MTA User B User Mailboxes Local MTA Receiving Host Across the internet Queue of mail

Topics for SMTP SMTP Description SMTP Description –Primarily RFC 821 and 822 –Message formats –Extensions SMTP Applications SMTP Applications –Purpose –Operations –Unique problems encountered.

Topics for SMTP continued Security and performance issues Security and performance issues –Hacking –End-end delivery system performance –Spamming issues Looking Ahead Looking Ahead –Future standardizations

RFC 821 A Description of SMTP A Description of SMTP –Objective is to deliver mail reliably and efficiently. Points of interest Points of interest –Mailing/sending –Forwarding –Relaying –Opening/closing

SMTP Procedure SMTP Procedure –MAIL command Clear buffer and get ready to receive mail Clear buffer and get ready to receive mail Gives sender ID Gives sender ID –RCPT command Gives receiver information Gives receiver information –DATA command Send the data Send the data

S: MAIL FROM: S: MAIL FROM: R: OK R: OK S: RCPT TO: S: RCPT TO: R: OK R: OK S: RCPT TO: S: RCPT TO: R: ERROR; no such user here R: ERROR; no such user here S: RCPT TO: S: RCPT TO: R: OK R: OK S: DATA S: DATA –send mails –Ending signature R: OK R: OK

RFC 821 also provides: RFC 821 also provides: –Verification –SMTP commands and syntax structure –State diagrams –Sequencing of commands and replies Extensions: Extensions: –RFC 1869 EHLO command EHLO command –MAIL, RCPT, DATA can all receive additional values.

RFC (2)822 Describes message formatting for SMTP. Describes message formatting for SMTP. –RFC 822 is the standard for the format of internet text messages. –RFC 2822: new standard Points of interest Points of interest –Message specifications –Date/time specifications –Address specifications –Different RFC extensions

Limitations: Limitations: –998 character/line max. 78 min. –Only ASCII characters Header: Header: –Composed of a field name –Terminates by a “:”, and ends with CRLF. Address Specification: Address Specification: –Individual or an entire mailbox –Occurs in multiple fields to indicate sender or receiver

Date and Time Specification Date and Time Specification –Must be semantically valid. –Added on through numerous headers. Extensions: Extensions: –RFC 2045 and 2046 Describe mechanisms for transmission Describe mechanisms for transmission

SMTP Applications Several SMTP applications exist, too numerous to enumerate Several SMTP applications exist, too numerous to enumerate qmail qmail –Configuration is “unique” (one file to one config value) –Places many files in the root of your system –Awkward license prevents distributing modified source or binaries –Developer/owner is a busy guy sendmail sendmail –Past and current versions (8) have been notoriously insecure –Remote root exploits, etc.

SMTP Applications Postfix Postfix –Uses sensible defaults –Good security track record –Easier to configure –Can query LDAP to pick up new/modified users Microsoft Exchange Microsoft Exchange –Very easy to use on a Windows network –Integrates with Active Directory (uses LDAP) –Not the best security

Security and Performance Who needs security? Who needs security? –When SMTP was initially developed, little (none maybe?) emphasis was placed on security –Design was built on the idea of cooperation and trust –Didn’t anticipate spam Mail Relay Mail Relay –Relay is sending mail from one mail server to another –Most SMTP servers didn’t check authenticity of users

Security and Performance Bulk mails Bulk mails –Unsolicited bulk mailers take advantage of this –Decreases performance of server for rightful users Relay Restrictions Relay Restrictions –Verify that the computer is on the server’s local network –Require a local domain return address –Do not accept mail from other open relay servers

Security and Performance How about a new SMTP? How about a new SMTP? –The problem is obvious, so let’s change the protocol –No guaranteed way to implement without creating incompatibilities –We like the idea of cooperation –Maybe there’s another way

Security and Performance Other Security Measures Other Security Measures –Limit the use of commands –Check the validity of the envelope –Limit the size of the –Limit the number of s that may be sent in a given amount of time –Log everything –POP-before-SMTP Authentication Note that SMTP has no mechanism for privacy (encryption). Note that SMTP has no mechanism for privacy (encryption). –This has to be done at a higher level if needed –Currently is application specific

Future Projections Current projects include: Sender Policy Framework (SPF) Sender Policy Framework (SPF) –Only certain servers are allowed to forward mail from certain domain names –Easy to check New DNS Blackhole Lists New DNS Blackhole Lists –Narrowly identify specific invalid senders –Will be viable once a large enough number of servers support this Spam Filtering Spam Filtering –Intelligent, self-learning software –Good job of identifying unwanted messages that get through Greylisting Greylisting –Receiving servers make sending servers wait –Spammers probably won’t come back –More time means more chances to add the offender to the blackhole list