1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
| CREATE TABLE `maillog` (
`mail_id` bigint(20) unsigned NOT NULL auto_increment,
`id` text,
`size` bigint(20) default '0',
`from_address` text,
`from_domain` text,
`to_address` text,
`to_domain` text,
`subject` text,
`clientip` varchar(30) default NULL,
`isspam` tinyint(1) default '0',
`ishighspam` tinyint(1) default '0',
`issaspam` tinyint(1) default '0',
`isrblspam` tinyint(1) default '0',
`spamwhitelisted` tinyint(1) default '0',
`spamblacklisted` tinyint(1) default '0',
`sascore` decimal(7,2) default '0.00',
`spamreport` text,
`virusinfected` tinyint(1) default '0',
`nameinfected` tinyint(1) default '0',
`otherinfected` tinyint(1) default '0',
`report` text,
`hostname` text,
`date` date default NULL,
`time` time default NULL,
`headers` text,
`quarantined` Char(1) NULL,
PRIMARY KEY (`mail_id`),
KEY `maillog_datetime_idx` (`date`,`time`),
KEY `maillog_quarantined` (`quarantined`),
KEY `mail_id_idx` USING BTREE (`id`(20)),
KEY `from_address_idx` USING BTREE (`from_address`(200)),
KEY `to_address_idx` USING BTREE (`to_address`(200)),
KEY `from_domain_idx` USING BTREE (`from_domain`(50)),
KEY `to_domain_idx` USING BTREE (`to_domain`(50)),
) ENGINE=InnoDB; |
Partager