How does an Email Server Work

Email or electronic mail is the way the world communicates today. It is the fastest form of text communication, over large distances. Rarely do we wonder about how things that matter to us, work. Have you ever wondered how an email server works? How sending and receiving mail is made possible? Read on to know about how email system works through mail servers.
Could we netizens imagine a life without email? Though email is a novelty for the older generation, the young generation hardly uses any other form of communication. This is because email is probably the fastest way of communication.

Though nothing can be compared with the beauty of a handwritten letter, speed matters and that is what makes email more popular. Email communication has reduced the use and waste of paper. It is easier to maintain correspondence. Businesses world over, are switching over to email communication and thus they have indirectly changed the pace of business processes.

Most of the technologies, like email, are taken for granted. One never thinks about how an email is made possible. How does an email server work? The email system was in use even before the Internet was made operational. The first mail system was developed for the ARPANET which was a defense related internal network of the US government. The first modern type of mail that resembled today's mail was sent in 1971. Today, millions of emails are sent every second, all over the world! How is the journey of your text message, typed from your personal computer to a distant friend, thousands of kilometers away, made possible? Let us understand how your email makes this journey through routing stations called email servers.

Working of an Email Server

Everything that happens on the internet is through the client - server communication. A client is any computer connected to the internet through a unique internet protocol address. A server is another computer connected to the internet and does the task of hosting and serving web pages and makes the email system possible. Servers are actually computer programs that run on high speed machines. These machines are designed to handle the requests of millions of clients at a time who access a webpage or email service which they are using on their machine. in simple words this process is known as web hosting.

An email system is made possible by two types of servers. One is the SMTP server and other is the POP3 or IMAP sever. Many of us normally use a mail client software like Microsoft Outlook or the latest Mozilla Thunderbird that downloads the incoming email on your machine, from the mail server of the particular email account you use, on sites like gmail or yahoo or send mail. Let us understand how it all works in terms of client - server communication.

SMTP Server

SMTP stands for 'Simple Mail Transfer Protocol'. A protocol is an algorithm or procedure of communication, for a particular purpose. This server program exclusively handles the sending part of a mail. When you login to your mail account through a mail client like, outlook express or access directly through a site like hotmail, your client computer communicates with the SMTP server of your email site. An email id is by default in the format 'username@mailsite.com'.

The SMTP server receives the sent mail through port 25. Different ports of a server machine are assigned for certain specific tasks. Then the SMTP server separates the user name and the site name. If the site name is the same as the mail site from which it is sent, then it forwads the mail to its POP3 or IMAP server, which handles incoming mail. For example, if I am sending the mail from my gmail account and the recipient's address is also a gmail account then the gmail SMTP server will simply forward the mail to the POP3 or IMAP gmail server.

If on the other hand, the sent email id belongs to a different site like yahoomail then the gmail SMTP server will contact the DNS (Domain name server) and ask for the IP addresses of the yahoomail server and forward the mail to the yahoomail SMTP server. A mail is a text file which is then forwarded by the yahoomail SMTP server to its POP3 or IMAP server. This server stores it into a particular file dedicated to the recipient's mail account.

Many times it so happens that the SMTP server cannot locate the IP address of the mail recipient server. In such cases, the sent mail is queued and periodically sent again. In case it's not able to send the mail, the SMTP server generates a 'mailer daemon' message which informs the sender of failure in message delivery and the reasons for the failure.

POP3 and IMAP Server

The POP3 server handles the other end of the emailing job. POP stands for 'Post Office protocol'. Through the server port 110, the POP3 server receives your request for reading mail after you log in.Gmail's POP3 server, maintains a detailed text file for every account that is registered on it. All the mail messages delivered through the SMTP server communication are pasted in that text file, one after the other along with all the required delivery timing and other details. When you want to read the mail, it analyzes the text file and separates each mail by header, subject and sender's name and serves it on your machine. The only disadvantage of a POP3 server is that once you download all your incoming messages through a mail client, they do not remain on the server machine. That is, they are erased from there.

The IMAP (Internet Message Access Protocol) server is an improvement of POP3 server and takes care of the only disadvantage it has. What it does is, it maintains the original copy of your incoming mail text file on the server, even after you download it. So with an IMAP server, you can access your mail from any machine and download the mails on the machine or read them live on the site itself, without downloading.

Email Attachments
Email attachments are extra files attached to the mail which may or may not be text files. The attachments are sent through a mail by encoding there content into another text format and pasting them in the mail itself. These days, MIME (Multipurpose internet Email Extensions) allow audio and video file attachments.

Thus the working of an email system is quite simple in principle. The mail servers handle millions of such requests from world over, every minute. It's one of the most advanced, automatic postal mailing system of the world. Thanks to email servers, we can stay in touch with our dear ones, no matter in which corner of the world they are!
By
Last Updated: 9/19/2011
Like This Article?
Follow:
Post Comment | View Comments
Your Comments:
Your Name: