--- lib/misc/lookup_domain.cc.baseuser	Thu Jun  1 21:26:30 2000
+++ lib/misc/lookup_domain.cc	Thu Nov 16 13:22:56 2000
@@ -14,6 +14,7 @@
 // along with this program; if not, write to the Free Software
 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 
+#include <string.h>
 #include <config.h>
 #include <limits.h>
 #include "lookup.h"
@@ -33,6 +34,7 @@
 mystring find_virtual(mystring domain)
 {
   domain = domain.lower();
+  if (!index(domain.c_str(), '.')) return domain; /* if domain has no dot, assume it is baseuser and not domain! /mn/ 2000-11-16 */
   mystring tblname = config->qmail_root() + "/control/virtualdomains";
   map_table tbl(tblname.c_str());
   if(!tbl)
