Docsity

email protocols, Study notes of Internet and Information Access

Toggle sidebar
bg1
E-MAIL PROTOCOLS
E-mail Protocols are set of rules that help the client to properly transmit the information to or from the mail server. Here in
this tutorial, we will discuss various protocols such as SMTP, POP, and IMAP.
SMPTP
SMTP stands for Simple Mail Transfer Protocol. It was first proposed in 1982. It is a standard protocol used for sending e-
mail efficiently and reliably over the internet.
Key Points:
SMTP is application level protocol.
SMTP is connection oriented protocol.
SMTP is text based protocol.
It handles exchange of messages between e-mail servers over TCP/IP network.
Apart from transferring e-mail, SMPT also provides notification regarding incoming mail.
When you send e-mail, your e-mail client sends it to your e-mail server which further contacts the recipient mail
server using SMTP client.
These SMTP commands specify the sender’s and receiver’s e-mail address, along with the message to be send.
The exchange of commands between servers is carried out without intervention of any user.
In case, message cannot be delivered, an error report is sent to the sender which makes SMTP a reliable protocol.
SMTP Commands
The following table describes some of the SMTP commands:
S.N.
Command Description
1
HELLO
This command initiates the SMTP conversation.
2
EHELLO
This is an alternative command to initiate the conversation. ESMTP indicates that the sender server wants to
use extended SMTP protocol.
3
MAIL FROM
This indicates the sender’s address.
4
RCPT TO
It identifies the recipient of the mail. In order to deliver similar message to multiple users this command can be
repeated multiple times.
5
SIZE
This command let the server know the size of attached message in bytes.
6
DATA
The DATA command signifies that a stream of data will follow. Here stream of data refers to the body of the
message.
7
QUIT
This commands is used to terminate the SMTP connection.
pf3
pf4
pf5
pf8

Partial preview of the text

Download email protocols and more Study notes Internet and Information Access in PDF only on Docsity!

E-MAIL PROTOCOLS

E-mail Protocols are set of rules that help the client to properly transmit the information to or from the mail server. Here in this tutorial, we will discuss various protocols such as SMTP, POP, and IMAP.

SMPTP

SMTP stands for Simple Mail Transfer Protocol. It was first proposed in 1982. It is a standard protocol used for sending e- mail efficiently and reliably over the internet. Key Points: SMTP is application level protocol. SMTP is connection oriented protocol. SMTP is text based protocol. It handles exchange of messages between e-mail servers over TCP/IP network. Apart from transferring e-mail, SMPT also provides notification regarding incoming mail. When you send e-mail, your e-mail client sends it to your e-mail server which further contacts the recipient mail server using SMTP client. These SMTP commands specify the sender’s and receiver’s e-mail address, along with the message to be send. The exchange of commands between servers is carried out without intervention of any user. In case, message cannot be delivered, an error report is sent to the sender which makes SMTP a reliable protocol.

SMTP Commands

The following table describes some of the SMTP commands: S.N. Command Description (^1) HELLO This command initiates the SMTP conversation. (^2) EHELLO This is an alternative command to initiate the conversation. ESMTP indicates that the sender server wants to use extended SMTP protocol. (^3) MAIL FROM This indicates the sender’s address. (^4) RCPT TO It identifies the recipient of the mail. In order to deliver similar message to multiple users this command can be repeated multiple times. (^5) SIZE This command let the server know the size of attached message in bytes. (^6) DATA The DATA command signifies that a stream of data will follow. Here stream of data refers to the body of the message. 7 QUIT This commands is used to terminate the SMTP connection.

8 VERFY

This command is used by the receiving server in order to verify whether the given username is valid or not. (^9) EXPN It is same as VRFY, except it will list all the users name when it used with a distribution list.

IMAP

IMAP stands for Internet Mail Access Protocol. It was first proposed in 1986. There exist five versions of IMAP as follows:

  1. Original IMAP
  2. IMAP
  3. IMAP
  4. IMAP2bis
  5. IMAP Key Points: IMAP allows the client program to manipulate the e-mail message on the server without downloading them on the local computer. The e-mail is hold and maintained by the remote server. create, manipulate and delete remote message folders called mail boxes.It enables us to take any action such as downloading, delete the mail without reading the mail.It enables us to IMAP enables the users to search the e-mails. It allows concurrent access to multiple mailboxes on multiple mail servers.

IMAP Commands

