Back to services

DragonFly

A small MTA for home and office use. Works on Linux and FreeBSD.

View alternatives to DragonFly
Suggest edit
Open source
Self-hostable
BSD-3-Clause
Recent reviews

Alternatives

Tech stack

No tech stack added yet. Sign in to suggest some

Note: "DragonFly" here refers to DragonFly Mail Agent (dma for short). It is not the same project as the DragonFly BSD operating system or the Dragonfly in-memory database.

Overview

dma is a small Mail Transport Agent (MTA) designed for home and office use. It accepts mail submitted by a mail user agent (MUA) installed on the local machine or by system programs, and then delivers it either locally or to a remote destination. Remote delivery supports TLS/SSL encryption and SMTP authentication.

The developers state explicitly that dma is not intended to replace full-scale MTAs such as sendmail or Postfix. As a result, dma does not listen on port 25 and does not accept incoming mail connections from outside; it only sends out mail generated on the local machine.

Key Features

  • Local delivery: delivers mail to users on the local machine
  • Remote delivery: sends mail to remote mail servers
  • TLS/SSL support: can encrypt transmission during remote delivery
  • SMTP authentication: can relay mail through SMTP servers that require login
  • sendmail-compatible interface: can create sendmail and mailq links during installation, so programs that depend on the sendmail command can use it directly
  • Mail queue: includes its own spool directory for holding mail waiting to be delivered

Target Users and Use Cases

  • Users who need servers, NAS devices or workstations to send system notification emails (such as cron job output and monitoring alerts)
  • Administrators who want a lightweight alternative to sendmail or Postfix for handling outgoing mail from the local machine
  • Home and small office environments that need to relay mail through an external SMTP service (such as an email provider or a corporate mail gateway)

Core Strengths

  • Small and focused, with much simpler configuration than a full MTA
  • Does not expose port 25 externally, which reduces the attack surface
  • Included in the software repositories of several systems, including FreeBSD, Ubuntu and Arch, so it is easy to install

Installation and Deployment

Install via a package manager:

  • FreeBSD: pkg install dma
  • Ubuntu: sudo apt install dma
  • Arch Linux: yaourt -S dma (can be installed from the AUR)

Build from source:

On Linux:

make

On BSD:

cd bsd && make

Install:

make install sendmail-link mailq-link install-spool-dirs install-etc

This command installs the program itself, creates the sendmail/mailq links, sets up the spool queue directories and installs the configuration files. For dependency requirements and configuration options, see the INSTALL file in the source code.

Technical Requirements

  • Runs on Linux or BSD-like Unix systems
  • Building from source requires a standard toolchain such as make; see the INSTALL file for specific dependencies

References

  • FreeBSD manual page: man dma
  • The dma entry on the Arch Wiki
  • The MTA list on Awesome Selfhosted, where you can find other open-source MTAs for comparison

The project's author is Simon Schubert, and the source code is hosted on GitHub (corecode/dma).