Tell me about email, and the most useful starting point is that email is a store-and-forward messaging system built on a chain of internet protocols, servers and identity rules. When you press Send, your message does not normally travel directly from your phone to the recipient’s phone. Your mail application hands the message to an outgoing mail server, that server looks up where the recipient’s domain receives mail, one or more mail servers transfer the message across the internet, and the recipient later reads it through a mailbox service. The familiar inbox hides a surprisingly large system of addressing, routing, queues, spam filtering, authentication, encryption, storage and synchronization.
People searching for how email works often want to know what SMTP, IMAP and POP are, how an address like name@example.com is routed, what MX records do, why some messages go to spam, how attachments are carried, what CC and BCC mean technically, why email can be delayed, how read receipts work, whether email is encrypted, what phishing is, how SPF, DKIM and DMARC reduce spoofing, why deleted messages sometimes reappear, and what happens when a server is temporarily unavailable. These questions all connect to one idea: email is a distributed delivery system in which many independent servers cooperate using standardized formats and protocols.
This guide explains email from first principles. It covers message structure, addresses, domains, DNS, SMTP transfer, mail queues, MX records, IMAP synchronization, POP retrieval, MIME attachments, spam filtering, message authentication, encryption, phishing, mailing lists, forwarding, aliases, delivery failures, storage, archiving, search and practical troubleshooting. It also includes worked examples, misconceptions and diagnostic questions. The goal is not to memorize protocol acronyms. It is to understand the path from composing a message to final delivery, what each system component is responsible for, and why email remains remarkably interoperable after decades of technical change.
The 50-second explanation
An email has an envelope and a message, much like postal mail. The envelope tells mail servers where the message should be delivered. The message itself contains headers such as From, To, Date and Subject plus the body and any attachments. When you send, your mail client submits the message to an outgoing server using SMTP. That server uses DNS to find the recipient domain’s mail exchanger, then connects to that server and offers the message.
If the recipient server accepts the message, it stores it in a mailbox or forwards it internally. The recipient’s app then reads or synchronizes that mailbox, usually through IMAP, a provider API or a web interface. If the recipient server is temporarily unavailable, the sending server can queue the message and retry. If the address is invalid or delivery permanently fails, a bounce message is generated.
Modern email adds security layers around this simple transfer. TLS encrypts many server-to-server connections. SPF says which servers may send for a domain. DKIM adds a cryptographic signature to parts of the message. DMARC tells receivers how to evaluate alignment between visible sender identity and those authentication results. Spam and phishing filters combine these signals with reputation, content and behavior to decide whether a message belongs in the inbox.
Core definitions
Email address
An email address has a local part and a domain, separated by @. In name@example.com, “name” identifies a mailbox, alias or routing rule within the example.com domain, while example.com identifies the domain whose mail infrastructure is responsible for receiving the message. The exact interpretation of the local part is controlled by that domain’s mail system.
Mail user agent
A mail user agent is the application a person uses to compose, read and organize messages. Desktop mail clients, phone apps and webmail interfaces all play this role. They may talk to mail servers through standard protocols or provider-specific APIs.
Mail transfer agent
A mail transfer agent, or MTA, is software that sends and receives mail between servers. It speaks SMTP, examines routing information, queues messages, retries temporary failures and produces delivery-status notifications.
Mailbox
A mailbox is server-side storage associated with a user or address. Modern providers often treat the mailbox as a database of messages plus labels, folders, flags and indexes rather than as a simple directory of files.
Domain
The domain part of an email address anchors routing and policy. DNS records for that domain tell senders where mail should be delivered and can publish authentication policy. Domain ownership therefore matters for identity and anti-spoofing.
The message itself: headers, body and envelope
Message headers
Headers are structured lines that describe the message. Common fields include From, To, Cc, Subject, Date and Message-ID. Mail servers may add Received headers showing the path through which the message traveled. Other headers carry content type, authentication results, list information and filtering metadata.
The body
The body contains the human-readable message, often in plain text, HTML or both. HTML email allows formatting, images and links, but also increases complexity because clients may block remote content, sanitize unsafe markup or render styles differently.
Envelope versus visible headers
SMTP delivery uses an envelope sender and one or more envelope recipients. These can differ from the visible From and To fields. Mailing lists, forwarding systems and bounce handling depend on this distinction. A message can show one address in the visible To header while being delivered to a different envelope recipient.
Message-ID
A Message-ID is intended to identify a message globally enough for threading and duplicate detection. Replies may include References or In-Reply-To headers so mail clients can group related messages into conversations.
How sending starts
When you click Send, a mail app typically connects to a submission server operated by your provider or organization. Authentication proves that you are allowed to send through that server. The app uploads the message and recipient list, usually over an encrypted connection. The server then becomes responsible for onward delivery.
Large providers may perform policy checks immediately. Is the account allowed to send this much mail? Does the message contain malware? Does it look like spam? Are there rate limits? Is the sender address authorized? These checks happen before the message leaves the provider’s infrastructure.
The sender may see the message in a Sent folder even before final delivery. That folder records what the sending account submitted, not proof that every recipient accepted or read it.
DNS and MX records: finding the recipient’s mail server
Domain Name System lookup
To deliver mail to user@example.com, the sending server must discover which servers receive mail for example.com. It queries DNS for MX, or mail exchanger, records. Each MX record names a host and usually has a priority value.
Multiple MX records
A domain can publish more than one mail server. Lower-numbered priorities are generally preferred. Secondary servers can accept mail when the primary is unavailable, although modern architectures often use multiple active servers behind distributed infrastructure.
What if there is no MX record?
SMTP has fallback behavior involving address records in some cases, but well-configured modern mail domains publish MX records explicitly. Incorrect DNS can make a perfectly healthy mailbox unreachable.
Email routing demonstrates how separate internet systems cooperate. DNS answers “where should I send this domain’s mail?” while SMTP handles the actual transfer. A useful internal route is Tell Me About the Internet.
SMTP: how mail servers transfer messages
Simple Mail Transfer Protocol is the core protocol for sending email between servers. A sending server opens a connection to a receiving server, introduces itself, identifies the envelope sender, lists recipients and transmits the message content. The receiving server replies with status codes indicating success, temporary failure or permanent rejection.
Store and forward
Email was designed to tolerate temporary outages. If the destination cannot be reached, the sender can store the message in a queue and retry later. This is why email can be delayed for minutes or hours without being lost immediately.
Temporary versus permanent errors
A temporary SMTP error might mean the server is busy or the mailbox is temporarily unavailable. The sender should retry. A permanent error might mean the address does not exist or policy forbids delivery. In that case the sender normally generates a non-delivery report.
The RFC standards
The modern SMTP protocol is defined in internet standards including RFC 5321, while message format is defined in RFC 5322. These open standards are a major reason email from one provider can reach users of another provider.
Mail queues and retries
An outgoing mail server does not assume every delivery will succeed on the first try. It stores unsent messages in a queue with metadata about attempts, error responses and next retry time. The exact retry schedule varies by server and provider.
Queueing is useful because the internet is unreliable in small ways. DNS may fail briefly. A destination server may be rebooting. A network link may be congested. Instead of telling the user that sending failed immediately, the system keeps trying within a defined lifetime.
A queue can also reveal operational problems. Thousands of messages stuck for one domain may indicate a routing problem. A rapidly growing queue for every domain may indicate local DNS failure, outbound network problems or provider throttling.
Receiving and mailbox delivery
When a receiving server accepts an SMTP message, it performs local routing. The address may map to a mailbox, alias, mailing list or forwarding rule. The server can reject the message during SMTP or accept it and then place it into a filtering pipeline.
Spam, malware and policy engines evaluate the message. The result may be delivery to Inbox, Junk, Quarantine or rejection. Some organizations route mail through security gateways before it reaches the final mailbox service.
Delivery is therefore different from reading. A sender may receive a successful SMTP response because the recipient’s server accepted the message. Whether the user ever sees it depends on filtering, mailbox rules and human attention.
IMAP, POP and webmail
IMAP
Internet Message Access Protocol lets clients work with messages stored on a server. A phone, laptop and web interface can all see the same mailbox state because the authoritative copy stays online. Flags such as read, replied or deleted can be synchronized.
POP
Post Office Protocol was designed primarily to download mail to a local client. Traditional POP workflows often removed messages from the server after download, though clients can be configured to leave copies. POP is simpler but less suited to multi-device synchronization.
Provider APIs
Large modern services often expose proprietary APIs that offer richer features than IMAP, such as labels, threaded conversations and integrated search. The user experience may look like ordinary email even when the app is not speaking IMAP directly.
Webmail
Webmail runs the user interface in a browser. The browser communicates with the provider’s web application over HTTPS, and the provider’s backend accesses the mailbox. From the user’s perspective there is no separate local mail client to configure.
Attachments and MIME
Early internet email was designed around text. Multipurpose Internet Mail Extensions, or MIME, expanded message format so email could carry multiple parts with different content types. A message can contain plain text, HTML and several attachments within one structured body.
Binary files are encoded into text-safe representations such as Base64 for transport through systems historically designed for text. This makes attachments larger than the original binary file, which is one reason a 20 MB attachment can consume significantly more than 20 MB of message transfer and mailbox storage.
Large providers impose message-size limits. When a file exceeds the limit, mail applications often upload it to cloud storage and send a sharing link instead of embedding the file directly.
CC, BCC, forwarding and aliases
CC
Carbon copy recipients are visible in the message headers. They receive the same message but are conventionally not the primary addressees.
BCC
Blind carbon copy recipients are included in the SMTP envelope but omitted from the visible recipient headers sent to other recipients. Each recipient therefore does not see the hidden address list. BCC is a delivery mechanism, not magical invisibility: recipients can still reveal themselves by replying.
Forwarding
Forwarding takes an accepted message and sends it onward to another address. This can complicate sender authentication because the forwarding server is not one originally authorized by the sender’s domain. Modern forwarding systems use techniques such as SRS and ARC to preserve or reinterpret authentication information.
Aliases
An alias is an address that delivers into another mailbox or group without being a separate account. Organizations use aliases such as support@ or admissions@ to provide stable public addresses while changing internal recipients.
Spam filtering
Spam filters combine many signals rather than relying on one suspicious word. They evaluate sender reputation, IP history, domain age, authentication, sending volume, user complaints, links, attachments, formatting, language patterns and similarities to known campaigns.
Machine-learning models can score messages based on large historical datasets. Rule-based systems still matter because some threats are easier to express directly: executable attachments, malformed headers or domains on blocklists.
Filters must balance false positives and false negatives. If filtering is too aggressive, legitimate business mail disappears into spam. If it is too permissive, users face scams and malware. User feedback—Mark as spam or Not spam—can improve personalized and provider-wide models.
SPF, DKIM and DMARC: defending domain identity
SPF
Sender Policy Framework lets a domain publish which mail servers are authorized to send mail using that domain in the SMTP envelope. Receivers compare the sending server’s IP address with the domain’s SPF record. SPF helps detect unauthorized infrastructure but can be complicated by forwarding.
DKIM
DomainKeys Identified Mail adds a digital signature to selected message headers and body content. The sending domain publishes the verification key in DNS. A receiver can verify that the signed content was not altered and that a domain possessing the private key signed it.
DMARC
Domain-based Message Authentication, Reporting and Conformance combines authentication with alignment. It asks whether the domains authenticated by SPF or DKIM align with the visible From domain and lets the domain owner publish a policy such as monitor, quarantine or reject. DMARC also supports reports that help domain owners see who is sending mail in their name.
These technologies reduce direct domain spoofing but do not stop every scam. Attackers can register look-alike domains, compromise legitimate accounts or write persuasive messages from real infrastructure. Technical authentication and human judgment are complementary.
Encryption: what is protected and what is not
Transport encryption
Many mail servers use TLS to encrypt SMTP connections between servers. Mail apps also use encrypted connections to submission and mailbox servers. This protects messages from ordinary network eavesdropping while they move across each encrypted hop.
Hop-by-hop is not end-to-end
With normal transport encryption, the sending and receiving mail providers can process message content in plaintext inside their systems because they terminate the encrypted connections. This differs from true end-to-end encryption, where only endpoint users hold decryption keys.
End-to-end approaches
Standards and tools such as S/MIME and OpenPGP can encrypt message content end to end and provide digital signatures. Adoption is limited partly because key distribution, identity verification and user experience are difficult at internet scale.
For a deeper model of keys, signatures and encryption, see Tell Me About Cryptography.
Phishing and social engineering
Phishing uses email to persuade a person to reveal credentials, transfer money, open malware or take another harmful action. The message may imitate a bank, employer, delivery company or colleague. Attackers exploit urgency, authority, fear and familiarity.
Technical clues include mismatched domains, unexpected attachments, unusual reply addresses and authentication failures, but sophisticated phishing can come from a compromised real account and pass many checks. Users should verify unusual requests through an independent channel, especially payment or credential requests.
Organizations reduce phishing risk through multi-factor authentication, secure email gateways, user education, domain authentication and procedures that require secondary approval for sensitive transactions.
Mailing lists and bulk email
Mailing-list software accepts one message and redistributes it to many subscribers. It may rewrite headers, add unsubscribe information, insert footers and manage bounces. Discussion lists also route replies back to the group.
Marketing systems operate at much larger scale and need reputation management, suppression lists, unsubscribe handling and complaint monitoring. A technically valid message can still be treated as spam if recipients do not want it.
Bulk senders often separate transactional mail—password resets, receipts, alerts—from promotional campaigns so a marketing problem does not damage delivery of essential account messages.
Deliverability: why technically valid mail may still miss the inbox
Email deliverability is the practical probability that accepted mail reaches the recipient’s visible inbox rather than spam, quarantine or silent filtering. A sender can have correct DNS and still experience poor deliverability if users rarely open the messages, frequently delete them without reading, report them as spam or if sending volume changes suddenly. Receivers build reputation models around both infrastructure and recipient behavior.
Consistency matters. A domain that normally sends a few hundred messages per day and suddenly sends several million looks unusual even if the traffic is legitimate. Large senders therefore warm up new IP addresses or domains gradually, keep mailing lists clean, remove repeatedly bouncing addresses and honor unsubscribe requests. These practices reduce the appearance of abusive behavior and prevent wasted delivery attempts.
Deliverability also depends on alignment between content and expectation. A person who signed up for order receipts may not welcome daily marketing. Good email programs separate consent, message category and frequency rather than assuming that possession of an address is permanent permission to send anything. The technical system and the human relationship are part of the same delivery outcome.
Reading raw headers: reconstructing the route
A raw email header can look intimidating, but it is a timeline. Each receiving mail server adds a Received field near the top as the message passes through. Reading those entries from bottom to top can often reconstruct the route from original submission through relay systems to the final provider. Timestamps reveal where a delay occurred.
Authentication-Results headers show how SPF, DKIM and DMARC evaluated at a receiving system. Return-Path often reflects the envelope sender used for bounce handling, which may differ from the visible From address. Reply-To can redirect replies somewhere else. These fields are useful when diagnosing spoofing, forwarding or delivery issues.
Headers should still be interpreted carefully because not every line has equal trust. A sender can insert arbitrary headers before submission, while headers added by a trusted receiving provider are harder for an external sender to forge in the same position. Security analysis therefore asks who added each field and at what point in the chain.
Email threading and conversations
Mail clients group related messages into conversations using subject lines and message-reference headers. A proper reply includes the original Message-ID in an In-Reply-To field and may preserve a chain of References.
Threading is not perfect. Changing subjects, broken clients, forwarded copies and mailing-list modifications can split or merge conversations unexpectedly. Thread view is therefore a user-interface inference built on metadata rather than a fundamental property of SMTP delivery.
Search and indexing
Modern mailboxes may contain hundreds of thousands of messages, so providers build full-text indexes rather than scanning every message on each search. Indexers extract words, senders, recipients, dates and attachment metadata into data structures optimized for retrieval.
Search syntax can combine fields: messages from a sender, before a date, with attachments, containing a phrase. Behind the interface, the provider queries indexes that point to matching message records.
Encryption choices affect search. If a service cannot see plaintext because content is end-to-end encrypted, server-side full-text search becomes harder and may need client-side indexes or specialized cryptographic techniques.
Archiving, retention and deletion
Deleting a message in a mail app may mean moving it to Trash, setting a deletion flag or removing one label. The underlying data may remain until the trash-retention period expires. Enterprise systems may also retain copies for legal or compliance reasons even after the user deletes them.
Archiving usually removes a message from the Inbox without deleting it. This is easy in label-based systems because Inbox is simply one label. In folder-based systems, archiving may physically move the message into another folder.
Backups and replicated storage further complicate the word “deleted.” Production systems need time to remove data safely from replicas and backups while preserving disaster recovery. Privacy policies and legal requirements define the intended lifecycle.
Worked examples
Example 1: a message from alice.com to bob.net
Alice’s app submits the message to smtp.alice.com. That server queries DNS for bob.net’s MX record, learns that mx1.bob.net handles mail, connects over SMTP, negotiates TLS, offers the envelope sender and Bob’s address, transfers the message and receives a success code. Bob’s provider filters the message and stores it. Bob later reads it in webmail. At no point did Alice’s laptop need a direct connection to Bob’s laptop.
Example 2: temporary delivery failure
Bob’s mail server is offline for maintenance. Alice’s server receives a temporary failure and keeps the message in its queue. It retries after several minutes and succeeds. Alice may never notice the delay because store-and-forward delivery absorbed the outage.
Example 3: invalid recipient
Alice sends to bobb@bob.net, but that mailbox does not exist. Bob’s receiving server rejects the recipient with a permanent error. Alice’s server returns a delivery-status notification explaining that the address failed.
Example 4: forwarding breaks SPF
Carol forwards mail from old.example to new.example. A message originally sent by alice.com arrives at the forwarding server from an authorized Alice server, so SPF passes there. The forwarding server then sends it onward from its own IP address, which may not appear in alice.com’s SPF record. DKIM may still validate because the original signature survives, illustrating why multiple authentication methods exist.
Example 5: BCC
A school sends one announcement to 300 parents using BCC. The SMTP envelope contains all 300 recipient addresses, but the visible To header might contain only the school address. Each parent receives a copy without seeing the other parent addresses.
Example 6: delayed attachment
A large attachment causes a message to exceed the receiver’s size limit. The sending server receives a permanent rejection and returns a bounce. Uploading the file to cloud storage and sending a link reduces message size and may succeed.
Misconceptions and diagnostics
Misconception: pressing Send means the recipient received it
Send means your client submitted the message. Final delivery may still fail, be delayed, land in spam or be rejected by the destination server.
Misconception: From proves who sent the message
The visible From header can be forged unless authentication and trust checks support it. SPF, DKIM and DMARC provide stronger evidence about domain identity.
Misconception: deleting locally always deletes everywhere
With synchronized mailboxes, deletion behavior depends on protocol and folder semantics. A POP client may keep an independent local copy, while IMAP deletion can synchronize across devices.
Misconception: TLS makes email fully private
Transport TLS protects each network hop but normal providers can still access message content. End-to-end encryption requires a different key model.
Diagnostic: mail from one domain never arrives
Check DNS, MX records, spam quarantine, authentication results, blocklists and sending-server logs. A domain-specific failure often points to routing or reputation rather than a broken mailbox.
Diagnostic: mail appears on phone but not desktop
Compare account configuration. One device may be using POP while another uses IMAP, or one may have local filtering rules. Synchronization problems are usually protocol or state problems rather than lost messages.
Practical applications
Personal communication
Email remains useful for asynchronous messages that do not require both people to be online at once. Searchable archives and attachments make it suitable for durable communication.
Business workflows
Invoices, approvals, support requests and notifications often travel through email. Systems generate messages automatically and can receive replies into ticketing or customer-management platforms.
Identity recovery
Many online services use email links for account verification and password recovery. This makes the email account itself a high-value security asset that should use strong authentication.
Automation
Applications send transactional messages through email APIs while inbound parsers can turn replies into database updates, support tickets or workflow actions.
Frequently asked questions
What does SMTP do?
SMTP transfers outgoing mail between clients and servers or between mail servers. It is the main delivery protocol of internet email.
What does IMAP do?
IMAP lets clients synchronize and work with messages stored on a server, making it suitable for multiple devices.
What does POP do?
POP retrieves mail from a server, traditionally by downloading messages to one client. It offers less synchronized mailbox behavior than IMAP.
What is an MX record?
An MX record is a DNS record that tells sending servers which hosts accept email for a domain.
Why does email go to spam?
Filters consider sender reputation, authentication, recipient behavior, content, links and many other signals. There is no single universal spam keyword.
Can someone fake an email address?
The visible From field can be spoofed, but modern receiving systems use SPF, DKIM, DMARC and reputation to judge whether the message is legitimately associated with that domain.
Why is email sometimes delayed?
Temporary server outages, greylisting, rate limits, DNS problems and network congestion can cause queued retries.
What is a bounce?
A bounce is a delivery-status message indicating that an email could not be delivered, often including an SMTP error code and explanation.
What is BCC?
BCC adds recipients to the delivery envelope without exposing their addresses in the visible recipient list sent to other recipients.
What is a read receipt?
A read receipt is a request for the recipient’s mail client or server to report that a message was opened. Recipients or systems can ignore it, so it is not guaranteed proof of reading.
Why are remote images blocked?
Loading a remote image can tell the sender that a message was opened and reveal network metadata. Clients may block images to reduce tracking and security risk.
What is an email alias?
An alias is another address that routes to an existing mailbox or group. It can provide role-based addresses without separate accounts.
Can email be end-to-end encrypted?
Yes, using systems such as S/MIME or OpenPGP, but both sender and recipient need compatible key management and software.
Why do replies sometimes create a new thread?
Threading depends on Message-ID references and subject heuristics. Broken headers or changed subjects can cause clients to separate messages.
Is email instant?
It often arrives in seconds, but the protocol is asynchronous and tolerant of retry delays. Email is designed for eventual delivery, not guaranteed real-time transport.
Big picture: email is a federation of cooperating servers
The deepest idea is that email works because independent domains agree on open standards. No single company owns the global email network. One provider can send to another because DNS identifies destinations, SMTP transfers messages, standardized headers describe content and mailbox protocols synchronize user access. Authentication layers such as SPF, DKIM and DMARC were added later to strengthen identity in an environment where the original protocols trusted senders far more than today’s internet can.
Once this model is clear, everyday behavior becomes easier to explain. A message can be delayed because servers queue and retry. Spam filtering can happen after successful delivery. BCC works because envelope recipients differ from visible headers. Forwarding can disrupt SPF because the sending IP changes. Attachments grow because binary data is encoded. Email is old technology, but its continuing usefulness comes from the durability of its open, distributed architecture.
Useful routes for deeper learning
- Tell Me About the Internet — understand DNS, servers and network routing underneath email.
- Tell Me About Cloud Computing — see how modern mail providers run scalable infrastructure.
- Tell Me About Cryptography — the foundations of TLS, DKIM and end-to-end encryption.
- Tell Me About Postal Systems — a physical-world comparison for addresses, routing and delivery.
- RFC 5321: Simple Mail Transfer Protocol — the external technical standard for SMTP.
