1 Email Introduction AfNOG CHIX 2011 Blantyre, Malawi By Evelyn NAMARA.

Slides:



Advertisements
Similar presentations
Basic Communication on the Internet:
Advertisements

SMTP – Simple Mail Transfer Protocol
CSCE 515: Computer Network Programming Chin-Tser Huang University of South Carolina.
CPSC 441: FTP & SMTP1 Application Layer: FTP & Instructor: Carey Williamson Office: ICT Class.
Electronic Mail and SMTP
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.
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.
Electronic Mail: SMTP, POP, and IMAP
Introduction to Internet Mail Noah Sematimba Based on Materials by Philip Hazel.
Electronic Mail Three major components: SMTP user agents mail servers
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)
SMTP, POP3, IMAP.
1 Application Layer Lecture 5 Imran Ahmed University of Management & Technology.
Outlook 2000 Summertime Technology 2002 Vicki Blackwell Tangipahoa Parish Schools.
Data Communications and Computer Networks Chapter 2 CS 3830 Lecture 9
Mail Services.
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.
Intro to Computer Networks Bob Bradley The University of Tennessee at Martin.
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.
SMTP PROTOCOL CONFIGURATION AND MANAGEMENT Chapter 8.
Fall 2005 By: H. Veisi Computer networks course Olum-fonoon Babol Chapter 7 The Application Layer.
Network Applications Outline Simple Mail Transfer Protocol
Electronic Mail Originally –Memo sent from one user to another Now –Memo sent to one or more mailboxes Mailbox –Destination point for messages.
IST346 – Servies Agenda  What is ?  Policies  The technical side of  Components  Protocols  architecture  Security.
A form of communication in which electronic messages are created and transferred between two or more devices connected to a network.
1 Applications Electronic Mail. 2 Electronic Mail Many user applications use client-server architecture. Electronic mail client accepts mail.
CSIE 1 Filtering mail Speaker: Chung yu Wu Adviser: Quincy Wu Date: 2005/12/07.
Sending and Receiving Mails
The Internet 8th Edition Tutorial 2 Basic Communication on the Internet: .
Introduction to Internet Mail Abridged & Updated by Hervey Allen Noah Sematimba Based on Materials by Philip Hazel.
What is and How Does it Work?  Electronic mail ( ) is the most popular use of the Internet. It is a fast and inexpensive way of sending messages.
File Transfer Protocol (FTP)
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.
1 and Exim Introduction AfNOG 2012 Serekunda, The Gambia Chimwemwe Fredrick.
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,
XP New Perspectives on The Internet, Sixth Edition— Comprehensive Tutorial 2 1 Evaluating an Program and a Web-Based Service Basic Communication.
SMTP Tapu Ahmed Jeremy Nunn. Basics Responsible for electronic mail delivery. Responsible for electronic mail delivery. Simple ASCII protocol that runs.
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
CITA 310 Section 6 Providing Services (Textbook Chapter 8)
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.
COMP 431 Internet Services & Protocols
1 Kyung Hee University Chapter 22 Simple Mail Transfer Protocol (SMTP)
@Yuan Xue A special acknowledge goes to J.F Kurose and K.W. Ross Some of the slides used in this lecture are adapted from their.
Application Layer instructors at St. Clair College in Windsor, Ontario for their slides. Special thanks to instructors at St. Clair College in Windsor,
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
Networking CS 3470, Section 1 Sarah Diesburg
Data Communications and Computer Networks Chapter 2 CS 3830 Lecture 9
Social Media And Global Computing Sending
William Stallings Data and Computer Communications
Unit – 4 Chap - 2 Mail Delivery System
Chapter 7 Network Applications
Chapter 2 Application Layer
 Zone in name space  DNS IN THE INTERNET  Generic domains :There are fourteen generic domains, each specifying an organization type.
Presentation transcript:

1 Introduction AfNOG CHIX 2011 Blantyre, Malawi By Evelyn NAMARA

2 Scope How Appears to Work How Really Works Mail User Agent (MUA)‏ Message Format Mail Delivery Agent (MDA)/ Mail Transfer Agent (MTA)‏ Network Cloud Queue MTA to MTA Transfer Firewalls, Spam and Virus Filters Delivery RFCs

3 How Appears to Work

4 How Really Works

5 Mail User Agent (MUA)‏ Application the originating sender uses to compose and read Pine, MH, Elm, mutt, mail, Eudora, Marcel, Mailstrom, Thunderbird, Pegasus, Express, Netscape, Outlook,... You can have multiple MUAs on one system - end user choice

6 Message Format Envelope  Routing information for the "postman" Message Header  Sender  Recipients (simple, lists, copies, blind copies)‏  Other fields of control (date, subject)‏ Message Body  Free text  Structured document (i.e.: MIME)‏

7 Message Format From: Philip Hazel To: Julius Caesar Cc: Mark Anthony Subject: How Internet mail works Julius, I'm going to be running a course on... Format was originally defined by RFC 822 in 1982 Now superseded by RFC 2822 Message consists of Header lines A blank line Body lines

8 Message Format Embedded MUA uses inter­process call to send to MTA Freestanding MUA uses SMTP to send mail Headers added by the MUA before sending From: Philip Hazel To: Julius Caesar cc: Mark Anthony Subject: How Internet mail works Julius, I'm going to be running a course on... Date: Fri, 10 May :29: (BST)‏ Message-ID: <Pine.SOL MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII

