CIT 470: Advanced Network and System AdministrationSlide #1 CIT 470: Advanced Network and System Administration E-mail.

Slides:



Advertisements
Similar presentations
1 Electronic Mail u Three major components: u user agents u mail servers u simple mail transfer protocol: SMTP u User Agent u a.k.a. “mail reader” u composing,
Advertisements

SMTP – Simple Mail Transfer Protocol
Application: Electronic Mail Linda Wu (CMPT )
CSCE 515: Computer Network Programming Chin-Tser Huang University of South Carolina.
TCP/IP Protocol Suite 1 Chapter 20 Upon completion you will be able to: Electronic Mail: SMTP, POP, and IMAP Understand four configurations of architecture.
CPSC 441: FTP & SMTP1 Application Layer: FTP & Instructor: Carey Williamson Office: ICT Class.
Electronic Mail and SMTP
COS 420 DAY 25. Agenda Assignment 5 posted Chap Due May 4 Final exam will be take home and handed out May 4 and Due May 10 Today we will discuss.
Chapter 30 Electronic Mail Representation & Transfer
Esimerkki: Sähköposti. Lappeenranta University of Technology / JP, PH, AH Electronic Mail Three major components: user agents mail servers simple mail.
Simple Mail Transfer Protocol
2440: 141 Web Site Administration Services Instructor: Enoch E. Damson.
Chapter 7: Internet-Based Applications Business Data Communications, 6e.
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.
-I CS-3505 Wb_ -I.ppt. 4 The most useful feature of the internet 4 Lots of different programs, but most of them can talk to each.
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.
2: Application Layer1 Chapter 2 Application Layer These slides derived from Computer Networking: A Top Down Approach, 6 th edition. Jim Kurose, Keith Ross.
Electronic Mail (SMTP, POP, IMAP, MIME)
1 Introduction AfNOG CHIX 2011 Blantyre, Malawi By Evelyn NAMARA.
Simple Mail Transfer Protocol
Introduction to Unix SMTP & Sendmail.
SMTP, POP3, IMAP.
1 Application Layer Lecture 5 Imran Ahmed University of Management & Technology.
Data Communications and Computer Networks Chapter 2 CS 3830 Lecture 9
CSE401N: Computer Networks Lecture-5 Electronic Mail S. M. Hasibul Haque Lecturer Dept. of CSE, BUET.
IT 424 Networks2 IT 424 Networks2 Ack.: Slides are adapted from the slides of the book: “Computer Networking” – J. Kurose, K. Ross Chapter 2: Application.
PRINCIPLES – DNS – ARCHITECTURES – SPAM
Review: –How do we address “a network end-point”? –What services are provided by the Internet? –What is the network logical topology observed by a network.
Application Layer Protocols Simple Mail Transfer Protocol.
Chapter 7: Internet-Based Applications Business Data Communications, 6e.
Computer Networking From LANs to WANs: Hardware, Software, and Security Chapter 12 Electronic Mail.
CT 320: Network and System Administration Fall 2014 * Dr. Indrajit Ray Department of Computer.
IST346 – Servies Agenda  What is ?  Policies  The technical side of  Components  Protocols  architecture  Security.
1 Applications Electronic Mail. 2 Electronic Mail Many user applications use client-server architecture. Electronic mail client accepts mail.
Computer Networks26-1 Chapter 26. Remote Logging, Electronic Mail and File Transfer.
Sending and Receiving Mails
Simple Mail Transfer Protocol (SMTP)
1 Using Messages sent from machine to machine and stored for later reading. You will use a client to read –Type mail or pine in UNIX to read.
Introduction to Internet Mail Abridged & Updated by Hervey Allen Noah Sematimba Based on Materials by Philip Hazel.
Electronic Mail. Familiar to most of us 4 What are the functions we expect? –Outgoing mail Compose send –compress –encrypt –Incoming Mail read forward.
SMTP – Simple Mail Transfer Protocol
SMTP( 简单邮件传输协议 ) SIMPLE MAIL TRANSFER PROTOCOL RFC 2812.
File Transfer Protocol (FTP)
1 Electronic Messaging Module - Electronic Messaging ♦ Overview Electronic messaging helps you exchange messages with other computer users anywhere in.
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.
Chapter 16: Distributed Applications Business Data Communications, 4e.
CS 3830 Day 9 Introduction 1-1. Announcements r Quiz #2 this Friday r Demo prog1 and prog2 together starting this Wednesday 2: Application Layer 2.
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.
SMTP - Simple Mail Transfer Protocol RFC 821
Chapter 16: Distributed Applications Business Data Communications, 4e.
CS440 Computer Networks 1 Neil Tang 12/01/2008.
Slides based on Carey Williamson’s: FTP & SMTP1 File Transfer Protocol (FTP) r FTP client contacts FTP server at port 21, specifying TCP as transport protocol.
Linux Operations and Administration Chapter Twelve Configuring a Mail Server.
CIT 140: Introduction to ITSlide #1 CSC 140: Introduction to IT Electronic Mail.
World Wide Web r Most Web pages consist of: m base HTML page, and m several referenced objects addressed by a URL r URL has two components: host name and.
COMP 431 Internet Services & Protocols
1 Kyung Hee University Chapter 22 Simple Mail Transfer Protocol (SMTP)
26.1 Electronic Mail Sending/Receiving Mail Addresses User Agent MIME Mail Transfer Agent Mail Access Protocols.
Spring 2006 CPE : Application Layer_ 1 Special Topics in Computer Engineering Application layer: Some of these Slides are Based on Slides.
درس مهندسی اینترنت – مهدی عمادی مهندسی اینترنت برنامه‌نویسی در اینترنت 1 SMTP, FTP.
concepts & protocols
SMTP - Simple Mail Transfer Protocol POP - Post Office Protocol
Networking Applications
Data Communications and Computer Networks Chapter 2 CS 3830 Lecture 9
Unix System Administration
CIT 383: Administrative Scripting
SMTP, POP3, IMAP.
Chapter 2 Application Layer
Presentation transcript:

