Bookmarks

MDA — mail delivery agent

A program that puts an accepted message into the recipient’s mailbox. It is the last step of a message’s path inside a mail server.

Also: local delivery agent, MDA

checked 9 Nov

All terms

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.

TaskExample
Storingwriting the message to the mailbox’s Maildir
FiltersSieve rules: sorting into folders, auto-reply
Quotasrejection if the mailbox is full
Address checkrejection 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.

ini
# Postfix main.cf: hand messages to Dovecot over LMTPvirtual_transport = lmtp:unix:private/dovecot-lmtp

Sources

the term is written from these pages

Verified 9 Nov

Not to be confused with

what it is mixed up with and how it differs

  • MTAmail transfer agent

    An MTA transfers the message between servers, while an MDA stores it in the recipient’s mailbox.

  • MUAmail user agent

    A MUA is the user’s program that reads messages once they have been delivered.

In depth in the references

where the topic is covered in detail