How Does An Email Server Work? [Technology Explained]

Thumbnail5   How Does An Email Server Work? [Technology Explained]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.

The Big Picture ““ How does an email go from Sender to Recipient?

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.
  • Diagrammatic Rep   How Does An Email Server Work? [Technology Explained]

  • 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

IMPAP Settings   How Does An Email Server Work? [Technology Explained]

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.

By the way, did you know that email came much, much before the internet? Probably, as early as 1965!

The comments were closed because the article is more than 180 days old.

If you have any questions related to what's mentioned in the article or need help with any computer issue, ask it on MakeUseOf Answers—We and our community will be more than happy to help.

15 Comments -

0 votes

annoyed

This article should be rewritten. It is misleading and confused.
A protocol is something that is use by both sides, so you cannot say that an SMTP server is talking to a POP3 server. They are both using the same protocol or they are not talking at all.

WIKI says
While electronic mail servers and other mail transfer agents use SMTP to send and receive mail messages, user-level client mail applications typically only use SMTP for sending messages to a mail server for relaying. For receiving messages, client applications usually use either the Post Office Protocol (POP) or the Internet Message Access Protocol (IMAP) to access their mail box accounts on a mail server.

So according to wiki, POP3 and IMAP are used between clients and their server.

so client a -> (POP3) -> server A -> (SMTP) -> server B -> (POP3) -> client b

You are also confusing servers and protocols – you say that the SMTP server gives the mail to the POP3 server. That is not accurate. Both protocols are used on the same data-base, why call them separate servers.

And most important – according to you the sender server communicates directly to the receiver server, that is not how the internet works – packages are send in the general direction of the target and along the way pass other servers that move them on. Those other servers on the way, can and DO READ YOUR EMAIL. Of course, that is not supposed to happen, but can happen which is why email is NOT SECURE.

1 votes

Saikat

The general parlance is SMTP server and POP3 server. Even on the same ‘database’ they are different server components and are therefore called as SMTP server and POP server.About your last point…I have mentioned that an email is relayed to the destination through several hops.

0 votes

Jim Hubbard

“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.”

This is simply not true. Modern email clients have settings to tell POP3 servers to keep their emails on the server. They can choose to keep them there until they delete the email from their email client or they can choose to have the emails live on the server for X days and then be deleted automatically.

0 votes

Saikat

Yes, Jim that’s true. Most modern day email services have this option. The intention was to give a simplistic standard definition of the difference between POP3 and IMAP. Client and mail serve interactions are inherently more complex. Of course, without mentioning POP3 UIDL commands,I could have clarified the process bit more.

0 votes

find mail server

IMAP4 certainly seems more advantagous over POP3 if you can access it from anywhere with an internet connection, although I do not like the idea it is slower.

0 votes

Jim Hubbard

In my experience, the biggest roadblock to implementing IMAP for most small businesses is the mailbox size.

IMAP keeps everything on the server and will quickly eat up most hosted email plans’ space if not watched carefully.

If it was unlimited on space – it would be nearly perfect.

0 votes

Subramanian

Very informative..thumbs up to makeuseof team..i feel very worth subscribed this site..actually i’m new to world of internet n makeuseof updates me wit latest n explains abwt cutting edge technologies..keep on updating :-)