1 / 24

LIS508 lecture 12: email

LIS508 lecture 12: email. Thomas Krichel 2002-12-08. Structure. Email Structure of mail Transport Email lists http (only the verry basics). history. 1982: ARPANET issue email protocols RFC821 by a hippy RFC822 revised by a grad student

Download Presentation

LIS508 lecture 12: email

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.


Presentation Transcript

  1. LIS508 lecture 12:email Thomas Krichel 2002-12-08

  2. Structure • Email • Structure of mail • Transport • Email lists • http (only the verry basics)

  3. history • 1982: ARPANET issue email protocols • RFC821 by a hippy • RFC822 revised by a grad student • 1984: CCITT (Comité Consultatif International Télégraphique et Téléphonique, now the International Telecommunication Union) drafted X.400, backed by all major industry players. This standard is almost totally uninteroperable with the ARPANET standards.

  4. email • Nowadays emails runs of top of DNS, all mails are sent to user@hostname where hostname is a host name and user name on that host. • To which machine mail is sent depends on the MX record for the name you are sending the mail to. See the mx record in the DNS example.

  5. RFC821 • Defines the original SMTP, the simple mail transfer protocol. • By Jonathan B. Postel, who was the RFC editor. • He worked at the IANA, the Internet Assigned Number Autority.

  6. smtp • TCP connection to port 25 by a client, sending machine. • It waits for a response from the receiving machine acting as a server to say • Who it is • Whether it ready to receive mail • Senders says who the mail is from and where it goes to. • Receiver checks this and give go-ahead

  7. Typical dialog R: 220 liu.edu SMTP service ready S: HELO openlib.org R: 250 liu.edu says hello to abc.com S: MAIL from <krichel@openlib.org> R: 250 sender ok S: RCPT TO michael.koenig@liu.edu R: 250 recipient ok S: DATA R: 354 send mail, end with “.” on a line by itself S: From … …. . R: 250 message received S: Quit

  8. RFC 822 • Is the one document that originally define email. It is the most famous RFC known to man. • Specification is limited to US ASCII, 7 bit • A mail message is defines as a text file. It has • Header fields (mandatory) • Body (optional)

  9. Email headers • Email headers are composed of logical lines. • These a physical lines (terminated by carriage-return/line-feed) not starting with a blank. • They are of the form header-name:header-value eg. To: Thomas Krichel <krichel@openlib.org>

  10. Header Fields • Return-Path: Added by the final delivery host to give a back path to the originator. • Received: Added each time another machine receives the mail. Note that the mail may be relayed by a number of machines. • From: Person who wanted to send the mail. • Reply-to: Where to send a reply to

  11. Email headers II • To: Primary recipient • CC: Secondary (informational) recipient • BCC: Additional (hidden) recipient • Message-Id: An identifier for the message • Subject: has the subject • Sender: whom to report problems to

  12. example Return-path: <adickey@liu.edu> Envelope-to: krichel@openlib.org Received: from phoenix.liunet.edu ([] helo=phoenix.liu.edu) by lists.repec.org with esmtp (Exim 3.36 #1 (Debian)) id 18GQaW-0005ad-00 for <krichel@openlib.org>; Mon, 25 Nov 2002 15:16:16 -0600 Received: from webmail (webmail.liunet.edu []) by phoenix.liu.edu (Switch-2.0.3/Switch-2.0.3) with ESMTP id gAPLIDU13872 for <krichel@openlib.org>; Mon, 25 Nov 2002 16:18:13 -0500 X-WebMail-UserID: adickey@liu.edu Date: Mon, 25 Nov 2002 16:29:02 -0500 Sender: Alison Dickey <adickey@liu.edu> From: Alison Dickey <adickey@liu.edu> To: Thomas Krichel <krichel@openlib.org> X-EXP32-SerialNo: 00002866 Subject: RE: course Message-ID: <3E120D84@webmail> Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7bit X-Mailer: WebMail (Hydra) SMTP v3.61 Status: RO Content-Length: 1430 Lines: 39

  13. Multipurpose Internet Mail Extensions MIME • MIME allows to attach arbitrary files to emails. It is an Internet standard defined in RFC 2045 to 2049 • MIME provides a way for non-text information to be encoded as text. This encoding is known as base64 • The MIME format is also very similar to the format of information that is exchanged between a Web browser and the Web server it connects to. This related format is specified as part of the Hypertext Transfer Protocol (HTTP).

  14. Basic idea • Continue to use RFC822 but give the body of the mail a richer structure • Five new headers • MIME-version: shows the version • Content-description: human readable string • Content-id: Unique identifier • Content-transfer-encoding: how the body is wrapped for transmission • Content-type: nature of the message

  15. Content-type • The value of this header is known as the MIME type of the form type/subtype. Both type and subtype have to be specified. • application/octet-stream is the catchall. • The Internet Assigned Number Authority act as a registrar for these types. • They provide some controlled vocabulary for file types. It is not perfect.

  16. Email lists • An email list is a list of email addresses managed by a computer program.. • A list has an email address. • When a person writes to the email address of the list, the message may be distributed to all addresses on the list.

  17. Concepts involved with lists • The list owner is a person or group of person who has the power to add and remove addresses from the list. The owner may also have the following duties/powers • define charter and policy • answer technical questions • A list is closed if a potential subscriber has to ask the list owner to be subscribed. • A list is open if anyone can subscribe to a list.

  18. More concepts involved with lists • A list is moderated if the moderator(s) are the only people allowed to send messages to the list. Messages sent to the list are forwarded to the moderator(s) by the list processing software. • The owner of the list is not necessarily the moderator. • Usually, the owner has moderator powers too.

  19. Hypertext transfer protocol http • An application-level protocol for distributed, collaborative, hypermedia information systems. • HTTP is also used as a generic protocol for communication between user agents and proxies/gateways to other Internet systems, including those supported by the SMTP, NNTP, FTP, Gopher, and WAIS protocols. In this way, HTTP allows basic hypermedia access to resources available from diverse applications. • history • 1990: version 0.9 allows for transfer of raw data. • 1996: rfc1945 defines version 1.0. by adding attribute:value headers. • 1999: rfc 2616 adds support for hierarchical proxies, caching, virtual hosts and some support for persistent connections, and is more stringent.

  20. request/response • Server sends response • required items • Status line • Protocol version • Success or error code • optional items • Server information • body • Client sends request • required items • method • request URI • protocol version • optional items • request modifiers • client information • body

  21. General format of messages • Start line • Headers attribute:value form • An empty line • Body • Just like in an email!

  22. Start line of the request • Aka the resquest line, of the form methodURIprotocol-version • method takes the values ``OPTIONS'', ``GET'', ``HEAD'', ``POST'', ``PUT'', ``DELETE'', ``TRACE'', ``CONNECT''. • URI is a URL generally, though it can take more general form • protocol-version is the version of the protocol • Example: GET http://openlib.org/home/krichel HTTP/1.1

  23. Start line of the response • Aka the status line, of the form • HTTP-VersionStatus-CodeReason-Phrase • Only the code is required. Famous codes are • 404 Not Found • 403 Forbidden • 200 OK • Example HTTP/1.1 200 ok

  24. http://openlib.org/home/krichel Thank you for your attention!

More Related