An MDA takes the message from the MTA and stores it in the user’s mailbox: in a Maildir directory or another storage format. After that, the message is visible to the mail client over IMAP or POP3.
What an MDA does
In the email architecture (RFC 5598), delivery is the handover of responsibility from the message transfer system to the recipient’s environment, that is, to their mailbox. Because it knows the destination address, an MDA can do work that depends on the recipient.
| Task | Example |
|---|---|
| Storing | writing the message to the mailbox’s Maildir |
| Filters | Sieve rules: sorting into folders, auto-reply |
| Quotas | rejection if the mailbox is full |
| Address check | rejection for a non-existent recipient |
How the MTA and MDA connect
The MTA hands the message to the MDA in one of two ways: it runs a program on the local machine, or it connects over the network using the LMTP protocol. With Postfix and Dovecot the second way is used: Postfix sends the message to Dovecot’s LMTP service, which stores it in the mailbox itself. Delivery inside a server has nothing in common with transfer between servers: it does not use MX records and is never a relay hop.
# Postfix main.cf: hand messages to Dovecot over LMTPvirtual_transport = lmtp:unix:private/dovecot-lmtpSources
the term is written from these pagesVerified 9 Nov