Last Lecture. Start the Application Layer DNS. SUNY at Buffalo; CSE 489/589 Modern Networking Concepts; Fall 2010; Instructor: Hung Q.

Similar documents
File transfer and

Client Configurations

These tasks can now be performed by a special program called FTP clients.

Enabling Your Personal Web Page on the SacLink

Admin Report Kit for Exchange Server

Imagine for MSDNAA Student SetUp Instructions

b) The browser is running HTTP version 1.1, as indicated just before the first <cr><lf> pair.

CSC 4900 Computer Networks:

Date: October User guide. Integration through ONVIF driver. Partner Self-test. Prepared By: Devices & Integrations Team, Milestone Systems

The Application Layer: & SMTP

PL-2302 Mac OS Driver MAC/PC and PC/MAC Communication Software

CS 43: Computer Networks. 12: and SMTP September 28, 2018

b) The browser is running HTTP version 1.1, as indicated just before the first <cr><lf> pair.

REST; WebSocket (RFC 6455)

CNS-222-1I: NetScaler for Apps and Desktops

Skype Meetings

Chapter 2 Application Layer

CCNA Security v2.0 Chapter 3 Exam Answers

Samsung Galaxy -Exchange ActiveSync Setup

Connect+/SendPro P Series Networking Technical Specification

OASIS SUBMISSIONS FOR FLORIDA: SYSTEM FUNCTIONS

Systems & Operating Systems

Troubleshooting of network problems is find and solve with the help of hardware and software is called troubleshooting tools.

Enterprise Installation

Practical Exercises in Computer Networks and Distributed Systems

CCNA 1 Chapter v5.1 Answers 100%

Dynamic Storage (ECS)

ROCK-POND REPORTING 2.1

Internetwork - A. How did The Internet get started? What was the ARPA-NET? UCLA Computer Network (1969) SRI-Stanford (1969) internetwork

Second Assignment Tutorial lecture

EView/400i Management Pack for Systems Center Operations Manager (SCOM)

Ephorus Integration Kit

Please contact technical support if you have questions about the directory that your organization uses for user management.

Lecture 6: Application Layer Web proxies, , and SMTP

This document lists hardware and software requirements for Connected Backup

ip.buffer App Note AN009 : Security Considerations

Enterprise Chat and Developer s Guide to Web Service APIs for Chat, Release 11.6(1)

Dell Wyse Device Manager (WDM)

Applications & Application-Layer Protocols: FTP and (SMTP & POP)

Service commands: RETR, STOR, STOU, APPE, ALLO, REST, RNFR, RNTO, ABOR, DELE, RMD, MRD, PWD, LIST, NLST, SITE, SYST, STAT, HELP, NOOP.

PAY EQUITY HEARINGS TRIBUNAL. Filing Guide. A Guide to Preparing and Filing Forms and Submissions with the Pay Equity Hearings Tribunal

Brief Intro to relational databases

App Orchestration 2.6

BMC Remedyforce Integration with Remote Support

CS 3516: Computer Networks

CaseWare Working Papers. Data Store user guide

Paraben s Phone Recovery Stick

White Paper. Contact Details

Milestone XProtect. NVR Installer s Guide

CCNA 1 Chapter v5.1 Answers 100%

Log shipping is a HA option. Log shipping ensures that log backups from Primary are

Planning, installing, and configuring IBM CMIS for Content Manager OnDemand

MyUni Adding Content. Date: 29 May 2014 TRIM Reference: D2013/ Version: 1

Information Technology Services MCG New Student Orientation Fall 2016

McGill University School of Computer Science COMP-206. Software Systems. Due: September 29, 2008 on WEB CT at 23:55.

IMC QoS Manager 7.3 (E0502) Copyright 2015, 2016 Hewlett Packard Enterprise Development LP

CCNA course contents:

WWW: the http protocol

I. Introduction: About Firmware Files, Naming, Versions, and Formats

HPE LoadRunner Best Practices Series. LoadRunner Upgrade Best Practices

CCNA Security v2.0 Chapter 1 Exam Answers

CSCE 463/612 Networks and Distributed Processing Spring 2018

Internet and Intranet Protocols and Applications

To start your custom application development, perform the steps below.

Welcome to Remote Access Services (RAS) Virtual Desktop vs Extended Network. General

CCNA 1 Chapter v5.1 Answers 100%

Infrastructure Series

Procurement Contract Portal. User Guide

Operational Security. Speaking Frankly The Internet is not a very safe place. A sense of false security... Firewalls*

