Back to services

chasquid

SMTP (email) server with a focus on simplicity, security, and ease of operation.

View alternatives to chasquid
Suggest edit
Open source
Self-hostable
Apache-2.0
Recent reviews

Alternatives

Tech stack

No tech stack added yet. Sign in to suggest some

Introduction

chasquid is an SMTP (email) server designed with a focus on being simple, secure, and easy to operate. Like any MTA, it sends and receives email, and it can replace Postfix or Exim, mainly for individuals and small teams. The project is written in Go and released under the Apache License 2.0.

Key Features

Easy to use

  • Simple configuration, and it is hard to end up with harmful or insecure settings. For example, it will not become an open relay, and it does not allow plaintext authentication.
  • A built-in HTTP server for monitoring provides exported variables and request tracing, which makes troubleshooting easier.
  • Already integrated into the Debian, Ubuntu, and Arch distributions.
  • Can use Dovecot for user authentication.

Practical features

  • Supports multiple virtual domains, each with its own users and aliases.
  • Suffix dropping: user+something@domain is delivered to user@domain.
  • Provides hooks that can be used to plug in greylisting, antivirus, anti-spam, and DKIM/DMARC.
  • Supports internationalized usernames (SMTPUTF8) and internationalized domain names (IDNA).

Security features

  • Records the TLS support of remote servers on a per-domain basis, preventing connections from being downgraded.
  • Supports multiple TLS certificates.
  • Integrates easily with Let's Encrypt. The certificate directory structure is the same as certbot's, and the directory structure of the NixOS ACME module is also supported.
  • Checks SPF and MTA-STS.

Target Users and Use Cases

Suited to individuals, families, or small teams who want to run their own mail service without dealing with the complex configuration of Postfix/Exim. A common setup is to combine it with Dovecot (IMAP and authentication), rspamd/SpamAssassin, ClamAV, and similar components to form a complete self-hosted mail system.

Installation

Debian / Ubuntu:

sudo apt install chasquid

Arch: You can use an AUR package (for example pacaur -S chasquid), and community-provided binary packages are also available.

Alpine (testing repository):

apk add chasquid

Build from source (requires a Go environment):

git clone https://blitiri.com.ar/repos/chasquid
cd chasquid
make
sudo make install-binaries
sudo make install-config-skeleton

The official documentation also includes instructions for Docker and HAProxy integration.

Configuration Highlights

  • Configuration lives in /etc/chasquid/ by default: chasquid.conf is the main configuration file, domains/ stores each domain's user database and aliases, and certs/ stores certificates.
  • You can symlink certs/ to /etc/letsencrypt/live to use certificates obtained with certbot directly.
  • Add a user: chasquid-util user-add user@domain.
  • View the resolved configuration: chasquid-util print-config.
  • Check your deployment: smtp-check yourdomain.com, which checks the MX and SPF records and the TLS certificate.
  • The default post-data hook script is located at /etc/chasquid/hooks/post-data. It supports greylisting with greylistd, anti-spam with SpamAssassin or rspamd, and antivirus with ClamAV. They can be used as long as these components are installed on the system.

Technical Requirements

  • A Linux server with access to port 25. Many ISPs block this port.
  • DNS records such as MX and SPF must be configured for your domain, and a TLS certificate must be prepared.
  • Building from source requires the Go toolchain.

Notable Characteristics

  • Lean in features and secure by default, lowering the barrier and the risk of running your own mail server.
  • The source code is hosted in the author's git repository, with mirrors on GitHub and GitLab. The community communicates through a mailing list and the IRC channel #chasquid on OFTC.