selfhost.directory

The index of self-hostable projects — ranked, categorized and served with live updates.
Own your data and stop giving it to big tech.

Haraka logo

Self-host Haraka

v3.4.0

Extensible Node.js SMTP server and mail filtering MTA

ReleaseOpen SourceMIT
docker run -d <imageid>
Updated3 days ago
LanguageJavaScript
Setup difficultyModerate
Stars
5 634
Port
25 (SMTP listener (smtp.ini default ::0:25))

What is Haraka?

Haraka is a Node.js SMTP server whose behaviour is shaped almost entirely through JavaScript plugins: each stage of an SMTP conversation exposes a hook, so custom mail policy usually ends up being a tiny file instead of a bespoke mail transfer agent. It is typically run as a fast filtering MTA in front of an existing mail platform, or as a message submission host on port 465 (or legacy 587) once DKIM signing and SMTP auth are switched on. Anti-abuse tooling comes from its plugin registry — DNS blocklists, HELO checks, SpamAssassin and rspamd scoring, ClamAV virus scanning, greylisting and Redis-backed policy — and anything flagged for relaying is passed to a built-in outbound delivery engine. Haraka does not store mail and offers no LDA or IMAP service, so it is meant to be paired with those systems. Running it yourself means installing the npm package globally, generating a config directory with haraka -i, adding your domains to config/host_list, choosing plugins in config/plugins and starting the daemon with haraka -c; a community-contributed Dockerfile can build a container image, but the maintainers state it is not officially supported. Haraka is MIT-licensed, has been under active development since 2011 and currently ships 3.x releases.

Haraka alternatives

Should you self-host Haraka?

Haraka scores 67/100 on selfhost.directory (how scoring works) and ranks #6 of 16 in Mail Server. It has 5 634 GitHub stars, +22 in the last 30 days.

It shipped 14 stable releases in the past year. The latest, v3.4.0, came out on 5 November 2026. New versions land roughly every 2 weeks.

Setup is moderate: expect some configuration beyond a single command. It is MIT-licensed and written mostly in JavaScript.

Its closest alternative on selfhost.directory is Stalwart Mail Server (79/100, 15 788 stars). It scores higher overall, so compare the two before you pick. See Haraka vs Stalwart Mail Server side by side.

Features

  • Daemon operation with privilege dropping
  • Extensible plugin system
  • High concurrency throughput
  • Message spooling to disk
  • Multi-process cluster mode
  • Outbound mail delivery engine
  • Queue backends
  • SMTP submission with auth and DKIM
  • Spam Filtering
  • STARTTLS for SMTP auth

Haraka README

Haraka — a Node.js Mail Server

Build Cover Qlty OpenSSF

Haraka is a highly scalable Node.js SMTP server with a modular plugin architecture. It handles thousands of concurrent connections and delivers thousands of messages per second. Haraka and its plugins are written in asynchronous JavaScript, optimised for throughput and low latency.

Haraka offers strong spam protection (see Plugins.md) and is widely deployed as a filtering MTA or as a MSA on port 465 (and legacy 587) with the auth and DKIM plugins enabled.

How to install Haraka

Install Haraka with Docker

git clone https://github.com/haraka/Haraka.git
cd Haraka && docker build .
docker run -d <imageid>

The Dockerfile is user-contributed and not officially supported by the Haraka team; the image exposes port 25 and config/host_list must be edited before building.

How to configure Haraka

  • listen::0:25Comma-separated IP:Port pairs to listen on.
  • nodes1Number of processes to fork; the string "cpus" forks one per CPU.
  • userUser (name or UID) Haraka drops privileges to.
  • groupGroup (name or GID) Haraka drops privileges to.
  • ignore_bad_pluginsKeep starting when a plugin fails to compile instead of aborting.

Haraka releases & version history

@ Every self-hosted release, weekly

One Monday email with the week's stable releases across the directory.

More in Mail Server

Rate this project

Click to rate — no account needed.

0 comments

Posting as guest
Loading comments…