anchor.diff:              ${pkgs.coreutils}/bin/chown -R ${cfg.user}:${cfg.group} /var/run/dovecot2
             '';
   
  -        exec = "${pkgs.dovecot}/sbin/dovecot -F -c ${confFile}";
  +        serviceConfig = {
  +          ExecStart = "${pkgs.dovecot}/sbin/dovecot -F -c ${cfg.configFile}";
  +          Restart = "on-failure";
  +          RestartSec = "1s";
  +          StartLimitInterval = "1min";
  +        };
  +
         };
   
       environment.systemPackages = [ pkgs.dovecot ];
  
positive.code:         default = "";
          example = "mail_debug = yes";
          description = "Additional entries to put verbatim into Dovecot's config file.";
        };
  
        mailLocation = mkOption {
  
negative.code:         gid = config.ids.gids.dovecot2;
        };
  
      systemd.services.dovecot2 =
        { description = "Dovecot IMAP/POP3 server";
  
          after = [ "network.target" ];
          wantedBy = [ "multi-user.target" ];
  
          preStart =
            ''
  