anchor.diff:        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 {
  
positive.code: 
      environment.systemPackages = [ pkgs.dovecot ];
  
    };
  
  }
  
negative.code:     ''
        base_dir = /var/run/dovecot2/
  
        protocols = ${optionalString cfg.enableImap "imap"} ${optionalString cfg.enablePop3 "pop3"}
      ''
      + (if cfg.sslServerCert!="" then
      ''
  