TheHingineer

  • Computer Networks


  • CN Part-1

  • CN Part-2

  • CN Part-3

  • CN Part-4

  • CN Part-5

  •  Email Protocols: SMTP, POP3, and IMAP in Computer Networks

     Email Architecture Overview

    • Electronic Mail (Email) internet ki sabse puraani aur widely used applications mein se ek hai.

    • Email system do distinct stages mein kaam karta hai:

      • Email Sending / Pushing: Sender ke client se sender mail server tak, aur fir destination mail server tak message bhejna (Push Protocol).
      • Email Retrieving / Pulling: Receiver dwara apne mail server ke mailbox se emails apne device par download ya view karna (Pull Protocol).
    • Is do-tarfa architecture ki wajah se email sending aur receiving ke liye alag-alag protocols use hote hain: Sending ke liye SMTP, aur Receiving ke liye POP3 ya IMAP.

    [ Alice (Sender) ]
           |
           |===== 1. SMTP (Push) =====> [ Alice's Mail Server ]
                                                 |
                                                 |===== 2. SMTP (Push) =====> [ Bob's Mail Server ]
                                                                                       |
    [ Bob (Receiver) ] <===== 3. POP3 or IMAP (Pull) ==================================|

     1. SMTP (Simple Mail Transfer Protocol)

    • SMTP ek standard Push Protocol hai jo emails transfer karne ke liye use hota hai (RFC 5321).

    • Yeh reliable transport ke liye TCP use karta hai.

    • Port Numbers:

      • Port 25: Original server-to-server relay port.
      • Port 587: Modern standard client submission port with STARTTLS encryption.
      • Port 465: SMTPS (SMTP over SSL/TLS).
    • Limitation & MIME: Original SMTP sirf 7-bit ASCII text carry kar sakta tha (images, videos ya non-English text nahi bhej sakta tha). Is kami ko door karne ke liye MIME (Multipurpose Internet Mail Extensions) introduce kiya gaya jo binary files aur attachments ko text mein encode karke SMTP se bhejta hai.

     2. POP3 (Post Office Protocol Version 3)

    • POP3 ek simple Message Access / Pull Protocol hai (RFC 1939).

    • Working: "Download and Delete" mode:
      Jab client POP3 se connect hota hai, toh server se saare emails client ke local computer par download ho jaate hain aur server se permanently delete kar diye jaate hain.

    • Ports: Plaintext: Port 110 | Secure (SSL/TLS): Port 995.

    • Drawback: Multi-device sync impossible hai. Agar aapne laptop par email download kar liya, toh phone par wo email nahi dikhega kyunki server se delete ho chuka hai!

     3. IMAP (Internet Message Access Protocol)

    • IMAP (IMAP4) modern aur powerful Message Access Protocol hai jo multi-device world ke liye design kiya gaya hai (RFC 3501).

    • Working: Server-Centric (Syncing) mode:
      Emails hamesha central Mail Server par hi store rehte hain. Client sirf unka view aur headers dekhta hai. Jab aap phone par email read, delete, ya move karte hain, toh wo changes server par sync ho jaate hain aur turant laptop aur tablet par bhi update ho jaate hain!

    • Ports: Plaintext: Port 143 | Secure (SSL/TLS): Port 993.

    • Features: Server-side folders, partial message fetch (sirf text download karna bina bade attachments ke), multi-device real-time synchronization.

     POP3 vs IMAP Comparison (Exam Favorite!)

    Feature POP3 IMAP (IMAP4)
    Storage Location Emails download hokar Local Device par store hote hain. Emails hamesha Central Mail Server par store rehte hain.
    Server Deletion Download ke baad server se delete ho jaate hain (default). Server par retained rehte hain jab tak user manually delete na kare.
    Multiple Device Sync Not supported (Single device access). Fully supported (Phone, laptop, browser fully synchronized).
    Bandwidth & Server Load Server par zero storage load, offline reading easy. Server storage require karta hai, internet active chahiye.
    Default Ports Port 110 (Insecure), Port 995 (Secure). Port 143 (Insecure), Port 993 (Secure).

     Summary Table

    Protocol Type Role
    SMTP Push Protocol Emails ko send aur mail servers ke beech transfer karna (Port 25 / 587).
    POP3 Pull Protocol Server se device par email download karke delete karna (Port 110 / 995).
    IMAP Sync / Pull Protocol Server par emails rakh kar multi-device real-time synchronization (Port 143 / 993).
    Scroll to Top