Webiano Digital & Marketing Agency
Webiano Digital & Marketing Agency
  • Home
  • About Us
  • Services
    • Strategy
    • Digital Platforms
    • Performance
    • Communication
    • Infrastructure
    • Consulting
    • Education
    • All Services
  • Clients
  • Insights
    • Agency Journal
    • AI Search & Discoverability
    • Artificial Intelligence
    • Brand Positioning & Authority
    • Digital Platforms
    • Infrastructure & Security
    • Performance & Digital Marketing
    • Linux & Open Source
    • Visual Content & Production
    • Digital Work & Society
    • Web Radar
    • Robotics & Embodied AI
    • All Insights
  • FAQ
  • Knowledge base
  • Contact
Menu
  • Home
  • About Us
  • Services
    • Strategy
    • Digital Platforms
    • Performance
    • Communication
    • Infrastructure
    • Consulting
    • Education
    • All Services
  • Clients
  • Insights
    • Agency Journal
    • AI Search & Discoverability
    • Artificial Intelligence
    • Brand Positioning & Authority
    • Digital Platforms
    • Infrastructure & Security
    • Performance & Digital Marketing
    • Linux & Open Source
    • Visual Content & Production
    • Digital Work & Society
    • Web Radar
    • Robotics & Embodied AI
    • All Insights
  • FAQ
  • Knowledge base
  • Contact
Home » Knowledge base » Internet » Email infrastructure » Dovecot

Dovecot

6 min read · 8 sections

In short

Dovecot is an open-source IMAP and POP3 server that stores mailboxes, authenticates users and delivers messages within email infrastructure.

On this page 8
  1. How Dovecot is structured internally
  2. Mailbox formats and index files
  3. Authentication, delivery and the Sieve filter
  4. How Dovecot compares with related email components
  5. Scaling, replication and protocol extensions
  6. Common configuration mistakes
  7. Stripped to the essentials
  8. Where it is applied

Dovecot is an open-source mail server that gives users access to their stored mailboxes over IMAP and POP3, and that can also deliver incoming messages into those mailboxes through its LMTP service and local delivery agent. In email infrastructure it occupies the mailbox side of the system: a mail transfer agent such as Postfix or Exim moves messages between domains, while Dovecot stores them, indexes them and serves them to email clients.

Dovecot is one of the most widely deployed IMAP servers on the Internet, used by hosting providers, universities, internet service providers and single-domain administrators. Its reputation rests on index-based performance, a security-conscious process design and a flexible authentication subsystem that other components, including Postfix, can reuse for SMTP authentication.

How Dovecot is structured internally

Dovecot runs as a master process that starts and supervises a set of specialized services, each with minimal privileges. Network-facing login processes handle the unauthenticated phase of a connection, including TLS negotiation, and only after successful authentication does the master hand the connection to a mail process that runs as the user who owns the mailbox.

This privilege separation limits the damage an attacker can cause through a flaw in protocol parsing, because the code that faces anonymous clients cannot read anybody’s mail. The following table summarizes the main services and their roles.

ServiceRoleTypical privilege
imap-login / pop3-loginAccept connections, negotiate TLS, collect credentialsUnprivileged, chrooted
authVerify passwords and look up user dataDedicated auth user
imap / pop3Serve mailbox operations after loginThe mailbox owner
lmtpReceive messages from the MTA and store themThe recipient user
indexer-workerBuild full-text search indexesThe mailbox owner
doveadm-serverAdministrative and replication commandsPrivileged, local or restricted
Core Dovecot services and their responsibilities

Configuration lives in dovecot.conf and an included conf.d directory, with each service, protocol and authentication method set in its own block. The doveadm tool exposes administrative functions such as mailbox inspection, quota recalculation, index repair and user lookups from the command line.

Mailbox formats and index files

Dovecot supports several mailbox storage formats, and the choice affects performance, backup strategy and compatibility with other software. All formats are accelerated by Dovecot’s own index, cache and log files, which store message flags, sizes and frequently requested header fields so that most client requests are answered without opening the message files.

FormatStorage modelBest suited to
mboxAll messages of a folder in one fileLegacy systems and migrations
MaildirOne file per message, flags in file namesInteroperability with other tools
sdboxOne file per message, Dovecot metadataSingle-server deployments
mdboxSeveral messages per file, central storageLarge installations with many messages
Object storage backendsMessages kept in a distributed object storeVery large commercial platforms
Mailbox formats supported by Dovecot

Because indexes are rebuildable, a damaged index file usually causes slower access rather than data loss, and doveadm force-resync regenerates it. The dbox formats, however, depend on Dovecot’s metadata, so they should not be edited by other programs, while Maildir remains readable by many unrelated tools.

Authentication, delivery and the Sieve filter

The authentication subsystem separates two questions: whether the credentials are valid, answered by a passdb, and where the user’s mail lives, answered by a userdb. Both can draw on system accounts, flat password files, SQL databases, LDAP directories or external services, and passwords can be stored with strong schemes such as SHA512-CRYPT or Argon2.

