No description
Find a file
2025-10-03 16:15:02 +05:30
.github updated workflow for openssl path for OSX 2025-10-03 15:49:02 +05:30
array include qmailconfig.h if HAVE_CONFIG_H is not defined 2023-02-08 11:29:27 +05:30
base tai_now.c, now.c: Fixed datatype for argument passed to time() 2025-10-03 16:15:02 +05:30
debian moved repository to indimail org 2023-12-31 09:02:47 +05:30
doc tai_now.c, now.c: Fixed datatype for argument passed to time() 2025-10-03 16:15:02 +05:30
m4 added ipv6 test macro for configure 2022-05-10 21:11:56 +05:30
mult added functions to check for arithmetic overflow 2020-08-04 00:07:23 +05:30
obs/libqmail make libqmail arch linux ready (#6) 2021-04-02 21:42:49 +05:30
socket updated RCS logs for libqmail 2024-05-10 00:02:37 +05:30
textcode fix discarded-qualifier compiler warnings 2024-05-10 00:02:37 +05:30
tls first run with gcc14 (#18) 2025-01-21 22:55:08 +05:30
.gitignore added .repo-build to ignore list 2023-12-28 23:45:51 +05:30
AUTHORS updated AUTHORS 2020-09-25 22:28:01 +05:30
catChangeLog fixes for arch linux 2023-02-15 09:35:13 +05:30
conf-email Integration with open build service (#5) 2021-03-25 20:54:18 +05:30
conf-version Release 1.5 2024-12-24 16:19:31 +05:30
configure.ac libqmail: added wildmat function 2024-05-23 17:15:02 +05:30
COPYING changed license to GPLv2 2020-09-25 22:28:24 +05:30
create_archpkg fixes for arch linux 2023-02-15 09:35:13 +05:30
create_debian use CC, CFLAGS, LDFLAGS and other flags as defined by the build system 2020-07-05 14:12:57 +05:30
create_rpm libqmail: added wildmat function 2024-05-23 17:15:02 +05:30
default.configure added hashmethods.h 2022-08-24 18:57:45 +05:30
INSTALL libqmail - library for common djb functions:x 2018-10-15 11:20:40 +05:30
libqmail-rpmlintrc ignore lto-no-text-in-archive 2021-03-17 13:51:15 +05:30
libqmail.pc.in libqmail - library for common djb functions:x 2018-10-15 11:20:40 +05:30
libqmail.spec.in added scan_short function 2024-05-31 14:45:27 +05:30
LICENSE updated to GPLv2 2020-09-25 22:35:32 +05:30
Makefile.am updated libqmail 2024-09-05 18:09:49 +05:30
PKGBUILD.in moved repository to indimail org 2023-12-31 09:02:47 +05:30
prepare_obs standardized prepare_obs 2024-06-16 21:59:32 +05:30
README.md added scan_short function 2024-05-31 14:45:27 +05:30

Matrix

Compilation Status (from Github Actions)

libqmail Ubuntu, Mac OSX libqmail FreeBSD

Introduction

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.

Compilation

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/openssl@1.1/include"
LDFLAGS="-L/usr/local/opt/openssl@1.1/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

Binary Builds on openSUSE Build Service and Copr

Build Status on Open Build Service

libqmail obs CI

libqmail

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

Build Status on copr

libqmail

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

SUPPORT INFORMATION

libqmail is supported at IndiMail and you can contact on IRC or mailing list

IRC / Matrix

Matrix

Mailing list

There are two Mailing Lists for IndiMail

  1. indimail-support - You can subscribe for Support here. You can mail indimail-support for support Old discussions can be seen here
  2. 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)