CIT 470: Advanced Network and System AdministrationSlide #1 CIT 470: Advanced Network and System Administration

CIT 470: Advanced Network and System AdministrationSlide #2 Topics 1.Mail Policies 2.Anatomy of a Mail Message 3.Components of an System 4.SMTP 5.IMAP & POP 6. Addresses 7.Aliases and Lists

CIT 470: Advanced Network and System AdministrationSlide #3 Mail Policies 1.Privacy Policy 2.Namespaces 3.Reliability 4.Scaling 5.Security

CIT 470: Advanced Network and System AdministrationSlide #4 Privacy Policy Personal Use Policy –Personal v. commercial use. –When may employee be read? By whom Under what circumstances –Automatic monitoring Retention Policy –Legal requirements.

CIT 470: Advanced Network and System AdministrationSlide #5 Namespaces Avoid first.last format addresses. –There will be duplicates: John.Smith. –Use middle initials? –Append numbers? Create unique organization-wide namespace. –Use directory to lookup addresses.

CIT 470: Advanced Network and System AdministrationSlide #6 Reliability Customers expect same reliability as power. –Failures generate many support calls. Reliability measures –Redundant servers. –Backup MX hosts. –RAID arrays. –Multiple NICs, power supplies, processors, etc.

CIT 470: Advanced Network and System AdministrationSlide #7 Scalability Types of scability –To address growth in avg messages/day. –To address spikes in mail traffic. Number of messages grows –faster than linearly with number of users. –with time, even if user base is constant. –due to spam too. Size of messages grows –due to technology: more + larger attachments.

CIT 470: Advanced Network and System AdministrationSlide #8 Security Mail server as a target –Complexity of mail leads to vulnerabilities. –Mail is an asset attackers want to take. as a conduit –Brings viruses and trojans into organization. –Leaks confidential information outward. –ex (2005): Apple sues bloggers over releasing data about upcoming products. relaying –Open relays used by spammers and scammers. Intercepting

CIT 470: Advanced Network and System AdministrationSlide #9 Anatomy of a Mail Message Received: from mailfe2.nku.edu ([ ]) by brahms.utoledo.edu (8.11.9) with ESMTP id k3CJCM for ; Wed, 12 Apr :12: (EDT) Received: from mailfac1.nku.edu ([ ]) by mailfe2.nku.edu with MS SMTPSVC( ); Wed, 12 Apr :15: Subject: Test Date: Wed, 12 Apr :15: Message-ID: From: “You" To: This is a test message. Header Body Blank

CIT 470: Advanced Network and System AdministrationSlide #10 Header Header Format –Header-name: Header-data Common headers –From: –To:, CC:, Reply-To: –Date: –Message-ID: –Subject: Multiple headers –Received: for each mail server handling message.

CIT 470: Advanced Network and System AdministrationSlide #11 Body Separated from header by blank line. Contains 7-bit ASCII text by default. Any non-ASCII text must be encoded: –uuencode –MIME

CIT 470: Advanced Network and System AdministrationSlide #12 MIME Multipurpose Internet Mail Extensions –Text in non-ASCII character sets. –Non-text attachments. –Multi-part message bodies. Identified by Content-Type: header. –text/plain: regular –text/html: HTML markup –multipart/mixed: text/plain + attachments –image/jpeg: JPEG image attachment –Many other formats

CIT 470: Advanced Network and System AdministrationSlide #13 Base64 Binary to text encoding scheme –Each character represents 6 bits. –Uses 64 characters from 7-bit ASCII: A-Za-z0-9+= Encodes in 3-byte chunks 3 bytes = 24 bits = 4 base-64 characters M a n | | | T W F u

