learn more...The process of sending and receiving e-mail involves two types of systems: the mail client (that’s you) and the mail server (similar to the post office).To understand e-mail headers, one must understand that e-mail doesn’t simply go from points A to B and suddenly “You have mail!” In many cases, an e-mail message routes through four computers before it reaches its destination.Technically speaking, the total number of systems involved in the full process of e-mail delivery is about twice that, but it’s transparent and performed efficiently. For examples in our e-mail demonstrations, we will use an e-mail message that I want to send to my readers.The e-mail addresses we will use are: me@sendingemail.com you@receivingemail.com My mail server will be mail.sendingemail.com, the receiver will be mail.receivingemail.com.The sending workstation will be called Sender, and the receiving workstation will be called Receiver. Now let’s look at the internal operations of an area most of you should be familiar with: the client user experience of opening an e-mail client to enter the To, Subject, and Body fields in the new e-mail message. There is an optional CC field, enabling you to add e-mail addresses to send this message to (a perk you don’t get at the standard post office with a single stamp and envelope).Then I click Send and off my message goes to be received by you@receivingemail.com. It appears that this comes off without a hitch, but the internal workings are what keep the message going.The mail protocol has headers that mark the emails with information on where it originated, its destination address, and the route it took to get there.Yes, that’s right, e-mail tells a story of its delivery, similar to a tracking number when you ship something via a carrier like Federal Express.The development of the e-mail header’s progress on its way to the destination address are typically marked by three different systems that are handling the mail delivery. I sent mail to you@receivingemail.com and the minute I clicked Send, the message was handed off to my mail server (mail.sendingemail.com). At that point, my mail client sent the mail server the following e-mail headers to process: From:me@sendingemail.com (Lance James) To: you@receivinge-mail.com Date: Tue, April 04, 2005 23:01:12 PST X-Mailer: Microsoft Outlook, Build 10.0.2616 Subject: This is your subject field As you can see, the fields I referred to are actually headers. E-mail is technically constructed of headers with the field: value set. A blank line separates sections within the headers, so the actual body has a blank line with a content type before it, usually plaintext, which is indicated by the following: Content-Type: text/plain; charset=ISO-8859-1: format=flowed This text is usually found below the headers we displayed previously (different mailers have different header ordering) and indicates the type of content found within the e-mail.The content-type field is determined by the mail client since it knows what it is sending. When we send plaintext, the content-type field is optional, but the majority of mail clients use it to stay within the specifications found in requests for comment (RFCs; see www.imc.org/rfcs.html). As we continue, our mail client has sent the e-mail to our mail server (mail.sendingemail.com).The mail server will read the header information that our mail client sent it, and will add some additional header information before sending it off to the receiver’s mail server (mail.receivingemail.com). Here is what the headers look like: Received: from sender (xx.7.239.24) by mail.sendingemail.com (Postfix) id 125A56; Tue, April 04, 2005 23:01:16 -0800 (PST) From: me@sendingemail.com (Lance James) To: you@receivingemail.com Date: Tue, April 04, 2005 23:01:12 PST Message-ID: ssc041837262361-293482299@mail.sendingemail.com X-Mailer: Microsoft Outlook, Build 10.0.2616 Subject: This is your subject field There are a few extra additions marked on there, mainly stating from where the message was received (the mail client, when it identified itself to the mail server) and the time it was received, along with a message ID.The message ID has no human-based significance, but from an administrative standpoint, a mail administrator can use it to look up e-mails.The e-mail message ID is similar to a FedEx or UPS Tracking number, and although it’s a completely random number, can be very useful. Let’s view the final header additions marked on the receiving mail server endpoint: Received: from mail.sendingemail.com (mail.sendinge-mail.com [xx.7.239.25]) by mail.receivinge-mail.com (Postfix) with ESMTP id T12FG932 for <you@receivingemail.com>; Tue, 04 April 2005 23:01:22 -0800 (PST) Received: from sender (xx.7.239.24) by mail.sendingemail.com (Postfix) id 125A56; Tue, April 04, 2005 23:01:16 -0800 (PST) From: me@sendingemail.com (Lance James) To: you@receivingemail.com Date: Tue, April 04, 2005 23:01:12 PST Message-ID: ssc041837262361-293482299@mail.sendingemail.com X-Mailer: Microsoft Outlook, Build 10.0.2616 Subject: This is your subject field When the receiving client user sits down at the receiver workstation, he will be able to view these e-mail headers within the e-mail (depending on the e-mail client software, he might have to select the appropriate view headers field). When Received from: mail.sendingemail.com (mail.sendingemail.com [xx.7.239.25]) by mail.receivingemail.com (Postfix) with ESMTP id T12FG932 for you@receivingemail.com; Tue, 04 April 2005 23:01:22 -0800 (PST) This first header tells us that this message was received by a server dubbed mail.sendingemail.com.The parentheses show the verification of identity, stating that a DNS reverse lookup revealed that the IP matches this identification and that xx.7.239.25 is the IP address the message came in from.The mail server that received the e-mail is mail.receivingemail.com, which is running Postfix ESMTP with an arbitrary id of T12FG932.The ID is arbitrary and constructed by the receiving mail server for administrative purposes.The e-mail address this message is intended for is you@receivingemail.com, with a receive date of Tuesday, April 4,2005, at 11:01 P.M. and 22 seconds, Pacific Standard Time. Received: from sender (xx.7.239.24) by mail.sendingemail.com (Postfix) id 125A56; Tue, April 04, 2005 23:01:16 -0800 (PST) documents the mail transfer between the Sender workstation and the sender’s mail server. It is identified by the IP address in parentheses, and we know that mail.sendingemail.com is a Postfix server and has labeled this message with an arbitrary message ID.The date of mail transfer was Tuesday, April 4, 2005, at 11:01 P.M. and 16 seconds, Pacific Standard Time. The headers derived in this e-mail are legitimate headers. Anytime a system assists in routing an e-mail, an extra Received header will be added on. Notice that the order of Received headers is destination endpoint first, and the bottom header is the starting point. |
||||||
Disclaimer
1) E-articles is not responsible for the information contained by this article as well for any and all copyright infringements by authors and writers. E-articles is a free information resource. If you suspect this article for any copyright infringement, please read the terms of service and contact us to investigate the problem.
2) E-articles is not responsible for inaccuracies, falsehoods, or any other types of misinformation this article may contain and will not be liable for any loss or damage suffered by a user through the user's reliance on the information gained here. link to this article |