Exim
Message transfer agent (MTA) developed at the University of Cambridge.
Alternatives
Tech stack
No tech stack added yet. Sign in to suggest some
Note: When this entry was written, the official website (https://www.exim.org/) could not be fetched. The content below is based on what is known with certainty about Exim. For details such as version numbers, please refer to the official website.
Introduction
Exim is a Mail Transfer Agent (MTA) originally developed by Philip Hazel at the University of Cambridge in the UK, and released as open source under the GNU GPL license. It runs mainly on Unix-like systems such as Linux and BSD, and handles receiving, routing and delivering email. Exim is widely deployed. It has long been the default MTA on Debian-based distributions (the package is named exim4), and many web hosting control panels also use it as their mail server.
Main Features
- Flexible routing and delivery: Routers decide where a message goes, and transports perform the actual delivery. Supported methods include local delivery, remote SMTP delivery, aliases, forwarding and pipe delivery.
- Access control lists (ACLs): You can set detailed accept and reject rules at each stage of an SMTP session (connection, HELO, MAIL FROM, RCPT TO, DATA, etc.).
- String expansion language: The configuration file supports expressions, so configuration values can be generated dynamically based on conditions.
- Multiple data lookups: Supports plain text files, DBM, and backends such as MySQL, PostgreSQL, SQLite and LDAP, which makes virtual domains and virtual users easy to implement.
- Security and authentication: Supports TLS encryption (based on OpenSSL or GnuTLS) and SMTP AUTH authentication.
- Anti-spam and content scanning: A built-in content scanning interface lets you integrate antivirus software such as ClamAV, as well as SpamAssassin. Email authentication mechanisms such as DKIM signing and verification are also supported.
- Queue management: Comes with queue runners, retry rules and a set of command-line management tools.
Target Users and Use Cases
- System administrators who need to run their own mail server
- Hosting providers and scenarios that require hosting a large number of virtual domains
- Companies and organizations that need complex mail routing, filtering or relay rules
- Linux servers that need to provide outgoing mail capability for local applications
Key Strengths
- Highly configurable: Almost all behavior can be customized through a single runtime configuration file, which suits complex scenarios.
- Mature and stable: Developed and maintained for many years, widely deployed, and thoroughly documented (the project provides a detailed specification manual).
- Free and open source: Released under the GPL license, so it can be freely used and modified.
Installation and Deployment
- Debian / Ubuntu:
sudo apt install exim4, then runsudo dpkg-reconfigure exim4-configfor basic configuration. - Other distributions: Most distributions have ready-made packages in their software repositories.
- Building from source: Download the source code from the official website, edit
Local/Makefileas needed to choose the features to compile in (such as lookup types and the TLS library), then build and install.
Technical Requirements
- A Unix-like operating system (Linux, BSD, etc.)
- To send and receive email externally, DNS must be configured correctly (MX, PTR, SPF, DKIM and other records), and port 25 must be open
Things to Note
- The configuration is very flexible, but the learning curve is also fairly steep. Beginners can start with the default configuration provided by their distribution.
- Exim has had several serious security vulnerabilities in the past, so production environments should be promptly updated to the latest version.
- It is only an MTA and does not include IMAP/POP3 services. Building a complete mail system usually requires pairing it with software such as Dovecot.
Discover more
Courier MTA
Fast, scalable, enterprise mail/groupware server providing ESMTP, IMAP, POP3, webmail, mailing list, basic web-based calendaring and scheduling services.
Weechat
Fast, light and extensible chat client.
Asterisk
Easy to use but advanced IP PBX system, VoIP gateway and conference server.
Dovecot
IMAP and POP3 server written primarily with security in mind.
GNUnet
Software framework for decentralized, peer-to-peer networking.
Janus
General-purpose, lightweight, minimalist WebRTC Server.