anchor.diff:      ''
         base_dir = /var/run/dovecot2/
   
  -      protocols = imap pop3
  +      protocols = ${optionalString cfg.enableImap "imap"} ${optionalString cfg.enablePop3 "pop3"}
       ''
       + (if cfg.sslServerCert!="" then
       ''
  
positive.code: 
      environment.systemPackages = [ pkgs.dovecot ];
  
    };
  
  }
  
negative.code:       enable = mkOption {
          default = false;
          description = "Whether to enable the Dovecot 2.x POP3/IMAP server.";
        };
  
        enablePop3 = mkOption {
          default = true;
          description = "Start the POP3 listener (when Dovecot is enabled).";
        };
  
        enableImap = mkOption {
          default = true;
          description = "Start the IMAP listener (when Dovecot is enabled).";
        };
  
        user = mkOption {
  