From 08f266490b7bb0c3b5492c0e3883828b5f4fd565 Mon Sep 17 00:00:00 2001 From: "Alexander V. Nikolaev" Date: Mon, 10 Sep 2018 19:43:17 +0300 Subject: [PATCH 1/2] rmilter: move rmilter.sock out of /run/rmilter /run/rmilter is set by systemd, and have root:root ownership, which prevent pid file to write. This fix suggested to be promoted to 18.09 branch. (Although rmilter itself is deprecated, and I plan to remove it, after 18.09 would be released) --- nixos/modules/services/mail/rmilter.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/modules/services/mail/rmilter.nix b/nixos/modules/services/mail/rmilter.nix index 7f38d7570132..c3e3d8232429 100644 --- a/nixos/modules/services/mail/rmilter.nix +++ b/nixos/modules/services/mail/rmilter.nix @@ -89,7 +89,7 @@ in bindSocket.path = mkOption { type = types.str; - default = "/run/rmilter/rmilter.sock"; + default = "/run/rmilter.sock"; description = '' Path to Unix domain socket to listen on. ''; From 868040ee22fe7e79a39b6423095ab4185d584b6b Mon Sep 17 00:00:00 2001 From: "Alexander V. Nikolaev" Date: Tue, 11 Sep 2018 06:20:55 +0300 Subject: [PATCH 2/2] rmilter: deprecation notice --- nixos/modules/services/mail/rmilter.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/nixos/modules/services/mail/rmilter.nix b/nixos/modules/services/mail/rmilter.nix index c3e3d8232429..0d91b247cd34 100644 --- a/nixos/modules/services/mail/rmilter.nix +++ b/nixos/modules/services/mail/rmilter.nix @@ -193,6 +193,9 @@ in config = mkMerge [ (mkIf cfg.enable { + warnings = [ + ''`config.services.rmilter' is deprecated, `rmilter' deprecated and unsupported by upstream, and will be removed from next releases. Use built-in rspamd milter instead.'' + ]; users.users = singleton { name = cfg.user;