# Haraka

Haraka is an open-source, high-performance SMTP mail transfer agent (MTA) written in Node.js.

Canonical page: https://ourlocalhost.com/app/8510/haraka

## Description

Haraka is an open-source, high-performance SMTP mail transfer agent (MTA) written in Node.js. It sends, receives, and filters email using a modular JavaScript plugin system that covers authentication, DKIM signing, spam protection, and custom scripting. It is designed to pair with a separate mail store and IMAP/POP3 service, not to replace them. Homelab and production users who want a fast, scriptable MTA without the bulk of a full mail suite will find Haraka a lean, extensible option.

## Platform availability

Available on 1 of 10 platforms: Any server.

## Health score

76/100 (Good), based on 4 of 5 factors.
- Maintained: 100 (last commit 1 day ago)
- Popular: 75 (5,639 GitHub stars)
- Easy to install: 25 (1 install platform, install notes)
- Security check: 81 (no serious findings, 1 minor, CI, tests, OpenSSF Scorecard 6.8/10)

## Links

- Official website: https://haraka.github.io/
- GitHub: https://github.com/haraka/Haraka
- Documentation: https://haraka.github.io/getting_started

## Common questions

### Does Haraka store mail or provide IMAP by itself?

No. Haraka is an SMTP server, not a mail store, LDA, or IMAP server. It is designed to work alongside a separate mail store and IMAP/POP3 service.

### What files are needed before Haraka can be configured?

Run haraka -i in a new directory after installing Haraka with npm. This creates the config/ and plugins/ directories, sets the host name, and gives you config/host_list for accepted mail domains.

### Which ports and plugins are used for authenticated sending?

Enable the auth and DKIM plugins. Haraka can be run as an MSA on port 465 or legacy 587 with those plugins enabled.

### How does Haraka handle outbound mail for relayed messages?

Haraka has a built-in outbound delivery engine that automatically queues mail marked as relaying. An auth plugin can mark a message as relaying to trigger this.

### How can Haraka keep running after logout or reboot?

Enable daemonize in smtp.ini and install the service file so Haraka starts automatically after reboot. Without this, Haraka stops when you log out or the machine restarts.

## Alternatives

- Mail-in-a-box: Easy-to-deploy mail server.

---
Source: Our Local Host (https://ourlocalhost.com/app/8510/haraka), the self-hosted and open-source app directory.
