How does a mail server work
Imagining the world without emails is virtually impossible. It is the only way by which people who are thousands of kilometers away can send as well as receive letters in fraction of a second. For you to send an email, you should have an email client on your machine. The first modern type of email was sent in the year 1971.
An email is sent with the help of an email server. An email server is like a computer that serves the purpose of an electronic post office. It is capable of sending and receiving millions of emails simultaneously and consists of hardware as well as software components. Email servers are basically of two distinct types depending upon the software that is used by them. One is the SMTP and the other one is POP3. These two protocols do almost the same job with just minor differences in their algorithm that they implement to get the work done.
Email servers work only with registered email clients. If the email server receives an email from one of the registered clients, then it performs the following tasks.
Checking for registered clients
At first after an email is received the server checks whether it is from one of the registered email clients on the basis of which it either takes an incoming email or rejects it. An email is received by a server through port 25 if it is a SMPT protocol or through port 110 if it uses a POP3 protocol.
Separate the username and the site name
The server then separates the user name and the site name and in case the site name and the mail site to which it will be sent are the same then it is sent to a POP3 or IMAP server for the rest of the process to be performed.
Request DNS for IP address
In case the recipient email address is different from the sent address then the server will contact the domain name server or the DNS and request for the IP address of the mail client to which your mail is to be sent.
Storing the mail in a database
The mail is then stored in a database on the server before it is sent to the receiving email id.
Resending and generating suitable error message
In case the SMTP server cannot locate the IP address of the recipient mail server, then the mail is queued and periodically sent for a fixed number of times before a message sending failed message is generated stating the reasons for its failure.
These are the basics of the working of an email server. Though various servers may have some small modifications but the basic working remains the same. The main job of an email server is to receive a message from the registered clients and then send it to any recipient address. Attachments are extra files that may not always be text and hence they need to be first encoded into text format and pasted in the main mail by the server itself before they are sent.
Host your web server from Bounceweb Hosting for best results!
Leave a Reply
You must be logged in to post a comment.