Self-host Haraka
v3.4.0Extensible Node.js SMTP server and mail filtering MTA
docker run -d <imageid>- 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
PostalPostal is an open-source mail delivery platform you self-host for transactional e-mail, with SMTP and HTTP sending, DKIM signing, webhooks and incoming mail routing.ComparePostal with Haraka
spameaterSpamEater is a self-hosted disposable email service creating temporary inboxes on your domain that auto-delete after 24 hours with AES-256 encryption and ModSecurity WAF.Comparespameater with Haraka
Hermes-Secure-Email-GatewaySelf-hosted email security gateway and mail server with spam filtering, encryption, DKIM/DMARC/ARC, Dovecot mailboxes, Nextcloud, and Authelia SSO in one Docker stack.CompareHermes-Secure-Email-Gateway with Haraka
wildduckWildDuck is a self-hosted, open-source IMAP/POP3 mail server backed by sharded MongoDB, with stateless instances, 2FA and full REST API control.Comparewildduck with Haraka
MoxOpen-source, self-hosted all-in-one email server with SMTP, IMAP4, webmail, junk filtering and automatic ACME TLS, set up for your own domain via quickstart.CompareMox with Haraka
docker-mailserverSelf-hosted, open-source mail server image (Postfix, Dovecot, Rspamd, ClamAV, Fail2ban) with SMTP, IMAP, LDAP and OAuth2 login, configured by files only.Comparedocker-mailserver with Haraka
mailezA self-hosted email platform with SMTP, IMAP, POP3, CardDAV, CalDAV, a React webmail client, and admin console — all deployed via a single Docker Compose command.Comparemailez with Haraka
forsaken-mailForsaken-Mail is a self-hosted, open-source disposable email service for receiving mail at temporary addresses on your own domain with a web UI and built-in SMTP server.Compareforsaken-mail with Haraka
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 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.
More in Mail Server
Hermes-Secure-Email-GatewaySelf-hosted email security gateway and mail server with spam filtering, encryption, DKIM/DMARC/ARC, Dovecot mailboxes, Nextcloud, and Authelia SSO in one Docker stack.
hestiaOpen-source, self-hosted control panel for Debian and Ubuntu servers: manage web domains, mail, DNS zones, databases and free SSL from one dashboard.
iRedMailiRedMail is a self-hosted, open-source mail server bundling Postfix, Dovecot, Roundcube, SOGo, and anti-spam tools into a reproducible installer for Linux and BSD.
jolimailSelf-hosted open-source alternative to SendGrid and Mailgun. Create and preview email templates in the browser using MJML, with PostgreSQL storage and SMTP integration.
Maddy Mail Server✉️ Composable all-in-one mail server.
Mail HubSelf-hosted temporary email aggregator unifying 10+ providers behind one REST API with auto-polling and code extraction.
Mail-in-a-BoxOpen-source, self-hosted mail server appliance: one script turns a fresh Ubuntu 22.04 VPS into a full mail stack with webmail, spam filtering, DNS and a control panel.
MailuSelf-hosted open-source Docker-based mail server providing IMAP/SMTP services, webmail access, and admin interface. Replaces complex groupware setups.
MoxOpen-source, self-hosted all-in-one email server with SMTP, IMAP4, webmail, junk filtering and automatic ACME TLS, set up for your own domain via quickstart.
OpenSMTPDOpenSMTPD is a free, open-source SMTP server for Linux, BSD, and macOS with TLS and privilege separation.
PostalPostal is an open-source mail delivery platform you self-host for transactional e-mail, with SMTP and HTTP sending, DKIM signing, webhooks and incoming mail routing.
Postfix AdminOpen-source, self-hosted web interface for administering Postfix mail servers: virtual domains, mailboxes, aliases, quotas, DKIM keys, TOTP logins and fetchmail.
0 comments