anchor.diff:    rspamdCfg = config.services.rspamd;
     cfg = config.services.rmilter;
   
  +  inetSockets = map (sock: let s = stringSplit ":" sock; in "inet:${last s}:${head s}") cfg.bindInetSockets;
  +  unixSockets = map (sock: "unix:${sock}") cfg.bindUnixSockets;
  +
  +  allSockets = unixSockets ++ inetSockets;
  +
     rmilterConf = ''
   pidfile = /run/rmilter/rmilter.pid;
  -bind_socket = ${cfg.bindSocket};
  +bind_socket = ${if cfg.socketActivation then "fd:3" else concatStringsSep ", " allSockets};
   tempdir = /tmp;
   
     '' + (with cfg.rspamd; if enable then ''
  
positive.code: 
        serviceConfig = {
          ExecStart = "${pkgs.rmilter}/bin/rmilter ${optionalString cfg.debug "-d"} -n -c ${rmilterConfigFile}";
          User = cfg.user;
          Group = cfg.group;
          PermissionsStartOnly = true;
          Restart = "always";
        };
  
        preStart = ''
          ${pkgs.coreutils}/bin/mkdir -p /run/rmilter
          ${pkgs.coreutils}/bin/chown ${cfg.user}:${cfg.group} /run/rmilter
        '';
  
      };
  
      services.postfix.extraConfig = optionalString cfg.postfix.enable cfg.postfix.configFragment;
  
negative.code: 
          servers = mkOption {
            type = types.listOf types.str;
            default = ["r:/run/rspamd/rspamd.sock"];
            description = ''
              Spamd socket definitions.
              Is server name is prefixed with r: it is rspamd server.
  