Skip to main content

How Does An Email Server Work?

How does an email go from Sender to Recipient?


As an invention, email probably ranks close to the development of alphabets. We may IM and tweet to our heart’s content but it would be wrong to say that these shortcuts have been sired by the humble email to a certain extent. It has revolutionized communications though it may also have sounded the death knell for the art of letter writing. But that’s technology.
Email is serious but it’s several simple technologies at work, something we take for granted when we click compose and send. Behind each email is a powerful engine called the email server which pushes the emails through the internet. Many people use them, but how does an email server work?
To drive a car we need not have the ability to tell a carburetor from a tailpipe, but when it breaks down, that little knowledge helps. Email is less likely to crash but it definitely helps to have a broad picture of how Jim’s mail reaches Jane half across the globe in a blink of an eye.

Each email message is nothing but a text file plus the attachments. Just like all data through the internet, an email is also broken into smaller packets. When the sender clicks the send button, all the packets are uploaded to a central computer (the email server) that hosts the email service.
The email service then relays these packets through the internet to the server which holds the email service of the recipient. The mail server of the recipient looks for his email address, locates it and places the email within the inbox. The email client reassembles the packets into a complete mail. The recipient logs into his account and downloads the email.

Step by Step – How the Little Parts Come Together

We use an online email service like Gmail, Yahoo Mail or AOL to compose an email, add attachments and other data files. Also, we use email client software like Thunderbird, Outlook Express, Outlook or Mac OS X’s Mail.


  • When we send an email, our computer connects to our email service’s mail server. A server is a centralized computer which manages a specific type of service. An email server for instance, handles emails. The email server responsible for sending emails is called the SMTP (Simple Mail Transfer Protocol) server. One SMTP server can pass on the mail to another SMTP server and relay it to the destination through several hops.
  • Every email has the sender’s address (e.g. sender@sendermail.com) and the recipient’s in the To field (e.g. recipient@recipientmail.com). When an email is sent, the email client connects to the SMTP server of the sender’s email service (e.g. mailserver.sendermail.com). The client transmits the address of the sender, the address of the recipient and the content of the message.
  • how does an email server work
  • The SMTP server goes to work at locating the whereabouts of the recipient. Using the recipient’s mail ID (i.e. recipient@recipientmail.com) it locates the domain name – e.g.recipientmail.com.
  • Note:  If the recipient’s mail ID had the same domain name as the sender, then the process would be simpler. The SMTP server would have transferred the mail to its local outgoing mail server (POP3 or IMAP).
  • Each domain name represents a unique Web address, called an Internet protocol (IP) address. Think of it as postal addresses of the internet. The link between domain names to their IP addresses is stored in the Domain Name Registry. The SMTP server then contacts the server where the registry is kept (The DNS Server). The DNS server sends back the address to the SMTP server.
  • The SMTP server then proceeds to hand over the email to the SMTP server of the recipient’s email service (let’s call it mailserver.recipientmail.com). This SMTP server checks and confirms that the mail addressed to recipient@recipientmail.com belongs to it and hands it over to its counterpart – the POP3 server (or the IMAP server).
  • Post Office Protocol (POP3) servers are the servers that do the job of receiving mails. The number “˜3′ is the version number of the protocol in use. POP3 servers have mail accounts (our email IDs). Each mail account is mapped to a username-password combination. Once the message is handed over to the POP3 server, it is kept and stored in the mail account till the recipient logs in and checks the mail.
  • An email client connects to the POP3 server and tells it to allow download of the email. Once downloaded to the local machine, POP3 mailboxes do not retain a copy of the email. Thus, you cannot check your emails from another PC as it has already been downloaded. To nail this difficulty, IMAP was introduced. IMAP4 (Internet Message Access Protocol version 4) simply retains a copy of the emails on the server. This allows you to access your e-mail from any location with an internet connection.

Simple notes of difference between POP3 and IMAP4

how does an email server work
The obvious differences between the two protocols can be felt. POP3 mails are not limited by mail sizes as they get stored locally on your computer. Also because of less server storage space they are cheaper to support. But they make it difficult to export your emails if you decide to switch email programs or even operating systems.
With IMAP you can just download them again. With IMAP, sent mail and drafts are also uploaded to the server. The one apparent disadvantage of IMAP is its slower speeds because of server based functions.
POP3 is common but IMAP4 is newer and more advantageous for some of these reasons.
I hope next time you sit down to email; you just might appreciate the synergy of technology that makes it all possible. Right now, let me get back to my inbox and check what it has in store for me.

Comments

Popular posts from this blog

How to find and remove duplicate files from PC uplicate files can cause all kinds of problems on your computer, taking up precious storage room, confusing your photo or media manager apps, and generally getting in the way of searches and other operations when you'd rather they didn't. You don't have to accept duplicate files as an inevitability of running a PC, though: Here's how to get rid of them. Duplicate files can crop up for all kinds of reasons: Maybe you downloaded a file, forgot it was there, and then downloaded it again; maybe you copied a folder of images and then never got around to getting rid of the originals. Whatever the reason, they clog up your disk space and shouldn't be left to gather dust. For the purposes of this guide we're going to use DupeGuru-it's Lifehacker's pick as the best duplicate file finder for Windows, and it's available for Mac and Linux as well. If you're not taken with DupeGuru, then some of the best al...

Gmail Automation

Gmail Automation: 5 Useful Google Scripts to Automate Your Gmail 1. Auto delete emails after X number of days Very often, after we read the email, we will just keep it in our inbox, regardless whether it is useful or not. While Google gives you tons of space to store your emails, you might still want to clean up your inbox and get rid of those useless emails. The following script can check emails with the “Delete Me” label and delete them after “x” number of days. 1. Go to  Google Scripts  and create a blank project (make sure you are logged into your Google account). Paste the following script and save it. function auto_delete_mails ( ) { var label = GmailApp.getUserLabelByName ( "Delete Me" ) ; if ( label == null ) { GmailApp.createLabel ( 'Delete Me' ) ; } else { var delayDays = 2 // Enter # of days before messages are moved to trash var maxDate = new Date ( ) ; maxDate.setDate ( maxDate.getDate ( ) -delay...

iPhone 7 and iPhone 7 Plus review: The best iPhones Apple has made

iPhone 7 and iPhone 7 Plus review: The best iPhones Apple has made 's tough meeting expectations years after year. And yet, Apple keeps doing it, although no longer as effortlessly as it would do earlier in this decade. The company launched the iPhone 7 and the iPhone 7 Plus on October 7 in the Indian market, a month after the global announcement of the two phones. These are the phones that look like incremental update to the iPhone 6S and the iPhone 6S Plus. But looks can be deceiving. And they surely are in this case. Of late, the iPhone is facing tough challenge from others in the market. The Galaxy S7 arguably has a better design. The Samsung phone also has better screen and, in most cases, better camera. Google's Nexus phones have better software. The HTC offers better sound in its high-end phones. The Sony phones are waterproof. All of this puts the iPhone at a back-foot. The good thing is that Apple knows these challenges and is meeting them head-on with t...