292 lines
10 KiB
MySQL
292 lines
10 KiB
MySQL
|
-- MySQL dump 10.19 Distrib 10.3.34-MariaDB, for debian-linux-gnu (x86_64)
|
||
|
--
|
||
|
-- Host: localhost Database: mail
|
||
|
-- ------------------------------------------------------
|
||
|
-- Server version 10.3.34-MariaDB-0ubuntu0.20.04.1
|
||
|
|
||
|
/*!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 utf8mb4 */;
|
||
|
/*!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 */;
|
||
|
|
||
|
--
|
||
|
-- Table structure for table `bannedcontent`
|
||
|
--
|
||
|
|
||
|
DROP TABLE IF EXISTS `bannedcontent`;
|
||
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
||
|
/*!40101 SET character_set_client = utf8 */;
|
||
|
CREATE TABLE `bannedcontent` (
|
||
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
||
|
`creation_date` timestamp NOT NULL DEFAULT current_timestamp(),
|
||
|
`regexp` varchar(255) NOT NULL,
|
||
|
`action` varchar(20) NOT NULL DEFAULT 'DROP',
|
||
|
PRIMARY KEY (`id`),
|
||
|
UNIQUE KEY `regexp` (`regexp`)
|
||
|
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=latin1;
|
||
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
||
|
|
||
|
--
|
||
|
-- Table structure for table `bannedsenders`
|
||
|
--
|
||
|
|
||
|
DROP TABLE IF EXISTS `bannedsenders`;
|
||
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
||
|
/*!40101 SET character_set_client = utf8 */;
|
||
|
CREATE TABLE `bannedsenders` (
|
||
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
||
|
`sender` varchar(255) NOT NULL,
|
||
|
`creation_date` timestamp NOT NULL DEFAULT current_timestamp(),
|
||
|
`frommsgid` varchar(255) NOT NULL,
|
||
|
`banned` tinyint(1) NOT NULL DEFAULT 1,
|
||
|
PRIMARY KEY (`id`)
|
||
|
) ENGINE=InnoDB AUTO_INCREMENT=26705 DEFAULT CHARSET=latin1;
|
||
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
||
|
|
||
|
--
|
||
|
-- Table structure for table `bannedservers`
|
||
|
--
|
||
|
|
||
|
DROP TABLE IF EXISTS `bannedservers`;
|
||
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
||
|
/*!40101 SET character_set_client = utf8 */;
|
||
|
CREATE TABLE `bannedservers` (
|
||
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
||
|
`server` varchar(255) NOT NULL,
|
||
|
`creation_date` timestamp NOT NULL DEFAULT current_timestamp(),
|
||
|
`frommsgid` varchar(255) NOT NULL,
|
||
|
`banned` tinyint(1) NOT NULL DEFAULT 1,
|
||
|
PRIMARY KEY (`id`),
|
||
|
UNIQUE KEY `server` (`server`)
|
||
|
) ENGINE=InnoDB AUTO_INCREMENT=18537 DEFAULT CHARSET=latin1;
|
||
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
||
|
|
||
|
--
|
||
|
-- Table structure for table `bannedsubjects`
|
||
|
--
|
||
|
|
||
|
DROP TABLE IF EXISTS `bannedsubjects`;
|
||
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
||
|
/*!40101 SET character_set_client = utf8 */;
|
||
|
CREATE TABLE `bannedsubjects` (
|
||
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
||
|
`subject` varchar(255) NOT NULL,
|
||
|
`count` int(11) NOT NULL DEFAULT 0,
|
||
|
`creation_date` timestamp NOT NULL DEFAULT current_timestamp(),
|
||
|
`frommsgid` varchar(255) NOT NULL,
|
||
|
`banned` tinyint(1) NOT NULL DEFAULT 1,
|
||
|
PRIMARY KEY (`id`),
|
||
|
UNIQUE KEY `subject` (`subject`)
|
||
|
) ENGINE=InnoDB AUTO_INCREMENT=14505 DEFAULT CHARSET=utf8;
|
||
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
||
|
|
||
|
--
|
||
|
-- Table structure for table `domains`
|
||
|
--
|
||
|
|
||
|
DROP TABLE IF EXISTS `domains`;
|
||
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
||
|
/*!40101 SET character_set_client = utf8 */;
|
||
|
CREATE TABLE `domains` (
|
||
|
`domain` varchar(50) NOT NULL,
|
||
|
`creationdate` timestamp NOT NULL DEFAULT current_timestamp(),
|
||
|
PRIMARY KEY (`domain`)
|
||
|
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
|
||
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
||
|
|
||
|
--
|
||
|
-- Table structure for table `forwardings`
|
||
|
--
|
||
|
|
||
|
DROP TABLE IF EXISTS `forwardings`;
|
||
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
||
|
/*!40101 SET character_set_client = utf8 */;
|
||
|
CREATE TABLE `forwardings` (
|
||
|
`creation_date` timestamp NOT NULL DEFAULT current_timestamp(),
|
||
|
`source` varchar(80) NOT NULL,
|
||
|
`destination` text NOT NULL,
|
||
|
`porpouse` varchar(255) NOT NULL,
|
||
|
PRIMARY KEY (`source`)
|
||
|
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
|
||
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
||
|
|
||
|
--
|
||
|
-- Table structure for table `logins`
|
||
|
--
|
||
|
|
||
|
DROP TABLE IF EXISTS `logins`;
|
||
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
||
|
/*!40101 SET character_set_client = utf8 */;
|
||
|
CREATE TABLE `logins` (
|
||
|
`creation_date` timestamp NOT NULL DEFAULT current_timestamp(),
|
||
|
`ip` varchar(16) NOT NULL,
|
||
|
`user` varchar(255) NOT NULL,
|
||
|
`ipxmlinfo` longtext NOT NULL,
|
||
|
`city` varchar(255) NOT NULL,
|
||
|
`region` varchar(255) NOT NULL,
|
||
|
`country` varchar(255) NOT NULL
|
||
|
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
|
||
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
||
|
|
||
|
--
|
||
|
-- Table structure for table `mail_addresses`
|
||
|
--
|
||
|
|
||
|
DROP TABLE IF EXISTS `mail_addresses`;
|
||
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
||
|
/*!40101 SET character_set_client = utf8 */;
|
||
|
CREATE TABLE `mail_addresses` (
|
||
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
||
|
`mail_address` varchar(255) NOT NULL,
|
||
|
PRIMARY KEY (`id`),
|
||
|
UNIQUE KEY `mail_address` (`mail_address`)
|
||
|
) ENGINE=InnoDB AUTO_INCREMENT=115336 DEFAULT CHARSET=latin1;
|
||
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
||
|
|
||
|
--
|
||
|
-- Table structure for table `notifiedmtas`
|
||
|
--
|
||
|
|
||
|
DROP TABLE IF EXISTS `notifiedmtas`;
|
||
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
||
|
/*!40101 SET character_set_client = utf8 */;
|
||
|
CREATE TABLE `notifiedmtas` (
|
||
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
||
|
`mta_mail` varchar(255) NOT NULL,
|
||
|
`creation_date` timestamp NOT NULL DEFAULT current_timestamp(),
|
||
|
PRIMARY KEY (`id`,`mta_mail`)
|
||
|
) ENGINE=InnoDB AUTO_INCREMENT=18395 DEFAULT CHARSET=latin1;
|
||
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
||
|
|
||
|
--
|
||
|
-- Table structure for table `recipients`
|
||
|
--
|
||
|
|
||
|
DROP TABLE IF EXISTS `recipients`;
|
||
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
||
|
/*!40101 SET character_set_client = utf8 */;
|
||
|
CREATE TABLE `recipients` (
|
||
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
||
|
`creation_date` timestamp NOT NULL DEFAULT current_timestamp(),
|
||
|
`recipient` varchar(255) NOT NULL,
|
||
|
PRIMARY KEY (`id`),
|
||
|
UNIQUE KEY `recipient` (`recipient`)
|
||
|
) ENGINE=InnoDB AUTO_INCREMENT=1889 DEFAULT CHARSET=latin1;
|
||
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
||
|
|
||
|
--
|
||
|
-- Table structure for table `senders`
|
||
|
--
|
||
|
|
||
|
DROP TABLE IF EXISTS `senders`;
|
||
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
||
|
/*!40101 SET character_set_client = utf8 */;
|
||
|
CREATE TABLE `senders` (
|
||
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
||
|
`creation_date` timestamp NOT NULL DEFAULT current_timestamp(),
|
||
|
`sender` varchar(255) NOT NULL,
|
||
|
PRIMARY KEY (`id`),
|
||
|
UNIQUE KEY `sender` (`sender`)
|
||
|
) ENGINE=InnoDB AUTO_INCREMENT=1885 DEFAULT CHARSET=latin1;
|
||
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
||
|
|
||
|
--
|
||
|
-- Table structure for table `stats`
|
||
|
--
|
||
|
|
||
|
DROP TABLE IF EXISTS `stats`;
|
||
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
||
|
/*!40101 SET character_set_client = utf8 */;
|
||
|
CREATE TABLE `stats` (
|
||
|
`msgid` varchar(255) NOT NULL,
|
||
|
`from_id` int(11) NOT NULL,
|
||
|
`to_id` int(11) NOT NULL,
|
||
|
`cc_id` int(11) NOT NULL,
|
||
|
`cco_id` int(11) NOT NULL,
|
||
|
`subject` varchar(255) NOT NULL,
|
||
|
`direction` tinyint(1) NOT NULL COMMENT '0 inbound, 1 outbound',
|
||
|
`delivered_to_id` int(11) NOT NULL,
|
||
|
`return_path_id` int(11) NOT NULL,
|
||
|
`s_original_sender_id` int(11) NOT NULL,
|
||
|
`sender_id` int(11) NOT NULL,
|
||
|
`x_forwarded_to` int(11) NOT NULL,
|
||
|
`x_forwarded_for` int(11) NOT NULL,
|
||
|
UNIQUE KEY `msgid` (`msgid`)
|
||
|
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
|
||
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
||
|
|
||
|
--
|
||
|
-- Table structure for table `transactions`
|
||
|
--
|
||
|
|
||
|
DROP TABLE IF EXISTS `transactions`;
|
||
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
||
|
/*!40101 SET character_set_client = utf8 */;
|
||
|
CREATE TABLE `transactions` (
|
||
|
`start_timestamp` timestamp NOT NULL DEFAULT current_timestamp(),
|
||
|
`pid` int(11) NOT NULL,
|
||
|
`from_IP` varchar(15) NOT NULL,
|
||
|
`from_host` varchar(255) NOT NULL,
|
||
|
`transaction_id` varchar(12) NOT NULL DEFAULT 'unknown',
|
||
|
`message_id` varchar(255) NOT NULL DEFAULT 'unknown',
|
||
|
`from` varchar(255) NOT NULL DEFAULT 'unknown',
|
||
|
`size` int(11) NOT NULL DEFAULT 0,
|
||
|
`nrcpt` int(11) NOT NULL DEFAULT 0,
|
||
|
`to` varchar(255) NOT NULL DEFAULT 'unknown',
|
||
|
`relay` varchar(255) NOT NULL DEFAULT 'unknown',
|
||
|
`delay` int(11) NOT NULL DEFAULT 0,
|
||
|
`delays` varchar(22) NOT NULL DEFAULT 'unknown',
|
||
|
`dsn` varchar(7) NOT NULL DEFAULT 'unknown',
|
||
|
`status` varchar(255) NOT NULL DEFAULT 'unknown',
|
||
|
`orig_to` varchar(255) NOT NULL DEFAULT 'unknown',
|
||
|
`end_timestamp` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00'
|
||
|
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
|
||
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
||
|
|
||
|
--
|
||
|
-- Table structure for table `transport`
|
||
|
--
|
||
|
|
||
|
DROP TABLE IF EXISTS `transport`;
|
||
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
||
|
/*!40101 SET character_set_client = utf8 */;
|
||
|
CREATE TABLE `transport` (
|
||
|
`domain` varchar(128) NOT NULL DEFAULT '',
|
||
|
`transport` varchar(128) NOT NULL DEFAULT '',
|
||
|
UNIQUE KEY `domain` (`domain`)
|
||
|
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
|
||
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
||
|
|
||
|
--
|
||
|
-- Table structure for table `users`
|
||
|
--
|
||
|
|
||
|
DROP TABLE IF EXISTS `users`;
|
||
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
||
|
/*!40101 SET character_set_client = utf8 */;
|
||
|
CREATE TABLE `users` (
|
||
|
`email` varchar(80) NOT NULL,
|
||
|
`password` varchar(256) DEFAULT NULL,
|
||
|
`quota` bigint(20) DEFAULT 104857600000,
|
||
|
`fullname` varchar(255) NOT NULL,
|
||
|
PRIMARY KEY (`email`)
|
||
|
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
|
||
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
||
|
/*!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 */;
|
||
|
|
||
|
-- Dump completed on 2022-10-04 20:45:17
|