# Server Types and Roles

> The common jobs a server is given: files, mail and databases. What a NAS is, and why each job often gets a server of its own.

**Course:** [Servers and Racks](https://learn.benibix.com/learn/infrastructure-servers)  
**Time:** 10 min

**After this lesson you can:**

- Name four common server roles
- Say what a NAS is and who uses one
- Explain why roles are kept apart

## The jobs a server is given

A server is named after the job it does. A file server stores shared files. A mail server sends and keeps email. A database server holds records and answers questions about them. One machine can do several jobs, but a busy office usually gives each job a server of its own.

A file server keeps one copy of every shared file in one place. Each person sees the shared folders on their own computer, like a normal drive. The server checks who may open or change each file. Nobody works on an old copy sent round by email.

A NAS, or network-attached storage, is a small box of disks that shares files over the network. It is a simple file server made for homes and small offices. You set it up in a web page, not with commands. Most hold two or more disks, so one disk can fail without losing data.

A mail server sends and receives email. When you send a message, your mail server passes it to the mail server of the person you wrote to. That server keeps it in their inbox until they open it. Running your own is hard, because other mail servers quickly block one that looks untrusted.

A database server runs a database and answers questions from apps. An app asks for the orders from last week, and the server sends back those rows. It should never be open to the whole internet. Only the apps that need it should be able to reach it.

Roles are kept apart for three reasons. Each job gets its own memory and disks, so one busy job does not slow the others. A fault in one does not take down the rest. And a database with no link to the outside world is far harder to break into.

A common mistake is to treat a NAS as a backup. If a file is deleted or locked by an attack, the NAS holds the same damaged copy. Two disks inside it protect you from one dead disk, not from a mistake. A real backup is a second copy kept somewhere else.

![An office network. Three laptops link to a switch in the middle. Around the switch sit four servers, each with its own job: a file server holding shared folders, a small NAS box holding backups, a mail server holding inboxes, and a database server holding tables of records.](https://learn.benibix.com/diagrams/inf3-server-roles.svg)

### Example: A dental practice sets up its servers

A practice with 12 staff keeps patient records in a database server in a locked cupboard. Only the booking app can reach it.

Letters and scans live on a NAS with two 4 terabyte disks. An outside firm handles email. Running a mail server well would take a full-time person.

**Words in this lesson:** [File Server](https://learn.benibix.com/term/infrastructure/file-server), [Network-Attached Storage (NAS)](https://learn.benibix.com/term/infrastructure/network-attached-storage), [Mail Server](https://learn.benibix.com/term/infrastructure/mail-server), [Database Server](https://learn.benibix.com/term/infrastructure/database-server)

**Question:** Why is a NAS with two disks not a backup?

**Answer:** A deleted or damaged file is gone from both disks at once. The second disk copies every change, mistakes too. It saves you from a dead disk. A backup is a separate copy kept somewhere else.

---

Source: https://learn.benibix.com/learn/infrastructure-servers/server-types-and-roles
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-19
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
