-- MySQL dump 10.10
--
-- Host: localhost    Database: mail
-- ------------------------------------------------------
-- Server version	5.0.24a

/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8 */;
/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
/*!40103 SET TIME_ZONE='+00:00' */;
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;

--
-- Database: `mail`
--

CREATE DATABASE `mail`;
USE `mail`;

-- --------------------------------------------------------

--
-- Table structure for table `domains`
--

DROP TABLE IF EXISTS `domains`;
CREATE TABLE `domains` (
  `ID` int(10) unsigned NOT NULL auto_increment,
  `domain` varchar(64) NOT NULL default '',
  `categories` varchar(100) NOT NULL default 'all',
  `owner` varchar(16) NOT NULL default '',
  `a_admin` text,
  `neu` tinyint(1) NOT NULL default '1',
  PRIMARY KEY  (`ID`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

--
-- Dumping data for table `domains`
--


/*!40000 ALTER TABLE `domains` DISABLE KEYS */;
LOCK TABLES `domains` WRITE;
UNLOCK TABLES;
/*!40000 ALTER TABLE `domains` ENABLE KEYS */;

--
-- Table structure for table `imap_demo`
--

DROP TABLE IF EXISTS `imap_demo`;
CREATE TABLE `imap_demo` (
  `mailbox` varchar(250) NOT NULL default '',
  `used` int(10) unsigned NOT NULL default '0',
  `qmax` int(10) unsigned NOT NULL default '0',
  `ACL` text,
  PRIMARY KEY  (`mailbox`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

--
-- Dumping data for table `imap_demo`
--


/*!40000 ALTER TABLE `imap_demo` DISABLE KEYS */;
LOCK TABLES `imap_demo` WRITE;
INSERT INTO `imap_demo` VALUES ('shared',0,0,'anyone lrswipcda');
UNLOCK TABLES;
/*!40000 ALTER TABLE `imap_demo` ENABLE KEYS */;

--
-- Table structure for table `user`
--

DROP TABLE IF EXISTS `user`;
CREATE TABLE `user` (
  `mbox` varchar(16) NOT NULL default '',
  `person` varchar(100) NOT NULL default '',
  `pate` varchar(16) NOT NULL default '',
  `canonical` varchar(100) NOT NULL default '',
  `password` varchar(40) NOT NULL default '',
  `domains` varchar(100) NOT NULL default '',
  `active` tinyint(1) NOT NULL default '0',
  `created` int(10) unsigned NOT NULL default '0',
  `last_login` int(10) unsigned NOT NULL default '0',
  `max_alias` int(10) unsigned NOT NULL default '1',
  `max_regexp` int(10) unsigned NOT NULL default '1',
  `a_admin_domains` tinyint(4) NOT NULL default '0',
  `a_admin_user` tinyint(4) NOT NULL default '0',
  `a_super` tinyint(4) default '0',
  PRIMARY KEY  (`mbox`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

--
-- Dumping data for table `user`
--


/*!40000 ALTER TABLE `user` DISABLE KEYS */;
LOCK TABLES `user` WRITE;
INSERT INTO `user` VALUES ('admin','Admin John Doe','admin','admin@example.com','mailfire','all',1,1190483338,1190558772,10000,100,2,2,2),('cyrus','cyrus','cyrus','--@example.com','ipfire','none',1,1190483338,0,0,0,0,0,1);
UNLOCK TABLES;
/*!40000 ALTER TABLE `user` ENABLE KEYS */;

--
-- Table structure for table `virtual`
--

DROP TABLE IF EXISTS `virtual`;
CREATE TABLE `virtual` (
  `address` varchar(255) NOT NULL default '',
  `dest` text,
  `owner` varchar(16) NOT NULL default '',
  `active` tinyint(1) NOT NULL default '1',
  `neu` tinyint(1) NOT NULL default '1',
  PRIMARY KEY  (`address`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

--
-- Dumping data for table `virtual`
--


/*!40000 ALTER TABLE `virtual` DISABLE KEYS */;
LOCK TABLES `virtual` WRITE;
UNLOCK TABLES;
/*!40000 ALTER TABLE `virtual` ENABLE KEYS */;

--
-- Table structure for table `virtual_regexp`
--

DROP TABLE IF EXISTS `virtual_regexp`;
CREATE TABLE `virtual_regexp` (
  `ID` int(10) unsigned NOT NULL auto_increment,
  `reg_exp` varchar(255) NOT NULL default '',
  `dest` text,
  `owner` varchar(16) NOT NULL default '',
  `active` tinyint(1) NOT NULL default '0',
  `neu` tinyint(1) NOT NULL default '1',
  PRIMARY KEY  (`ID`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

--
-- Dumping data for table `virtual_regexp`
--


/*!40000 ALTER TABLE `virtual_regexp` DISABLE KEYS */;
LOCK TABLES `virtual_regexp` WRITE;
UNLOCK TABLES;
/*!40000 ALTER TABLE `virtual_regexp` ENABLE KEYS */;
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;

/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;

