anchor.diff:            type = types.str;
             description = "Addon to postfix configuration";
             default = ''
  -smtpd_milters = ${cfg.bindSocket}
  +smtpd_milters = ${head allSockets}
   # or for TCP socket
   # # smtpd_milters = inet:localhost:9900
   milter_protocol = 6
  
positive.code: 
          servers = mkOption {
            type = types.listOf types.str;
            default = ["r:0.0.0.0:11333"];
            description = ''
              Spamd socket definitions.
              Is server name is prefixed with r: it is rspamd server.
  
negative.code:   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 = ${if cfg.socketActivation then "fd:3" else concatStringsSep ", " allSockets};
  tempdir = /tmp;
  
    '' + (with cfg.rspamd; if enable then ''
  