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