CIT 470: Advanced Network and System AdministrationSlide #14 Multipart MIME Message Example MIME-version: 1.0 Content-type: multipart/mixed; boundary="frontier“ This is a multi-part message in MIME format. --frontier Content-type: text/plain This is the body of the message. --frontier Content-type: application/octet-stream Content-transfer-encoding: base64 PGh0bWw+CiAgPGhlYWQ+CiAgPC9oZWFkPgogIDxib2R5PgogICA gPHA+VGhpcyBpcyB0aGUg Ym9keSBvZiB0aGUgbWVzc2FnZS48L3A+CiAgPC9ib2R5Pgo8L2h0 bWw+Cg== --frontier--

CIT 470: Advanced Network and System AdministrationSlide #15 Envelope Headers aren’t the full story –Recipient isn’t necessarily on To: or CC: –Sender isn’t necessarily given on From: header. Envelope specifies sender/receiver –Specified via SMTP commands. –Envelope recipient used for BCC: –Envelope recipient used by mail lists. –Envelope facilities used by spammers too.

CIT 470: Advanced Network and System AdministrationSlide #16 Components of a Mail System TA Sendmail TA Sendmail UA Eudora UA Outlook UA mutt DA mail.local Msg Store AA imapd UA mutt

CIT 470: Advanced Network and System AdministrationSlide #17 MTAs Mail Transport Agents –Receive mail from MUAs. –Route mail across internet. MTA Protocol: SMTP MTA Examples –sendmail –postfix –qmail

CIT 470: Advanced Network and System AdministrationSlide #18 SMTP 220 brahms.nku.edu ESMTP Sendmail ; Wed, 12 Apr 2006 helo mydomain.com 250 brahms.nku.edu Hello mydomain.com, pleased to meet you mail from: Sender ok rcpt to: Recipient ok data 354 Enter mail, end with "." on a line by itself Subject: Test From: To: This is a test k3GIcr Message accepted for delivery quit brahms.nku.edu closing connection

CIT 470: Advanced Network and System AdministrationSlide #19 SMTP Commands HELO hostname EHLO hostname MAIL FROM: addr RCPT TO: addr VRFY addr EXPN addr DATA QUIT RSET HELP

CIT 470: Advanced Network and System AdministrationSlide #20 Message Store Communication –Receives data from MDA (mail.local, procmail) –Provides data to MAA (IMAP, POP, NFS, web) Types of stores –Files (all messages for a user in one file) –Directories (directory per user) –Databases

CIT 470: Advanced Network and System AdministrationSlide #21 Mail Access Agents Older systems directly accessed mail files. Modern systems use network –POP: Post Office Protocol Simple download protocol for offline reading. –IMAP: Internet Mail Access Protocol Online and offline modes of reading. Partial message fetch (headers, attachments, etc.) Message state stored on server, not client. Multiple mailbox and multiple client support.

CIT 470: Advanced Network and System AdministrationSlide #22 IMAP IMAP Servers –Cyrus –UW IMAP Features –Message store types –Authentication –Security (SSL)

CIT 470: Advanced Network and System AdministrationSlide #23 Mail User Agents Text clients –mail –mutt –pine GUI clients –Eudora –Mozilla Thunderbird –MS Outlook Web clients –Run on remote web server.

CIT 470: Advanced Network and System AdministrationSlide #24 Mail Addressing Relative Addresses –mcvax!uunet!ucbvax!hao!boulder!air!evi Absolute Addresses MX Records –Mail clients use MX records, not A records. –Lowest preference # = highest priority. –Permits failover if server down.

CIT 470: Advanced Network and System AdministrationSlide #25 Aliases Allow mail to be rerouted. –Sysadmin: files (/etc/mail/aliases), local db, NIS, LDAP –Personal: ~/.forward Alias destinations –Local: address –Remote: –File: :include:pathname –Program: |pathname Required aliases –postmaster, abuse, root

CIT 470: Advanced Network and System AdministrationSlide #26 Mailing List Aliases mylist: :include:/etc/mail/include/mylist owner-mylist: mylist-request mylist-request: me owner-owner: postmaster Purpose owner : Messages appear to be from owner. Receives bounces, list management mail. request : Indirection ensures owner’s real address doesn’t appear on Return-Path. owner-owner : Receives errors from messages destined for owner-* aliases.

CIT 470: Advanced Network and System AdministrationSlide #27 Mailing List Software Automate list management. – interface. –Web interface. Packages –Mailman –Majordomo –Listserv List Archiving –Mailman –MHonArc

CIT 470: Advanced Network and System AdministrationSlide #28 References 1.Bryan Cosales with Eric Allman, Sendmail, 3 rd edition, O’Reilly, David H. Crocker, RFC 822: STANDARD FOR THE FORMAT OF ARPA INTERNET TEXT MESSAGES, Aeleen Frisch, Essential System Administration, 3 rd edition, O’Reilly, MIME, 5.Evi Nemeth et al, UNIX System Administration Handbook, 3 rd edition, Prentice Hall, Thomas A. Limoncelli and Christine Hogan, The Practice of System and Network Administration, Addison-Wesley, RedHat, Red Hat Enterprise Linux 4 System Administration Guide, Manual/sysadmin-guide/, Manual/sysadmin-guide/ 8.Alan Schwartz, Managing Mailing Lists, O’Reilly, 1998.