Back to services

Courier MTA

Fast, scalable, enterprise mail/groupware server providing ESMTP, IMAP, POP3, webmail, mailing list, basic web-based calendaring and scheduling services.

View alternatives to Courier MTA
Suggest edit
Open source
Self-hostable
GPL-3.0
Recent reviews

Alternatives

Tech stack

No tech stack added yet. Sign in to suggest some

Overview

Courier Mail Server (Courier MTA) is an open-source mail transfer agent (MTA) written by S. Varshavchik and released under the GNU GPL license. It combines ESMTP, IMAP, POP3, webmail (SqWebMail) and mailing list management in a single framework, and each component can be enabled or disabled independently as needed. The webmail module also includes basic calendar and scheduling features.

It can be used purely as a relay server between an internal network and the Internet, as a server that accepts mail for multiple domains and delivers it directly to user mailboxes, or as anything in between.

Key Features

  • Complete mail server stack: built-in ESMTP, POP3, IMAP and HTTP webmail servers
  • IMAP/POP3 aggregating proxy: mailboxes can be spread across multiple servers, and the proxy forwards each connection to the right back end based on the mailbox that logs in
  • Multi-IP virtual configuration: if a server has several IP addresses, each one can appear to be a separate mail server
  • Native Maildir storage: Maildir is the native storage format, with only partial support for the traditional mbox format
  • Security features:
    • STARTTLS and SSL support
    • Can require remote servers to present a certificate issued by a trusted CA
    • Experimental secure delivery channel between domains using a private CA
    • SPF validation
    • Closed relay by default
  • Anti-spam and filtering: DNS blacklists with whitelist exemptions, plus an API for external mail filters; users can define their own filtering rules with maildrop
  • ESMTP extensions: AUTH, PIPELINING, DSN, SIZE, 8BITMIME, XVERP, XEXDATA, and support for the RFC 2476 message submission protocol
  • Multiple authentication back ends: PAM, LDAP, MySQL, PostgreSQL, with support for virtual mail accounts and LDAP-based mail routing
  • Mailing list manager: built in, with fully automatic bounce handling
  • Other gateways: experimental mail-to-fax gateway, UUCP gateway, and SOCKSv5 outbound support
  • Web administration interface: most configuration can be adjusted from a browser

Target Users and Use Cases

It is suited to system administrators, ISPs, businesses and organizations that need to run their own mail system, especially where virtual domains, multi-domain hosting, or LDAP/database account management are required. It is also a good fit for users migrating from sendmail or Qmail: it can import most sendmail aliases files and Qmail .qmail files, although compatibility is not complete.

Modular Components

Courier's IMAP server, SqWebMail and maildrop mail filter are also distributed as standalone packages and can be used with other mail servers that use Maildir. The authentication library is Courier Authlib.

Installation and Technical Requirements

It is installed by compiling from source and runs on most POSIX systems based on Linux and BSD kernels; it can also be built on Solaris and AIX with the appropriate tools. The requirements are:

  • A C++ compiler (most of the code is C, with some C++)
  • GNU make
  • GDBM (recommended) or Berkeley DB
  • Perl 5
  • A filesystem that supports FIFOs and domain sockets (AFS is not supported)
  • OpenSSL for TLS features

By default it installs to /usr/lib/courier, and every directory can be relocated. For example, the RPM packages put configuration in /etc/courier and the mail queue in /var/spool/courier. Configuration files are plain text files and Perl scripts.

Notable Characteristics

  • Strict RFC compliance: rejects messages whose headers contain raw 8-bit characters or malformed MIME headers, and does not deliver to domains with misconfigured MX records
  • Unsupported features: ETRN (explicitly stated that it will not be implemented) and a header rewriting scripting language (the rewriting rules are hard-coded in the C code)
  • Scheduler design: can limit the number of concurrent deliveries to the same host, restarts itself periodically to reduce memory fragmentation, and automatically cleans up empty directories in the mail queue