Mail Transfer Agent (MTA) and Message Access Agent (MAA)

 

Mail Transfer Agent (MTA) and Message Access Agent (MAA)

Electronic mail (e-mail) uses different protocols for sending and receiving messages. The two important software components involved are:

  • Mail Transfer Agent (MTA) – Used for sending and transferring e-mails.
  • Message Access Agent (MAA) – Used for retrieving e-mails from the mail server.

The commonly used protocols are:

AgentProtocol UsedPurpose
MTASMTP (Simple Mail Transfer Protocol)Sends e-mail between clients and mail servers, and between mail servers
MAAPOP3 (Post Office Protocol Version 3)Downloads e-mails from the mail server
MAAIMAP (Internet Message Access Protocol)Accesses and manages e-mails on the mail server





1. Mail Transfer Agent (MTA)

Definition

A Mail Transfer Agent (MTA) is responsible for transferring e-mails from the sender's mail server to the receiver's mail server.

MTA follows the client-server paradigm and uses the SMTP protocol for communication. It performs push communication, meaning the sender's mail server pushes the message to the receiver's mail server.


Protocol Used: SMTP

SMTP (Simple Mail Transfer Protocol) is the standard protocol used for sending e-mails.

Functions of SMTP

  • Sends e-mails from the sender's User Agent to the sender's mail server.
  • Transfers e-mails between mail servers.
  • Pushes messages to the destination mail server.
  • Uses TCP for reliable communication.

Default Port Numbers

Protocol    Port Number
SMTP    25
SMTP Submission        587
SMTPS (Secure SMTP)    465

Working of MTA (SMTP)

  1. Alice composes an e-mail using her User Agent.
  2. The User Agent sends the e-mail to Alice's mail server using SMTP.
  3. The sender's mail server stores the message in the spool (queue).
  4. The SMTP client transfers the message to the receiver's mail server.
  5. The receiver's SMTP server accepts the message.
  6. The message is stored in Bob's mailbox.
Alice
   |
User Agent
   |
SMTP
   |
Sender Mail Server
   |
SMTP
   |
Internet
   |
SMTP
   |
Receiver Mail Server
   |
Mailbox




Characteristics of MTA

  • Uses SMTP.
  • Performs push communication.
  • Transfers mail between mail servers.
  • Stores outgoing mail temporarily in the spool.
  • Operates automatically.

2. Message Access Agent (MAA)

Definition

A Message Access Agent (MAA) allows the receiver to retrieve e-mails stored in the mailbox on the mail server.

Unlike MTA, MAA performs pull communication, where the receiver requests messages from the server.

The two protocols used by MAA are:

  • POP3
  • IMAP

Protocol 1: POP3 (Post Office Protocol Version 3)

Definition

POP3 allows a user to download e-mails from the mail server to the local computer.

After downloading, the messages are usually removed from the server (depending on configuration).


Working of POP3

  1. User starts the mail application.
  2. POP3 client connects to the mail server.
  3. User is authenticated.
  4. Messages are downloaded.
  5. Messages may be deleted from the server.
  6. User reads the downloaded messages offline.

Default Port

ProtocolPort
POP3110
POP3S (Secure POP3)995

Features of POP3

  • Downloads e-mails to the local computer.
  • Supports offline reading.
  • Frees storage space on the mail server.
  • Simple and efficient.

Limitation

  • Messages are usually removed from the server.
  • Synchronization across multiple devices is limited.



Protocol 2: IMAP (Internet Message Access Protocol)

Definition

IMAP allows users to access and manage e-mails directly on the mail server without downloading them permanently.

Messages remain stored on the server.


Working of IMAP

  1. User opens the mail application.
  2. IMAP client connects to the mail server.
  3. User authenticates.
  4. Messages remain on the server.
  5. The user can read, organize, and manage messages from multiple devices.

Default Port

ProtocolPort
IMAP143
IMAPS (Secure IMAP)993

Features of IMAP

  • Messages remain on the server.
  • Supports multiple devices.
  • Synchronizes folders and message status.
  • Suitable for modern smartphones and webmail.

POP3 vs IMAP

FeaturePOP3IMAP
Full FormPost Office Protocol Version 3Internet Message Access Protocol
Mail StorageDownloads to local computerStored on mail server
Server CopyUsually deleted after downloadRemains on server
Multiple Device SupportPoorExcellent
Offline AccessYesLimited (unless cached)
SynchronizationNoYes
Best ForSingle computer usersMultiple devices (PC, mobile, tablet)

Overall E-mail Communication

Alice
   |
User Agent (UA)
   |
SMTP
   |
Sender Mail Server
   |
SMTP (MTA)
   |
Internet
   |
SMTP (MTA)
   |
Receiver Mail Server
   |
Mailbox
   |
POP3 / IMAP (MAA)
   |
Bob

Summary

ComponentProtocolCommunicationPurpose
User Agent (UA)SMTPSendCompose and send e-mails
Mail Transfer Agent (MTA)SMTPPushTransfer e-mails between mail servers
Message Access Agent (MAA)POP3PullDownload e-mails from the mail server
Message Access Agent (MAA)IMAPPullAccess and manage e-mails on the mail server

Key Points

  • SMTP is used for sending e-mails (client to mail server and mail server to mail server).
  • POP3 is used to download e-mails from the mail server to the user's computer.
  • IMAP is used to access and synchronize e-mails while keeping them on the mail server.
  • MTA uses SMTP, whereas MAA uses POP3 or IMAP for retrieving messages.

Comments

Popular posts from this blog

Computer Networks PCCST501 Semester 5 KTU CS 2024 Scheme - Dr Binu V P

Introduction to Computer Networks

Introduction to Local Area Network (LAN)