The following table describes some of the IMAP commands: S.N. Command Description (^1) IMAP_LOGIN This command opens the connection. (^2) CAPABILITY This command requests for listing the capabilities that the server supports. (^3) NOOP This command is used as a periodic poll for new messages or message status updates during a period of inactivity. (^4) SELECT This command helps to select a mailbox to access the messages. (^5) EXAMINE It is same as SELECT command except no change to the mailbox is permitted. (^6) CREATE It is used to create mailbox with a specified name.

7 QUIT

It is used to log off the session.

Comparison between POP and IMAP

S.N. POP IMAP

1 Generally used to support single client. Designed to handle multiple clients. 2 Messages are accessed offline. (^) Messages are accessed online although it also supports offline mode. 3 POP does not allow search facility. It offers ability to search emails. 4 All the messages have to be downloaded. It allows selective transfer of messages to the client.

(^5) Only one mailbox can be created on the server. Multiple mailboxes can be created on the server.

6 Not suitable for accessing non-mail data. (^) Suitable for accessing non-mail data i.e. attachment. (^7) POP commands are generally abbreviated into codes of three or four letters. Eg. STAT.

IMAP commands are not abbreviated, they are full. Eg. STATUS. (^8) It requires minimum use of server resources. Clients are totally dependent on server.

(^9) Mails once downloaded cannot be accessed from some other location. Allows mails to be accessed from multiple locations. (^10) The e-mails are not downloaded automatically. Users can view the headings and sender of e-mails and then decide to download. 10 POP requires less internet usage time. IMAP requires more internet usage time.

E-MAIL SECURITY

E-mail Hacking

Email hacking can be done in any of the following ways: Spam Virus Phishing

Spam

E-mail spamming is an act of sending Unsolicited Bulk E-mails (UBI) which one has not asked for. Email spams are the junk mails sent by commercial companies as an advertisement of their products and services.

Virus

Some emails may incorporate with files containing malicious script which when run on your computer may lead to destroy your important data.

Phishing

Email phishing is an activity of sending emails to a user claiming to be a legitimate enterprise. Its main purpose is to steal sensitive information such as usernames, passwords, and credit card details. Such emails contains link to websites that are infected with malware and direct the user to enter details at a fake website whose look and feels are same to legitimate one.

E-mail Spamming and Junk Mails

Email spamming is an act of sending Unsolicited Bulk E-mails (UBI) which one has not asked for. Email spams are the junk mails sent by commercial companies as an advertisement of their products and services. Spams may cause the following problems: It floods your e-mail account with unwanted e-mails, which may result in loss of important emails if inbox is full. Time and energy is wasted in reviewing and deleting junk emails or spams. It consumes the bandwidth that slows the speed with which mails are delivered. Some unsolicited email may contain virus that can cause harm to your computer.

Blocking Spams

Following ways will help you to reduce spams: While posting letters to newsgroups or mailing list, use a separate e-mail address than the one you used for your personal e-mails. Don’t give your email address on the websites as it can easily be spammed. Avoid replying to emails which you have received from unknown persons. Never buy anything in response to a spam that advertises a product.

E-mail Cleanup and Archiving

In order to have light weighted Inbox, it’s good to archive your inbox from time to time. Here I will discuss the steps to clean up and archive your Outlook inbox.

E-MAIL WORKING

E-mail System

E-mail system comprises of the following three components: Mailer Mail Server Mailbox

Mailer

It is also called mail program, mail application or mail client. It allows us to manage, read and compose e-mail.

Mail Server

The function of mail server is to receive, store and deliver the email. It is must for mail servers to be sunning all the time because if it crashes or is down, email can be lost.

Mailboxes

Mailbox is generally a folder that contains emails and information about them.

Working of E-mail

Email working follows the client server approach. In this client is the mailer i.e. the mail application or mail program and server is a device that manages emails. Following example will take you through the basic steps involved in sending and receiving emails and will give you a better understanding of working of email system: Suppose person A wants to send an email message to person B. Person A composes the messages using a mailer program i.e. mail client and then select Send option. The message is routed to Simple Mail Transfer Protocol to person B’s mail server. The mail server stores the email message on disk in an area designated for person B.

The disk space area on mail server is called mail spool.

Now, suppose person B is running a POP client and knows how to communicate with B’s mail server. It will periodically poll the POP server to check if any new email has arrived for B.As in this case, person B has sent an email for person B, so email is forwarded over the network to B’s PC. This is message is now stored on person B’s PC. The following diagram gives pictorial representation of the steps discussed above: