···55# see also https://github.com/OpenSMTPD/OpenSMTPD/issues/678
66, unpriviledged_smtpctl_encrypt ? true
7788-# This enables you to override the '+' character which typically separates the user from the tag in user+tag@domain.tld
88+# Deprecated: use the subaddressing-delimiter in the config file going forward
99, tag_char ? null
1010}:
11111212-stdenv.mkDerivation rec {
1212+if (tag_char != null)
1313+then throw "opensmtpd: the tag_char argument is deprecated as it can now be specified at runtime via the 'subaddressing-delimiter' option of the configuration file"
1414+else stdenv.mkDerivation rec {
1315 name = "opensmtpd-${version}";
1414- version = "6.0.2p1";
1616+ version = "6.0.3p1";
15171618 nativeBuildInputs = [ autoconf automake libtool bison ];
1719 buildInputs = [ libasr libevent zlib openssl db pam ];
18201921 src = fetchurl {
2022 url = "https://www.opensmtpd.org/archives/${name}.tar.gz";
2121- sha256 = "1b4h64w45hpmfq5721smhg4s0shs64gbcjqjpx3fbiw4hz8bdy9a";
2323+ sha256 = "291881862888655565e8bbe3cfb743310f5dc0edb6fd28a889a9a547ad767a81";
2224 };
23252426 patches = [ ./proc_path.diff ];
25272628 postPatch = with builtins; with lib;
2727- optionalString (isString tag_char) ''
2828- sed -i -e "s,TAG_CHAR.*'+',TAG_CHAR '${tag_char}'," smtpd/smtpd-defines.h
2929- '' +
3029 optionalString unpriviledged_smtpctl_encrypt ''
3130 substituteInPlace smtpd/smtpctl.c --replace \
3231 'if (geteuid())' \