Compilation Status (from Github Actions)
libqmail is a library of general purpose APIs extracted from Dan Bernstein's qmail, reimplemented and covered by the GNU General Public License Version. Many of the functions implemented here have since been placed in the public domain. Many of the functions have been generously borrowed from libowfat. libqmail is used by indimail-mta and it's subpackages daemontools and ucspi-tcp, indimail-virtualdomains, ezmlm, ezmlm-idx, tinydnssec. It is also used by mpdev - An event watcher for Music Player Daemon (mpd). The library comes with a set of man pages, though few are missing. Another thing that is missing are the DNS, ipv4 and ipv6 functions. They are in the todo list.
You will need to have the compiler, make, autoconf, automake, libtool, m4 installed.
Linux (RPM based)
# yum/dnf install gcc gcc-c++ autoconf automake libtool pkgconfig m4 sed findutils diffutils openssl-devel libsodium-devel
Linux (Debian based)
# apt-get install build-essential gcc g++ autoconf automake libtool pkg-config m4 libssl-dev libsodium-dev
Linux (Arch Linux)
# pacman -S --needed archlinux-keyring
# pacman -S --refresh --sysupgrade
# pacman -S base-devel diffutils coreutils openssl libsodium
Gentoo Linux
# emaint -a sync
# emerge-webrsync
# emerge -a app-portage/eix
# emerge -a dev-libs/libsodium
# eix-sync
# etc-update
FreeBSD
# pkg install automake autoconf libtool pkgconf libsodium
Darwin
# port install autoconf libtool automake pkgconfig openssl libsodium
# port update outdated
alpine Linux
# apk add gcc g++ make git autoconf automake libtool m4 sed openssl-dev libsodium-dev
- NOTE: For Darwin (Mac OSX), install MacPorts or Homebrew. You can look at this document for installing MacPorts.
- NOTE: libqmail build has been done with clang and gcc. So the instructions should work fine if you have either of them on FreeBSD or Darwin (Mac OSX)
- NOTE: The crypt(3) function on OSX is crippled. the default.configure script passes --enable-passwd-hash=md5 to the configure script. This enables the internal hash functions instead of the crippled system supplied crypt(3) function. Read about his issue here and here.
- NOTE: If you use brew to install openssl on OSX, then you have to do some crazy stuff like setting CPPFLAGS and LDFLAGS before calling default.configure and make commands given below in this document. Using macports is cleaner and easier.
CPPFLAGS="-I/usr/local/opt/[email protected]/include"
LDFLAGS="-L/usr/local/opt/[email protected]/lib"
$ cd /usr/local/src
$ git clone https://github.com/indimail/libqmail.git
$ cd /usr/local/src/libqmail/libqmail
$ ./default.configure
$ make
$ sudo make install
Build Status on Open Build Service
You can get binary RPM / Debian packages at
If you want to use DNF / YUM / apt-get, the corresponding install instructions for the two repositories, depending on whether you want to install a stable or an experimental release, are
- Stable
- Experimental
- copr Releases. The copr repository can be enabled by running the command
$ sudo dnf copr enable cprogrammer/indimail
Currently, the list of supported binary distributions for libqmail is
* Arch Linux
* SUSE
o openSUSE_Leap_15.4
o openSUSE_Leap_15.5
o openSUSE_Leap_15.6
o openSUSE_Tumbleweed
o SUSE Linux Enterprise 12
o SUSE Linux Enterprise 12 SP1
o SUSE Linux Enterprise 12 SP2
o SUSE Linux Enterprise 12 SP3
o SUSE Linux Enterprise 12 SP4
o SUSE Linux Enterprise 12 SP5
o SUSE Linux Enterprise 15
o SUSE Linux Enterprise 15 SP1
o SUSE Linux Enterprise 15 SP2
o SUSE Linux Enterprise 15 SP3
o SUSE Linux Enterprise 15 SP4
o SUSE Linux Enterprise 15 SP5
o SUSE Linux Enterprise 15 SP6
* Red Hat
o Fedora 39
o Fedora 40
o Fedora Rawhide
o Red Hat Enterprise Linux 7
o Red Hat Enterprise Linux 8 +
o Red Hat Enterprise Linux 9 +
o EPEL 8 +
o EPEL 9 +
o Scientific Linux 7
o CentOS 7
o CentOS 8
o CentOS 8 Stream
o CentOS 9 Stream
o CentOS 10 Stream
o RockyLinux 8
o RockyLinux 9
o OracleLinux 8
o OracleLinux 9
o AlmaLinux 8
o AlmaLinux 9
o AmazonLinux 2023
+: Some of the above Red Hat flavoured distributions are available
only on copr (RHEL 8, RHEL9, EPEL9, EPEL9)
* Debian
o Debian 10.0
o Debian 11.0
o Debian 12.0
* Ubuntu
o Ubuntu 18.04
o Ubuntu 20.04
o Ubuntu 22.04
o Ubuntu 23.04
o Ubuntu 24.04
* Mageia
o Mageia 8
o Mageia 9
NOTE: You can also build local binary packages. To generate RPM packages locally for all components refer to Create Local Binary Packages
libqmail is supported at IndiMail and you can contact on IRC or mailing list
- Join me #indimail:matrix.org
- IndiMail has an IRC channel #indimail-mta
There are two Mailing Lists for IndiMail
- indimail-support - You can subscribe for Support here. You can mail indimail-support for support Old discussions can be seen here
- Archive at Google Groups. This groups acts as a remote archive for indimail-support and indimail-devel.
There is also a Project Tracker for IndiMail (Bugs, Feature Requests, Patches, Support Requests)