Postfix can query Dovecot over a local socket for SMTP AUTH, so a single user database controls both submission and mailbox access. For incoming mail, the MTA hands each message to Dovecot through LMTP or the dovecot-lda program, which makes Dovecot the mail delivery agent in the chain and allows quota checks and filtering at delivery time.

Server-side filtering uses the Pigeonhole Sieve implementation, which runs user and administrator scripts at delivery to file messages into folders, reject or forward them, or send vacation replies. Users edit their scripts through the ManageSieve protocol, typically from a webmail interface.

How Dovecot compares with related email components

Dovecot is often confused with a complete mail server, but it does not relay mail between domains. A working mail system combines it with an MTA, a spam filter and DNS records such as SPF, DKIM and DMARC; the table below places Dovecot among its neighbors.

ComponentMain functionRelationship to Dovecot
DovecotMailbox storage and IMAP/POP3 accessThe component itself
Postfix or EximSMTP transfer between serversHands incoming mail to Dovecot via LMTP
Cyrus IMAPAlternative mailbox serverDirect competitor with its own storage model
Spam filterScores and rejects unwanted mailRuns before delivery, often in the MTA
Email clientReads and sends mail for the userConnects to Dovecot over IMAP
WebmailBrowser-based clientActs as an IMAP client of Dovecot
Dovecot and neighboring email infrastructure components

Compared with Cyrus, Dovecot is generally regarded as simpler to configure and more tolerant of mixed storage formats, while Cyrus offers its own murder clustering and integrated calendaring features.

Scaling, replication and protocol extensions

Dovecot scales from a single small server to platforms with millions of mailboxes. Small deployments run every service on one host, while large ones place Dovecot proxies in front of backend servers so that each user is routed consistently to the backend that holds the mailbox, which keeps index files consistent.

The dsync replication tool synchronizes mailboxes in both directions between two servers and is also used for migrations from other IMAP servers. Dovecot implements many IMAP extensions, including IDLE for push notifications, CONDSTORE and QRESYNC for fast resynchronization, and server-side full-text search through plugins.

  • IDLE keeps a connection open so clients see new mail within seconds.
  • QRESYNC lets a reconnecting client fetch only changed messages.
  • Quota plugins enforce storage limits and report them to clients.
  • Push notification plugins inform mobile services about new messages.

Common configuration mistakes

Most Dovecot problems come from permissions, authentication and TLS settings rather than from the software itself. The following table lists frequent symptoms with their causes and remedies.

SymptomLikely causeFix
Login fails with valid passwordpassdb and password scheme mismatchAlign the scheme prefix and test with doveadm auth test
Permission denied on mailboxWrong mail_uid or file ownershipCorrect ownership and the userdb uid values
Clients warn about certificatesExpired or incomplete certificate chainInstall the full chain and reload
Plaintext logins accepteddisable_plaintext_auth not enforcedRequire TLS before authentication
Slow folder openingCorrupted or missing index filesRun doveadm force-resync
Typical Dovecot problems and fixes

A further risk is running outdated major versions. Dovecot 2.4 changed parts of the configuration syntax, so upgrades should be tested on a copy of the configuration with doveconf before production servers are switched.

Stripped to the essentials

Think of email as a postal system. The SMTP servers are the trucks that carry letters between towns. Dovecot is the post office box room: it keeps each person’s letters in a locked box, sorts them into folders and hands them over when the owner arrives with the right key.

Whenever a phone or laptop shows your inbox, it is usually talking to a program like Dovecot. It stores the mail, checks who you are and keeps every device in sync, so a message read on the phone also appears as read on the computer.

Where it is applied

A regional web hosting company runs mail for about 4,000 customer domains. Postfix receives messages on port 25, passes them through a spam filter and hands them to Dovecot over LMTP. Dovecot stores the mail in the mdbox format on a shared storage array, checks quotas of 5 to 50 GB per mailbox and runs customer Sieve rules that file newsletters and send vacation replies.

Customers connect from phones and desktop clients over IMAP on port 993, and the company’s webmail also talks to Dovecot over IMAP. Postfix authenticates outgoing submission on port 587 against the same Dovecot user database. When the company moved off an aging server, it used dsync to copy every mailbox with flags intact, and customers noticed no change apart from faster folder loading.

Published November 27, 2026

Filed under

  • Internet

    Subject

  • Email infrastructure

    Topic

Growth is engineered, not improvised.

All rights reserved © 2002–2026 | Webiano Digital & Marketing Agency

Social Media

  • Facebook
  • LinkedIn
  • YouTube

GDPR, Privacy and Cookies Policy

Copyright and Content Use Policy

Webiano Code of Ethics

  • Slovakia
  • Czechia
  • Europe
  • Global

Daily News & Insights via RSS