Chapter 2. The OSI Model and TCP/IP Protocol Suite. PDF created with FinePrint pdffactory Pro trial version

System Requirements. SAS Digital Marketing 6.5. Overview. Major Sections in this Document. Installation Requirements. Third-Party Support

UPGRADING TO DISCOVERY 2005

RTX includes new functionality, see the product Release Notes for a full list of new features.

Networks: Communicating and Sharing Resources. Chapter 7: Networks: Communicating and Sharing Resources

Introduction to Office 2010: What s New, Improved, and Missing

CNS-220-1I: Citrix NetScaler Essentials and Traffic Management

Password Reset for Remote Users

BANNER BASICS. What is Banner? Banner Environment. My Banner. Pages. What is it? What form do you use? Steps to create a personal menu

The transport layer. Transport-layer services. Transport layer runs on top of network layer. In other words,

The Application Layer: SMTP, FTP

Lecture 6 -.NET Remoting

(CNS-220) Citrix NetScaler Essentials and Traffic Management

SMART Product Drivers 11.3 for Windows and Mac computers

In Outlook, how do I allow other users to view my Calendar or other folders in my Exchange mailbox?

MySabre API RELEASE NOTES MYSABRE API VERSION 2.1 (PART OF MYSABRE RELEASE 7.1) DECEMBER 02, 2006 PRODUCTION

BMC Remedyforce Integration with Bomgar Remote Support

SAP Business One Hardware Requirements Guide

CNS-301 Citrix NetScaler 10.5 Advanced Implementation

Dear Milestone Customer,

Frequently Asked Questions

Your New Service Request Process: Technical Support Reference Guide for Cisco Customer Journey Platform

Cisco Tetration Analytics, Release , Release Notes

Table of Contents. 1 Introduction Connecting to the API HTTP request syntax API release versions... 4

Introduction to Information Security Hacking Operations. nirkrako at post.tau.ac.il Infosec15 at modprobe.net

Courseware Setup. Hardware Requirements. Software Requirements. Prerequisite Skills

Programming Project: Building a Web Server

Secure File Transfer Protocol (SFTP) Interface for Data Intake User Guide

CCNA Security v2.0 Chapter 2 Exam Answers

NiceLabel LMS. Installation Guide for Single Server Deployment. Rev-1702 NiceLabel

High Security SaaS Concept Software as a Service (SaaS) for Life Science

Transcription:

Last Lecture Start the Applicatin Layer DNS SUNY at Buffal; CSE 489/589 Mdern Netwrking Cncepts; Fall 2010; Instructr: Hung Q. Ng 1

This Lecture SMTP SUNY at Buffal; CSE 489/589 Mdern Netwrking Cncepts; Fall 2010; Instructr: Hung Q. Ng 2

Electrnic Mail Infrastructure Fur majr cmpnents: User s Mail s SMTP Mail access prtcl IMAP/POP3 User Agent ( Mail Reader ) Cmpsing, editing, reading mail messages E.g., Eudra, Outlk, Pine, Thunderbird, Apple Mail mail SMTP mail IMAP/POP3 SMTP SMTP mail SMTP (25) ESMTP (587) Secure SMTP (465) utging message queue mailbx SUNY at Buffal; CSE 489/589 Mdern Netwrking Cncepts; Fall 2010; Instructr: Hung Q. Ng 3

Typical Scenari: Alice Emails Bb 1) Alice uses UA t cmpse message t bb@smeschl.edu 2) Alice s UA sends message t her mail ; message placed in message queue 3) Client side f SMTP pens TCP cnnectin with Bb s mail Hw des it knw IP f Bb s mail? 4) SMTP client sends Alice s message ver the TCP cnnectin 5) Bb s mail places the message in Bb s mailbx 6) Bb invkes his t retrieve the message There are ften mre than 1 mail n the path (fllw MX preference) 1 mail mail 2 3 4 5 6 SUNY at Buffal; CSE 489/589 Mdern Netwrking Cncepts; Fall 2010; Instructr: Hung Q. Ng 4

Mail Servers Typical functinalities Mailbx cntains incming messages fr Message queue f utging (t be sent) mail messages mail SMTP SMTP mail SMTP prtcl between mail s t send email messages mail SMTP Client : sending mail Server : receiving mail SUNY at Buffal; CSE 489/589 Mdern Netwrking Cncepts; Fall 2010; Instructr: Hung Q. Ng 5