9 Mail Delivery Agent (MDA)/ Mail Transfer Agent (MTA)‏ MDA/MTA accepts the , then routes it to local mailboxes or forwards it if it isn't locally addressed An can encounter a network cloud within a large company or ISP, or the largest network cloud in existence: the Internet.

10 Mail Delivery Agent (MDA)/ Mail Transfer Agent (MTA)‏ Headers added by MTAs From: Philip Hazel To: Julius Caesar cc: Mark Anthony... Received: from taurus.cus.cam.ac.uk ([ ] ident=exim)‏ by mauve.csi.cam.ac.uk with esmtp (Exim 4.00) id 101qxX-00011X-00; Fri, 10 May :50: Received: from ph10 (helo=localhost)‏ by taurus.cus.cam.ac.uk with local-smtp (Exim 4.10) id 101qin-0005PB-00; Fri, 10 May :50:

11 A message in transit A message is transmitted with an envelope: MAIL FROM: RCPT TO: The envelope is separate from the RFC 2822 message Envelope (RFC 2821) fields need not be the same as the header (RFC 2822) fields MTAs are (mainly) concerned with envelopes Just like the Post Office... Error (“bounce”) messages have null senders MAIL FROM:<>

12 An SMTP session telnet relay.ancient-rome.net relay.ancient-rome.net ESMTP Exim... EHLO taurus.cus.cam.ac.uk 250-relay.ancient-rome.net SIZE PIPELINING 250 HELP MAIL FROM: 250 OK RCPT TO: 250 Accepted DATA 354 Enter message, ending with “.” Received: from... (continued >>>>)‏ From:... To:... etc OK id=10sPdr-00034H-00 quit 221 relay.ancient-rome.net closing conn... SMTP return codes 2xx OK 3xx send more data 4xx temporary failure 5xx permanent failure

13 Network Cloud large company network or ISP, or the largest network cloud in existence: the Internet. may encompass a multitude of mail servers, DNS servers, routers, lions, tigers, bears (wolves!) and other devices and services devices may be protected by firewalls, spam filters and malware detection software that may bounce or even delete an

14 Queue The enters an queue with other outgoing messages. If there is a high volume of mail in the queue—either because there are many messages or the messages are unusually large, or both— the message will be delayed in the queue until the MTA processes the messages ahead of it.

15 MTA to MTA Transfer clears the queue, enters the Internet network cloud, where it is routed along a host-to-host chain of servers The sending MTA handles all aspects of mail delivery until the message has been either accepted or rejected by the receiving MTA Each MTA needs to "stop and ask directions" from the DNS in order to identify the next MTA in the delivery chain Exact route depends partly on server availability and mostly on which MTA can be found to accept for the domain specified in the address ABUSE: Some spammers specify any part of the path, deliberately routing their message through a series of relay servers in an attempt to obscure the true origin of the message.

16 DNS resolution and transfer process To find the recipient's IP address and mailbox, the MTA must drill down through the DNS system, which consists of a set of servers distributed across the Internet beginning with the root nameservers  root servers refer requests for a given domain to the root nameservers that handle requests for that tld MTA can bypass this step because it has already knows which domain nameservers handle requests for these.tlds e.g. telecom.ma  asks the appropriate DNS server which Mail Exchange (MX) servers have knowledge of the subdomain or local host in the address  DNS server responds with an MX record: a prioritized list of MX servers for this domain  To the DNS server, the server that accepts messages is an MX server. When is transferring messages, it is called an MTA.  MTA contacts the MX servers on the MX record in order of priority until it finds the designated host for that address domain  sending MTA asks if the host accepts messages for the recipient's username at that domain (i.e., and transfers the message

17 Firewalls, Spam and Virus Filters An encountering a firewall may be tested by spam and virus filters before it is allowed to pass inside the firewall filters test to see if the message qualifies as spam or malware If the message contains malware, the file is usually quarantined and the sender is notified If the message is identified as spam, it will probably be deleted without notifying the sender.

18 Delivery If the message makes it past the filters:  The MTA calls a local MDA to deliver the mail to the correct mailbox, where it will sit until it is retrieved by the recipient's MUA

19 RFCs Documents that define standards are called "Request For Comments (RFCs)", and are available on the Internet through the Internet Engineering Task Force (IETF) website  There are many RFCs and they form a somewhat complex, interlocking set of standards, great information for anyone interested in gaining a deeper understanding of . Most pertinent RFCs:  RFC 822, 2822: Standard for the Format of ARPA Internet Text Messages  RFC 2821: Simple Mail Transfer Protocol  RFC 1122, 1123, 1651, 1653, 1830, MIME RFCs...

20 Troubleshooting Issues transient failures  If a transient error occurs, the MTA will hang onto the message, periodically retrying the delivery until it either succeeds or fails, or until the MTA decides that the transient issue is really a permanent condition. permanent failures  If the MTA cannot deliver the message (it has received a fatal error message or failed to complete the transfer after repeated attempts), it bounces the message back to the sender. If the sender is a mailing list, the bounce may be handled by automated bounce-handling software.