Skip to content

Haraka

Plugin-based SMTP server in Node.js for filtering, relaying and sending mail at volume

Permissive (OSI) · MIT
  • Self-hosted
  • macOS
  • Linux
  • CLI

Listed by , founder & editor

84

Health

Thriving

Overview

Stars

5,641

Last commit

today

Nov 2026

Repository age

15 years

since Mar 2011

Latest version

v3.4.2

Nov 2026

Contributors

–

5 active in 90 days

Releases

16

last 12 months

Language

JavaScript

Haraka is an SMTP server written in asynchronous JavaScript on Node.js. It is built around plugins. Every step of an SMTP transaction, such as connect, rcpt, data and queue, is a hook that you can extend with a short piece of code.

You can run it as a filtering MTA in front of another mail system, or as a submission server with the auth and DKIM plugins enabled. It has a built-in outbound delivery engine, and mail flagged as relaying is queued for delivery automatically. Plugins cover DNS blocklists, SpamAssassin, rspamd, ClamAV, Redis and several queue backends.

Haraka is not a mail store, an LDA or an IMAP server. It sits alongside those systems. You install it with npm, create a service directory with the haraka command, list your domains in config/host_list and start it. A Docker image and a Homebrew formula exist, and it runs on Linux and macOS under the MIT license.

It has no single commercial product it replaces. It fits where you would otherwise pay for a hosted mail gateway or filtering service, or write a custom MTA.

Who it's for

Developers who need custom SMTP behavior

Writing a hook in JavaScript is quicker than patching a traditional MTA.

Skip if: you want a standard mailbox server with IMAP and webmail included.

Operators of high-volume mail pipelines

It is designed for thousands of concurrent connections and has a built-in outbound queue.

Skip if: you send only a few messages and a hosted relay is enough.

Admins who filter spam in front of Exchange or IMAP backends

It can accept, screen and forward mail to the existing backend.

Skip if: your current gateway already meets your filtering needs and you do not know Node.js.

The problem it solves

You need an SMTP server you can change at each step of a mail transaction, without forking a large MTA. Hosted filtering and sending services are fixed in what they allow. Haraka lets you add the rules you need as small plugins.

Strengths

  • Hook system covers connect, helo, mail, rcpt, data and queue stages
  • Built-in outbound delivery queues relayed mail automatically
  • Plugins for rspamd, SpamAssassin, ClamAV, DKIM, Redis and DNSBLs
  • MIT license, with 14 releases in the past year
  • Runs from npm, Docker or source on Linux and macOS

Trade-offs

  • Not a mail store or IMAP server; you need other software for mailboxes
  • Needs Node.js knowledge for anything beyond the stock plugins
  • Configuration is file-based, with no graphical admin interface

Self-host Haraka

Self-hostable
Yes

Quick start

npm install -g Haraka

From the project's own install instructions. Check the docs for production settings.

Frequently asked questions

Is Haraka free?

Yes. It is released under the MIT license.

Can it host mailboxes?

No. It is not a mail store, LDA or IMAP server, so you pair it with one.

How do I install it?

Run npm install -g Haraka, then create a service directory with haraka -i and start it with haraka -c. A Docker image is also available.

Which platforms does it run on?

It runs on Linux and macOS, and a Homebrew formula is available.

Similar tools in Email software

forsaken-mail

Email software

Self-hosted disposable email inbox with instant mailboxes and no sign-up

1.5k 511 28 days ago Slowing GPL-2.0

Mailcow

Email software

Docker-based mail server suite with SOGo webmail for admins who run their own domain

14k 1.9k 4 days ago Thriving GPL-3.0

Replaces Yahoo! MailYandex MailGmail +1

docker-mailserver

Email software

Containerized mail server built on Postfix and Dovecot, configured with plain files

20k 2.1k today Thriving MIT

Replaces Gmail

FairEmail

Email software

Android email client for people who want privacy and many accounts in one inbox

4.8k 714 3 days ago Active GPL-3.0

Replaces Microsoft Outlook

Proton Mail Bridge

Email software

Desktop app that lets Outlook, Thunderbird and Apple Mail read Proton Mail over IMAP

1.6k 254 17 days ago Active GPL-3.0