SMTP Uses TCP t reliably transfer email message frm client t, prt 25 Three phases f transfer handshaking (greeting) transfer f messages clsure Cmmand/respnse interactin Cmmands (r Verb): ASCII text Respnse : status cde and phrase 200-399: acceptance 400-499: temprary rejectin 500-599: permanent rejectin Messages must be in 7-bit ASCII SUNY at Buffal; CSE 489/589 Mdern Netwrking Cncepts; Fall 2010; Instructr: Hung Q. Ng 6

Sample SMTP Interactin [hungng@saign] ~ $ telnet ubmx.buffal.edu 25 Trying 128.205.5.197... Cnnected t ubmx.buffal.edu. Escape character is '^]'. 220 mxb.acsu.buffal.edu ESMTP Prefixe HELO buffal.edu 250 mxb.acsu.buffal.edu MAIL FROM: <hungng@buffal.edu> 250 2.1.0 Ok RCPT TO: <my_email@gmail.cm> 554 5.7.1 <my_email@gmail.cm>: Relay access denied RCPT TO: <hungng@buffal.edu> 250 2.1.5 Ok DATA 354 End data with <CR><LF>.<CR><LF> This is just a test. 250 2.0.0 Ok: queued as 7FE8B2889 QUIT 221 2.0.0 Bye Cnnectin clsed by freign hst. SUNY at Buffal; CSE 489/589 Mdern Netwrking Cncepts; Fall 2010; Instructr: Hung Q. Ng 7

SMTP (Basic) Mail Message Frmat SMTP: prtcl fr exchanging email msgs RFC 822: standard fr text message frmat: header lines, e.g., T: Frm: Subject: Header lines are different frm SMTP cmmands! bdy the message, 7-bit ASCII characters nly header bdy blank line SUNY at Buffal; CSE 489/589 Mdern Netwrking Cncepts; Fall 2010; Instructr: Hung Q. Ng 8

Message Frmat: Multimedia Extensins MIME: multimedia mail extensin, RFC 2045, 2056 Additinal lines in msg header declare MIME cntent type MIME versin methd used t encde data multimedia data type, subtype, parameter declaratin encded data Frm: alice@crepes.fr T: bb@hamburger.edu Subject: Picture f yummy crepe. MIME-Versin: 1.0 Cntent-Transfer-Encding: base64 Cntent-Type: image/jpeg base64 encded data.........base64 encded data SUNY at Buffal; CSE 489/589 Mdern Netwrking Cncepts; Fall 2010; Instructr: Hung Q. Ng 9

Mail Access Prtcls SMTP ESMTP SMTP access prtcl sender s mail receiver s mail Mail access prtcl: retrieval frm POP: Pst Office Prtcl [RFC 1939] authrizatin ( <-->) and dwnlad IMAP: Internet Mail Access Prtcl [RFC 1730] mre features (mre cmplex) manipulatin f stred messages n HTTP: gmail, Htmail, Yah! Mail, etc. SUNY at Buffal; CSE 489/589 Mdern Netwrking Cncepts; Fall 2010; Instructr: Hung Q. Ng 10

POP3 Prtcl Authrizatin phase client cmmands: : declare name pass: passwrd respnses +OK -ERR Transactin phase, client: list: list message numbers retr: retrieve message by number dele: delete quit S: +OK POP3 ready C: bb S: +OK C: pass hungry S: +OK successfully lgged n C: list S: 1 498 S: 2 912 S:. C: retr 1 S: <message 1 cntents> S:. C: dele 1 C: retr 2 S: <message 1 cntents> S:. C: dele 2 C: quit S: +OK POP3 signing ff SUNY at Buffal; CSE 489/589 Mdern Netwrking Cncepts; Fall 2010; Instructr: Hung Q. Ng 11

POP3 and IMAP Mre abut POP3 Previus example uses dwnlad and delete mde. Bb cannt re-read e-mail if he changes client Dwnlad-and-keep : cpies f messages n different clients POP3 is stateless acrss sessins IMAP Keep all messages in ne place: the Allws t rganize messages in flders IMAP keeps state acrss sessins: names f flders and mappings between message IDs and flder name SUNY at Buffal; CSE 489/589 Mdern Netwrking Cncepts; Fall 2010; Instructr: Hung Q. Ng 12

SMTP: a Cinderella Stry A simple idea (1971) changes ur lives frever! Accrding t pingdm.cm: 1.4 billin The number f email s wrldwide. 247 billin The number f emails sent per day in 2009. 90 trillin The ttal number f emails sent in 2009 81% The percentage f emails that are spam. Remember Sabeer Bhatia? Yu culd d the same. SUNY at Buffal; CSE 489/589 Mdern Netwrking Cncepts; Fall 2010; Instructr: Hung Q. Ng 13

