diff -ruw bincimap-1.0.24-dist/conf/bincimap.conf bincimap-1.0.24/conf/bincimap.conf
--- bincimap-1.0.24-dist/conf/bincimap.conf	2003-02-22 03:53:56.000000000 -0800
+++ bincimap-1.0.24/conf/bincimap.conf	2003-03-01 02:51:51.000000000 -0800
@@ -35,7 +35,8 @@
 Log {
     type = "syslog",                             /* supports
 						    * multilog or
-						    * syslog.
+						    * syslog or
+						    * stderr (for testing).
 						    */
     environment ip variable = "TCPREMOTEIP"
 }
@@ -48,6 +49,8 @@
     path = "Maildir",                              /* default path */
 
     do chroot = "yes",                             /* should be yes */
+    do setuid = "yes",                             /* should be yes */
+    do setgid = "yes",                             /* should be yes */
 
     auto create inbox = "yes",                     /* create INBOX in
 						    * given format if
Only in bincimap-1.0.24/src: .bincimapd-copy.cc.swp
diff -ruw bincimap-1.0.24-dist/src/authenticate.cc bincimap-1.0.24/src/authenticate.cc
--- bincimap-1.0.24-dist/src/authenticate.cc	2003-02-22 01:45:43.000000000 -0800
+++ bincimap-1.0.24/src/authenticate.cc	2003-03-01 01:56:14.000000000 -0800
@@ -247,14 +247,14 @@
   }
 
   // change to the reported group
-  if (setgid(atoi(gid)) != 0) {
+  if ((globalconfig["do setgid"] != "no") && setgid(atoi(gid)) != 0) {
     logger << "authentication broke for <" << username << ">, setgid(" 
 	 << gid.c_str() << "), " << strerror(errno) << "" << endl;
     return 1;
   }
 
   // change to the reported user
-  if (setuid(atoi(uid)) != 0) {
+  if ((globalconfig["do setuid"] != "no") && setuid(atoi(uid)) != 0) {
     logger << "authentication broke for <" << username << ">, setuid(" 
 	 << uid.c_str() << "), " << strerror(errno) << endl;
     return 1;
diff -ruw bincimap-1.0.24-dist/src/bincimapd.cc bincimap-1.0.24/src/bincimapd.cc
--- bincimap-1.0.24-dist/src/bincimapd.cc	2003-02-22 02:52:55.000000000 -0800
+++ bincimap-1.0.24/src/bincimapd.cc	2003-03-01 02:48:01.000000000 -0800
@@ -143,8 +143,11 @@
   if (globalconfig["type"] == "multilog") {
     logger.setLogPrefix("unknown@" + ip + ":");
     logger.enableLogPrefix();
-  } else if (globalconfig["type"] == "" || globalconfig["type"] == "syslog")
+  } else if (globalconfig["type"] == "stderr" ){
+    // stderr is the default
+  } else if (globalconfig["type"] == "" || globalconfig["type"] == "syslog") {
     logger.setModeSyslog();
+  }
 
   // Now that we know the log type, we can flush.
   logger.flushContent();
