
Haraka is an open source Node.js mail server that's designed to be highly scalable and flexible. It's written in JavaScript and uses the Node.js event-driven, non-blocking I/O model.
Haraka is a great option for developers who want to build custom mail servers or integrate mail functionality into their applications. It's highly customizable and can be easily extended with plugins.
One of the key features of Haraka is its ability to handle high volumes of email traffic. It's designed to be highly concurrent and can handle thousands of connections simultaneously.
Setup
Setting up Haraka is actually quite simple, even if you're not a tech expert. You can use a CLI tool and install it with NPM.
To get started, create a folder that Haraka will use to start the server. This is where things get interesting, but don't worry, the steps are straightforward.
You can use a free and simple TLS setup with ZeroSSL, but keep in mind that you'll need to rotate the certificates every 90 days. This might seem like a hassle, but there's a way to automate it.
Configuration and Management
Configuring Haraka is a straightforward process. You can choose which plugins run by editing the config/plugins file.
Plugins control the overall behavior of Haraka, so it's essential to understand which ones to enable or disable. By default, only messages to domains listed in config/host_list will be accepted and then delivered via the smtp-forward plugin.
To configure the destination, you'll need to edit the config/smtp_forward.ini file. This is where you specify the SMTP server to forward emails to.
Haraka's node.js dependencies need to be installed locally. This will ensure that the server can run smoothly without any issues.
For your interest: Anti-Spam SMTP Proxy
System and Requirements
Haraka (software) can run on a variety of operating systems, making it a versatile choice.
To get Haraka up and running, you'll need to meet its system requirements. Fortunately, it's relatively easy to set up.
Haraka can easily run on any major operating system that supports Node.js.
Here's a breakdown of the supported operating systems:
- MacOS
- Linux
- Windows
Usage and Functionality

Haraka is frequently used as a filtering MTA in front of other MTAs that lack the performance and/or filtering capabilities of Haraka. Craigslist uses Haraka to handle inbound and then forward validated connections to Postfix.
Bounce.io similarly uses Haraka to accept incoming messages and deliver them to their application engine. Mail Toaster 6 uses Haraka to accept incoming mail and forward to a qmail based message store.
Haraka can serve thousands of concurrent connections and deliver thousands of messages per second.
Typical Usage
Haraka is often used as a filtering MTA in front of other MTAs that lack its performance and/or filtering capabilities. This setup is commonly seen in production environments.
Craigslist uses Haraka to handle inbound mail and then forward validated connections to Postfix. This helps to ensure that Craigslist's email infrastructure is robust and reliable.
Bounce.io also uses Haraka to accept incoming messages and deliver them to their application engine. This allows Bounce.io to focus on their core business while Haraka handles the email processing.
Mail Toaster 6 uses Haraka to accept incoming mail and forward it to a qmail based message store. This setup helps to take advantage of Haraka's filtering capabilities.
Broaden your view: List of Email Archive Software
Check Functionality

To check if your SMTP server is working, you can use the swaks tool. This tool sends a test mail to a specified email address.
You can run a command with swaks to test your SMTP server, such as sending a test mail to [email protected] from [email protected] using example.com on secure port 587 with a specific username and password.
You'll need to use a service file with systemd for the Haraka process management, and you can use the service file provided to manage your Haraka process.
The service file requires you to change the /var/local/your-smtp-folder to the location where you've created the Haraka service.
Readers also liked: Software as a Service
Node.js Mail Server
Haraka is a highly scalable node.js email server that can serve thousands of concurrent connections and deliver thousands of messages per second.
It has a modular plugin architecture, which makes it very fast and allows for good spam protection. This is especially true when using plugins like auth and dkim_sign.
Haraka works well as a filtering MTA and as a MSA running on port 587 with auth and dkim_sign plugins enabled.
It's not meant to be a mail store or an IMAP server, but rather used in conjunction with such systems.
Mail marked as relaying is automatically queued for outbound delivery.
Plugins and Security
Haraka uses plugins to do almost everything, including sending emails. This means you'll need to install plugins to get started.
One of the first plugins you'll need is tls, which allows Haraka to use port 587 to send emails securely over TLS.
You'll also need the auth/flat_file plugin for user credentials management. However, it's worth noting that this plugin is not recommended for production use, and you should consider using the auth-enc plugin instead.
To get started with plugins, you'll need to install the required ones. Here are the two plugins you'll need to send emails:
- tls
- auth/flat_file
Running
To run Haraka, you'll need to create a service that sets up the necessary directories and host name. This involves creating a directory called haraka_test with config and plugin directories within.
The host name used by Haraka is set to the output of the hostname command. If this is not correct, you'll need to edit the config/host_list file to specify the host name.
To start Haraka, you'll need to use root permissions and run the command haraka -c /path/to/config. This will get Haraka up and running.
Alternatively, you can run Haraka from a git repository by cloning the repository and editing the config/plugins and config/smtp.ini files to specify the plugins and config you want to use.
Haraka Details
You may find the following links relevant. Haraka Details are not explicitly mentioned in the provided article section, so I'll assume you're looking for information about Haraka itself. Haraka is a software.
You can find more information about Haraka by following the links provided.
Featured Images: pexels.com


