Fast and scalable email services based on storage of messages in a database. Robust support for IMAP4r1, POP3, LMTP, MANAGESIEVE. Fully normalised decomposition of messages into headers and mimeparts. Mimeparts are stored in a single-instance paradigm, preventing unnecessary duplication. Also supports a scalable connection pool to limit the database connection load under high concurrencies.