# Mail Server

> A server that sends, gets and keeps email for a web address.

**Field:** Infrastructure  
**Category:** Servers  
**Also known as:** Email Server, SMTP Server, Mail Transfer Agent

## Think of it like

Think of it like a post office. It takes your letter, sends it on and keeps the letters sent to you.

## Definition

A mail server is a server that 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. Mail servers check each other with records in DNS, so fakes are easier to spot. Running your own is hard, so most people use a mail provider.

## Example

Lucy sends an email to Jack at work. Her mail server finds the server that takes mail for his firm, then hands the mail over.

## Why it matters

Email still runs most business talk. A badly set up mail server sends mail that lands in spam.

## Common mistake

Sending mail from a new server with no DNS records set. Other servers treat it as spam or reject it.

## Three principles

- **Send and receive.** Passes mail between servers.
- **Keeps inboxes.** Holds mail until it is read.
- **Trust is checked.** DNS records prove who sent it.

## Related terms

- [Server](https://learn.benibix.com/term/infrastructure/server)
- [Domain Name System (DNS)](https://learn.benibix.com/term/infrastructure/dns)
- [File Server](https://learn.benibix.com/term/infrastructure/file-server)
- [Phishing](https://learn.benibix.com/term/infrastructure/phishing)

## Taught in

- [Server Types and Roles](https://learn.benibix.com/learn/infrastructure-servers/server-types-and-roles): Servers and Racks, 2/8

![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)

---

Source: https://learn.benibix.com/term/infrastructure/mail-server
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.
