19 stdenv.mkDerivation rec {
23 nativeBuildInputs = [ autoreconfHook autoconf-archive pkgconf libtool bison ];
24 buildInputs = [ libevent zlib libressl db pam libxcrypt ];
27 url = "https://www.opensmtpd.org/archives/${pname}-${version}.tar.gz";
28 hash = "sha256-wYHMw0NKEeWDYZ4AAoUg1Ff+Bi403AO+6jWAeCIM43Q=";
32 ./proc_path.diff # TODO: upstream to OpenSMTPD, see https://github.com/NixOS/nixpkgs/issues/54045
36 substituteInPlace mk/smtpctl/Makefile.am --replace "chgrp" "true"
37 substituteInPlace mk/smtpctl/Makefile.am --replace "chmod 2555" "chmod 0555"
42 "--localstatedir=/var"
45 "--without-auth-bsdauth"
46 "--with-path-socket=/run"
47 "--with-path-pidfile=/run"
48 "--with-user-smtpd=smtpd"
49 "--with-user-queue=smtpq"
50 "--with-group-queue=smtpq"
51 "--with-path-CAfile=/etc/ssl/certs/ca-certificates.crt"
52 "--with-libevent=${libevent.dev}"
57 "sysconfdir=\${out}/etc"
58 "localstatedir=\${TMPDIR}"
62 homepage = "https://www.opensmtpd.org/";
64 A free implementation of the server-side SMTP protocol as defined by
65 RFC 5321, with some additional standard extensions
67 license = licenses.isc;
68 platforms = platforms.linux;
69 maintainers = with maintainers; [ obadz ekleog vifino ];
72 basic-functionality-and-dovecot-interaction = nixosTests.opensmtpd;
73 rspamd-integration = nixosTests.opensmtpd-rspamd;