🖥️ Server Types: Web vs Mail Servers

📌 Overview

While all servers are computers that provide resources, they are specialized based on the Software they run and the Protocols they use.


🌐 1. Web Server

A Web Server stores, processes, and delivers web pages to clients (Browsers).

Architecture Flow

    [ User / Browser ]
           |
       (1) HTTP Request (GET www.google.com)
           |
           v
    [   Web Server   ] <---- [ HTML / CSS / JS Files ]
           |
       (2) HTTP Response (Here is the page)
           |
           v
    [ User / Browser ] (Renders the Page)

Azure Context


📧 2. Mail Server

A Mail Server handles the sending, receiving, and storage of emails. It functions like a digital Post Office.

The Protocols Trio

  1. SMTP (Simple Mail Transfer Protocol): Used for SENDING email. (Pusher).
  2. POP3 (Post Office Protocol): Used for RECEIVING email. Downloads to device and deletes from server. (Old school).
  3. IMAP (Internet Message Access Protocol): Used for RECEIVING email. Syncs across devices (Server keeps copy). (Modern).

Architecture Flow

    [ Sender (Outlook) ]
           |
       (1) SMTP (Send)
           |
           v
    [ Sender's Mail Server ]
           |
       (2) SMTP (Relay across Internet)
           |
           v
    [ Receiver's Mail Server ]
           |
       (3) IMAP / POP3 (Fetch)
           |
           v
    [ Receiver (Phone) ]

Azure Context ⚠️

1768228492451

💡 Hinglish Explanation

1. Web Server (Restaurant)

2. Mail Server (Post Office)


⚡ Exam Tips for AZ-900

  1. Azure App Service: The easiest way to host a "Web Server" in Azure (PaaS).
  2. Port 25 Restriction: If an exam question asks why your VM cannot send email, it's because Outbound Port 25 is blocked. Use a Relay Service.