Our Cinderella is Nt Very Smart RFC 2821 S Simple Mail Transfer Prtcl (SMTP) RFC 1123 S Requirements fr Internet hsts - applicatin and supprt RFC 974 S Mail ruting and the dmain system (MX recrds) RFC 1869 S SMTP Service Extensins RFC 1870 S SMTP Service Extensin fr Message Size Declaratin RFC 1652 D SMTP Service Extensin fr 8bit-MIMEtransprt RFC 3030 P SMTP Service Extensins fr Transmissin f Large and Binary MIME Messages RFC 1845 E SMTP Service Extensin fr Checkpint/Restart RFC 1846 E SMTP 521 Reply Cde RFC 2920 S SMTP Service Extensin fr Cmmand Pipelining RFC 1985 P SMTP Service Extensin fr Remte Message Queue Starting (ETRN) RFC 2645 P On-Demand Mail Relay (ODMR) SMTP with Dynamic IP Addresses RFC 2852 P Deliver By SMTP Service Extensin RFC 2034 P SMTP Service Extensin fr Returning Enhanced Errr Cdes RFC 3464 P An Extensible Message Frmat fr Delivery Status Ntificatins (DSNs) RFC 3463 D Enhanced Mail System Status Cdes RFC 3461 P SMTP Service Extensin fr Delivery Status Ntificatins RFC 3462 P Multipart/Reprt Cntent Type fr the Reprting f Mail System Administrative Messages RFC 2476 P Message Submissin RFC 2554 P SMTP Service Extensin fr Authenticatin RFC 2505 B Anti-Spam Recmmendatins fr SMTP MTAs RFC 2442 I Batch SMTP Media Type RFC 1047 I Duplicate messages and SMTP RFC 1090 I SMTP n X.25 SUNY at Buffal; CSE 489/589 Mdern Netwrking Cncepts; Fall 2010; Instructr: Hung Q. Ng 14

The Headache T filter r nt t filter, that s the prblem! The number f spam emails sent in 2009 (assuming 81% are spam) is 73 trillin Nte: Spam is a registered trademark f a meat prduct made by Hrmel Spam cmes frm a Mnty Pythn sketch What s the rt cause f spamming? SUNY at Buffal; CSE 489/589 Mdern Netwrking Cncepts; Fall 2010; Instructr: Hung Q. Ng 15

Main Prblem Btnet! NY Times, Jan 23, 2009: Wrm Infects Millins f Cmputers Wrldwide A new digital plague has hit the Internet, infecting millins f persnal and business cmputers in what seems t be the first step f a multistage attack. The wrld s leading cmputer security experts d nt yet knw wh prgrammed the infectin, r what the next stage will be. In recent weeks a wrm, a malicius sftware prgram, has swept thrugh crprate, educatinal and public cmputer netwrks arund the wrld. Knwn as Cnficker r Dwnadup, it is spread by a recently discvered Micrsft Windws vulnerability, by guessing netwrk passwrds and by hand-carried cnsumer gadgets like USB keys. Much mre abut btnets later in the curse SUNY at Buffal; CSE 489/589 Mdern Netwrking Cncepts; Fall 2010; Instructr: Hung Q. Ng 16

Sme Partial Slutins Authenticatin (SMTP ver SSL/TLS) Users Mail s Hw t trust peple/s? A trusted third party causes ther prblems. Rewrite SMTP Key CS phrase: Backward cmpatibility Currently there are millins f SMTP s n the net Tk IETF > 6 years t decide that spam is harmful and frmed a research grup t study slutins Ad Hc extensins t SMTP (e.g. TEOS) Micrsft: why dn t we amend DNS? SUNY at Buffal; CSE 489/589 Mdern Netwrking Cncepts; Fall 2010; Instructr: Hung Q. Ng 17

Mre Partial Slutins Challenge-respnse technlgy SpamArrest.cm, Mail-blck.cm, ipermitmail.cm Pses prblems n its wn RFC 2505: D nt relay Use DNS infrmatin (hpefully with secure DNS RFC2065 which makes IP spfing much harder) This is currently in use n many MTAs Anther prblem: DS n DNS s Delays: waiting fr DNS respnse SUNY at Buffal; CSE 489/589 Mdern Netwrking Cncepts; Fall 2010; Instructr: Hung Q. Ng 18