postfix_admin 0.2.0 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,383 @@
1
+ -- phpMyAdmin SQL Dump
2
+ -- version 4.9.1
3
+ -- https://www.phpmyadmin.net/
4
+ --
5
+ -- Host: localhost
6
+ -- Generation Time: May 30, 2020 at 04:28 PM
7
+ -- Server version: 10.3.17-MariaDB-log
8
+ -- PHP Version: 7.2.11
9
+
10
+ SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
11
+ SET AUTOCOMMIT = 0;
12
+ START TRANSACTION;
13
+ SET time_zone = "+00:00";
14
+
15
+
16
+ /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
17
+ /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
18
+ /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
19
+ /*!40101 SET NAMES utf8mb4 */;
20
+
21
+ --
22
+ -- Database: `postfix`
23
+ --
24
+
25
+ -- --------------------------------------------------------
26
+
27
+ --
28
+ -- Table structure for table `admin`
29
+ --
30
+
31
+ CREATE TABLE `admin` (
32
+ `username` varchar(255) NOT NULL,
33
+ `password` varchar(255) NOT NULL,
34
+ `created` datetime NOT NULL DEFAULT '2000-01-01 00:00:00',
35
+ `modified` datetime NOT NULL DEFAULT '2000-01-01 00:00:00',
36
+ `active` tinyint(1) NOT NULL DEFAULT 1,
37
+ `superadmin` tinyint(1) NOT NULL DEFAULT 0,
38
+ `phone` varchar(30) NOT NULL DEFAULT '',
39
+ `email_other` varchar(255) NOT NULL DEFAULT '',
40
+ `token` varchar(255) NOT NULL DEFAULT '',
41
+ `token_validity` datetime NOT NULL DEFAULT '2000-01-01 00:00:00'
42
+ ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Postfix Admin - Virtual Admins';
43
+
44
+ -- --------------------------------------------------------
45
+
46
+ --
47
+ -- Table structure for table `alias`
48
+ --
49
+
50
+ CREATE TABLE `alias` (
51
+ `address` varchar(255) NOT NULL,
52
+ `goto` text NOT NULL,
53
+ `domain` varchar(255) NOT NULL,
54
+ `created` datetime NOT NULL DEFAULT '2000-01-01 00:00:00',
55
+ `modified` datetime NOT NULL DEFAULT '2000-01-01 00:00:00',
56
+ `active` tinyint(1) NOT NULL DEFAULT 1
57
+ ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Postfix Admin - Virtual Aliases';
58
+
59
+ -- --------------------------------------------------------
60
+
61
+ --
62
+ -- Table structure for table `alias_domain`
63
+ --
64
+
65
+ CREATE TABLE `alias_domain` (
66
+ `alias_domain` varchar(255) CHARACTER SET latin1 NOT NULL DEFAULT '',
67
+ `target_domain` varchar(255) CHARACTER SET latin1 NOT NULL DEFAULT '',
68
+ `created` datetime NOT NULL DEFAULT '2000-01-01 00:00:00',
69
+ `modified` datetime NOT NULL DEFAULT '2000-01-01 00:00:00',
70
+ `active` tinyint(1) NOT NULL DEFAULT 1
71
+ ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Postfix Admin - Domain Aliases';
72
+
73
+ -- --------------------------------------------------------
74
+
75
+ --
76
+ -- Table structure for table `config`
77
+ --
78
+
79
+ CREATE TABLE `config` (
80
+ `id` int(11) NOT NULL,
81
+ `name` varchar(20) NOT NULL DEFAULT '',
82
+ `value` varchar(20) NOT NULL DEFAULT ''
83
+ ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='PostfixAdmin settings';
84
+
85
+ --
86
+ -- Dumping data for table `config`
87
+ --
88
+
89
+ INSERT INTO `config` (`id`, `name`, `value`) VALUES
90
+ (1, 'version', '1841');
91
+
92
+ -- --------------------------------------------------------
93
+
94
+ --
95
+ -- Table structure for table `domain`
96
+ --
97
+
98
+ CREATE TABLE `domain` (
99
+ `domain` varchar(255) NOT NULL,
100
+ `description` varchar(255) NOT NULL,
101
+ `aliases` int(10) NOT NULL DEFAULT 0,
102
+ `mailboxes` int(10) NOT NULL DEFAULT 0,
103
+ `maxquota` bigint(20) NOT NULL DEFAULT 0,
104
+ `quota` bigint(20) NOT NULL DEFAULT 0,
105
+ `transport` varchar(255) NOT NULL,
106
+ `backupmx` tinyint(1) NOT NULL DEFAULT 0,
107
+ `created` datetime NOT NULL DEFAULT '2000-01-01 00:00:00',
108
+ `modified` datetime NOT NULL DEFAULT '2000-01-01 00:00:00',
109
+ `active` tinyint(1) NOT NULL DEFAULT 1
110
+ ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Postfix Admin - Virtual Domains';
111
+
112
+ --
113
+ -- Dumping data for table `domain`
114
+ --
115
+
116
+ INSERT INTO `domain` (`domain`, `description`, `aliases`, `mailboxes`, `maxquota`, `quota`, `transport`, `backupmx`, `created`, `modified`, `active`) VALUES
117
+ ('ALL', '', 0, 0, 0, 0, '', 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00', 1);
118
+
119
+ -- --------------------------------------------------------
120
+
121
+ --
122
+ -- Table structure for table `domain_admins`
123
+ --
124
+
125
+ CREATE TABLE `domain_admins` (
126
+ `username` varchar(255) NOT NULL,
127
+ `domain` varchar(255) NOT NULL,
128
+ `created` datetime NOT NULL DEFAULT '2000-01-01 00:00:00',
129
+ `active` tinyint(1) NOT NULL DEFAULT 1
130
+ ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Postfix Admin - Domain Admins';
131
+
132
+ -- --------------------------------------------------------
133
+
134
+ --
135
+ -- Table structure for table `fetchmail`
136
+ --
137
+
138
+ CREATE TABLE `fetchmail` (
139
+ `id` int(11) UNSIGNED NOT NULL,
140
+ `mailbox` varchar(255) NOT NULL,
141
+ `src_server` varchar(255) NOT NULL,
142
+ `src_auth` enum('password','kerberos_v5','kerberos','kerberos_v4','gssapi','cram-md5','otp','ntlm','msn','ssh','any') DEFAULT NULL,
143
+ `src_user` varchar(255) NOT NULL,
144
+ `src_password` varchar(255) NOT NULL,
145
+ `src_folder` varchar(255) NOT NULL,
146
+ `poll_time` int(11) UNSIGNED NOT NULL DEFAULT 10,
147
+ `fetchall` tinyint(1) UNSIGNED NOT NULL DEFAULT 0,
148
+ `keep` tinyint(1) UNSIGNED NOT NULL DEFAULT 0,
149
+ `protocol` enum('POP3','IMAP','POP2','ETRN','AUTO') DEFAULT NULL,
150
+ `usessl` tinyint(1) UNSIGNED NOT NULL DEFAULT 0,
151
+ `extra_options` text DEFAULT NULL,
152
+ `returned_text` text DEFAULT NULL,
153
+ `mda` varchar(255) NOT NULL,
154
+ `date` timestamp NOT NULL DEFAULT '1999-12-31 15:00:00',
155
+ `sslcertck` tinyint(1) NOT NULL DEFAULT 0,
156
+ `sslcertpath` varchar(255) DEFAULT '',
157
+ `sslfingerprint` varchar(255) CHARACTER SET latin1 DEFAULT '',
158
+ `domain` varchar(255) CHARACTER SET latin1 DEFAULT '',
159
+ `active` tinyint(1) NOT NULL DEFAULT 0,
160
+ `created` timestamp NOT NULL DEFAULT '1999-12-31 15:00:00',
161
+ `modified` timestamp NOT NULL DEFAULT current_timestamp()
162
+ ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
163
+
164
+ -- --------------------------------------------------------
165
+
166
+ --
167
+ -- Table structure for table `log`
168
+ --
169
+
170
+ CREATE TABLE `log` (
171
+ `timestamp` datetime NOT NULL DEFAULT '2000-01-01 00:00:00',
172
+ `username` varchar(255) NOT NULL,
173
+ `domain` varchar(255) NOT NULL,
174
+ `action` varchar(255) NOT NULL,
175
+ `data` text NOT NULL,
176
+ `id` int(11) NOT NULL
177
+ ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Postfix Admin - Log';
178
+
179
+ -- --------------------------------------------------------
180
+
181
+ --
182
+ -- Table structure for table `mailbox`
183
+ --
184
+
185
+ CREATE TABLE `mailbox` (
186
+ `username` varchar(255) NOT NULL,
187
+ `password` varchar(255) NOT NULL,
188
+ `name` varchar(255) NOT NULL,
189
+ `maildir` varchar(255) NOT NULL,
190
+ `quota` bigint(20) NOT NULL DEFAULT 0,
191
+ `local_part` varchar(255) NOT NULL,
192
+ `domain` varchar(255) NOT NULL,
193
+ `created` datetime NOT NULL DEFAULT '2000-01-01 00:00:00',
194
+ `modified` datetime NOT NULL DEFAULT '2000-01-01 00:00:00',
195
+ `active` tinyint(1) NOT NULL DEFAULT 1,
196
+ `phone` varchar(30) NOT NULL DEFAULT '',
197
+ `email_other` varchar(255) NOT NULL DEFAULT '',
198
+ `token` varchar(255) NOT NULL DEFAULT '',
199
+ `token_validity` datetime NOT NULL DEFAULT '2000-01-01 00:00:00'
200
+ ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Postfix Admin - Virtual Mailboxes';
201
+
202
+ -- --------------------------------------------------------
203
+
204
+ --
205
+ -- Table structure for table `quota`
206
+ --
207
+
208
+ CREATE TABLE `quota` (
209
+ `username` varchar(255) NOT NULL,
210
+ `path` varchar(100) NOT NULL,
211
+ `current` bigint(20) DEFAULT NULL
212
+ ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
213
+
214
+ -- --------------------------------------------------------
215
+
216
+ --
217
+ -- Table structure for table `quota2`
218
+ --
219
+
220
+ CREATE TABLE `quota2` (
221
+ `username` varchar(100) NOT NULL,
222
+ `bytes` bigint(20) NOT NULL DEFAULT 0,
223
+ `messages` int(11) NOT NULL DEFAULT 0
224
+ ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
225
+
226
+ -- --------------------------------------------------------
227
+
228
+ --
229
+ -- Table structure for table `vacation`
230
+ --
231
+
232
+ CREATE TABLE `vacation` (
233
+ `email` varchar(255) NOT NULL,
234
+ `subject` varchar(255) NOT NULL,
235
+ `body` text NOT NULL,
236
+ `cache` text NOT NULL,
237
+ `domain` varchar(255) NOT NULL,
238
+ `created` datetime NOT NULL DEFAULT '2000-01-01 00:00:00',
239
+ `active` tinyint(1) NOT NULL DEFAULT 1,
240
+ `modified` timestamp NOT NULL DEFAULT current_timestamp(),
241
+ `activefrom` timestamp NOT NULL DEFAULT '1999-12-31 15:00:00',
242
+ `activeuntil` timestamp NOT NULL DEFAULT '2038-01-17 15:00:00',
243
+ `interval_time` int(11) NOT NULL DEFAULT 0
244
+ ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Postfix Admin - Virtual Vacation';
245
+
246
+ -- --------------------------------------------------------
247
+
248
+ --
249
+ -- Table structure for table `vacation_notification`
250
+ --
251
+
252
+ CREATE TABLE `vacation_notification` (
253
+ `on_vacation` varchar(150) NOT NULL,
254
+ `notified` varchar(255) CHARACTER SET latin1 NOT NULL DEFAULT '',
255
+ `notified_at` timestamp NOT NULL DEFAULT current_timestamp()
256
+ ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Postfix Admin - Virtual Vacation Notifications';
257
+
258
+ --
259
+ -- Indexes for dumped tables
260
+ --
261
+
262
+ --
263
+ -- Indexes for table `admin`
264
+ --
265
+ ALTER TABLE `admin`
266
+ ADD PRIMARY KEY (`username`);
267
+
268
+ --
269
+ -- Indexes for table `alias`
270
+ --
271
+ ALTER TABLE `alias`
272
+ ADD PRIMARY KEY (`address`),
273
+ ADD KEY `domain` (`domain`);
274
+
275
+ --
276
+ -- Indexes for table `alias_domain`
277
+ --
278
+ ALTER TABLE `alias_domain`
279
+ ADD PRIMARY KEY (`alias_domain`),
280
+ ADD KEY `active` (`active`),
281
+ ADD KEY `target_domain` (`target_domain`);
282
+
283
+ --
284
+ -- Indexes for table `config`
285
+ --
286
+ ALTER TABLE `config`
287
+ ADD PRIMARY KEY (`id`),
288
+ ADD UNIQUE KEY `name` (`name`);
289
+
290
+ --
291
+ -- Indexes for table `domain`
292
+ --
293
+ ALTER TABLE `domain`
294
+ ADD PRIMARY KEY (`domain`);
295
+
296
+ --
297
+ -- Indexes for table `domain_admins`
298
+ --
299
+ ALTER TABLE `domain_admins`
300
+ ADD KEY `username` (`username`);
301
+
302
+ --
303
+ -- Indexes for table `fetchmail`
304
+ --
305
+ ALTER TABLE `fetchmail`
306
+ ADD PRIMARY KEY (`id`);
307
+
308
+ --
309
+ -- Indexes for table `log`
310
+ --
311
+ ALTER TABLE `log`
312
+ ADD PRIMARY KEY (`id`),
313
+ ADD KEY `timestamp` (`timestamp`),
314
+ ADD KEY `domain_timestamp` (`domain`,`timestamp`);
315
+
316
+ --
317
+ -- Indexes for table `mailbox`
318
+ --
319
+ ALTER TABLE `mailbox`
320
+ ADD PRIMARY KEY (`username`),
321
+ ADD KEY `domain` (`domain`);
322
+
323
+ --
324
+ -- Indexes for table `quota`
325
+ --
326
+ ALTER TABLE `quota`
327
+ ADD PRIMARY KEY (`username`,`path`);
328
+
329
+ --
330
+ -- Indexes for table `quota2`
331
+ --
332
+ ALTER TABLE `quota2`
333
+ ADD PRIMARY KEY (`username`);
334
+
335
+ --
336
+ -- Indexes for table `vacation`
337
+ --
338
+ ALTER TABLE `vacation`
339
+ ADD PRIMARY KEY (`email`),
340
+ ADD KEY `email` (`email`);
341
+
342
+ --
343
+ -- Indexes for table `vacation_notification`
344
+ --
345
+ ALTER TABLE `vacation_notification`
346
+ ADD PRIMARY KEY (`on_vacation`,`notified`);
347
+
348
+ --
349
+ -- AUTO_INCREMENT for dumped tables
350
+ --
351
+
352
+ --
353
+ -- AUTO_INCREMENT for table `config`
354
+ --
355
+ ALTER TABLE `config`
356
+ MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
357
+
358
+ --
359
+ -- AUTO_INCREMENT for table `fetchmail`
360
+ --
361
+ ALTER TABLE `fetchmail`
362
+ MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
363
+
364
+ --
365
+ -- AUTO_INCREMENT for table `log`
366
+ --
367
+ ALTER TABLE `log`
368
+ MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
369
+
370
+ --
371
+ -- Constraints for dumped tables
372
+ --
373
+
374
+ --
375
+ -- Constraints for table `vacation_notification`
376
+ --
377
+ ALTER TABLE `vacation_notification`
378
+ ADD CONSTRAINT `vacation_notification_pkey` FOREIGN KEY (`on_vacation`) REFERENCES `vacation` (`email`) ON DELETE CASCADE;
379
+ COMMIT;
380
+
381
+ /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
382
+ /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
383
+ /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
@@ -0,0 +1,223 @@
1
+ -- phpMyAdmin SQL Dump
2
+ -- version 3.4.7
3
+ -- http://www.phpmyadmin.net
4
+ --
5
+ -- ホスト: localhost
6
+ -- 生成時間: 2012 年 9 月 25 日 23:12
7
+ -- サーバのバージョン: 5.5.15
8
+ -- PHP のバージョン: 5.3.15
9
+
10
+ SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
11
+ SET time_zone = "+00:00";
12
+
13
+
14
+ /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
15
+ /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
16
+ /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
17
+ /*!40101 SET NAMES utf8 */;
18
+
19
+ --
20
+ -- データベース: `postfix_test`
21
+ --
22
+
23
+ -- --------------------------------------------------------
24
+
25
+ --
26
+ -- テーブルの構造 `admin`
27
+ --
28
+
29
+ CREATE TABLE IF NOT EXISTS `admin` (
30
+ `username` varchar(255) NOT NULL DEFAULT '',
31
+ `password` varchar(255) NOT NULL DEFAULT '',
32
+ `created` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
33
+ `modified` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
34
+ `active` tinyint(1) NOT NULL DEFAULT '1',
35
+ PRIMARY KEY (`username`)
36
+ ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='Postfix Admin - Virtual Admins';
37
+
38
+ -- --------------------------------------------------------
39
+
40
+ --
41
+ -- テーブルの構造 `alias`
42
+ --
43
+
44
+ CREATE TABLE IF NOT EXISTS `alias` (
45
+ `address` varchar(255) NOT NULL DEFAULT '',
46
+ `goto` text NOT NULL,
47
+ `domain` varchar(255) NOT NULL DEFAULT '',
48
+ `created` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
49
+ `modified` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
50
+ `active` tinyint(1) NOT NULL DEFAULT '1',
51
+ PRIMARY KEY (`address`)
52
+ ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='Postfix Admin - Virtual Aliases';
53
+
54
+ --
55
+ -- テーブルのデータをダンプしています `alias`
56
+ --
57
+
58
+ -- --------------------------------------------------------
59
+
60
+ --
61
+ -- テーブルの構造 `config`
62
+ --
63
+
64
+ CREATE TABLE IF NOT EXISTS `config` (
65
+ `id` int(11) NOT NULL AUTO_INCREMENT,
66
+ `name` varchar(20) CHARACTER SET latin1 NOT NULL DEFAULT '',
67
+ `value` varchar(20) CHARACTER SET latin1 NOT NULL DEFAULT '',
68
+ PRIMARY KEY (`id`),
69
+ UNIQUE KEY `name` (`name`)
70
+ ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='PostfixAdmin settings' AUTO_INCREMENT=2 ;
71
+
72
+ --
73
+ -- テーブルのデータをダンプしています `config`
74
+ --
75
+
76
+ INSERT INTO `config` (`id`, `name`, `value`) VALUES
77
+ (1, 'version', '352');
78
+
79
+ -- --------------------------------------------------------
80
+
81
+ --
82
+ -- テーブルの構造 `domain`
83
+ --
84
+
85
+ CREATE TABLE IF NOT EXISTS `domain` (
86
+ `domain` varchar(255) NOT NULL DEFAULT '',
87
+ `description` varchar(255) NOT NULL DEFAULT '',
88
+ `aliases` int(10) NOT NULL DEFAULT '0',
89
+ `mailboxes` int(10) NOT NULL DEFAULT '0',
90
+ `maxquota` bigint(20) NOT NULL DEFAULT '0',
91
+ `quota` bigint(20) NOT NULL DEFAULT '0',
92
+ `transport` varchar(255) DEFAULT NULL,
93
+ `backupmx` tinyint(1) NOT NULL DEFAULT '0',
94
+ `created` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
95
+ `modified` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
96
+ `active` tinyint(1) NOT NULL DEFAULT '1',
97
+ PRIMARY KEY (`domain`)
98
+ ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='Postfix Admin - Virtual Domains';
99
+
100
+ --
101
+ -- テーブルのデータをダンプしています `domain`
102
+ --
103
+
104
+ INSERT INTO `domain` (`domain`, `description`, `aliases`, `mailboxes`, `maxquota`, `quota`, `transport`, `backupmx`, `created`, `modified`, `active`) VALUES
105
+ ('ALL', '', 0, 0, 0, 0, NULL, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00', 1);
106
+
107
+ -- --------------------------------------------------------
108
+
109
+ --
110
+ -- テーブルの構造 `domain_admins`
111
+ --
112
+
113
+ CREATE TABLE IF NOT EXISTS `domain_admins` (
114
+ `username` varchar(255) NOT NULL DEFAULT '',
115
+ `domain` varchar(255) NOT NULL DEFAULT '',
116
+ `created` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
117
+ `active` tinyint(1) NOT NULL DEFAULT '1',
118
+ KEY `username` (`username`)
119
+ ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='Postfix Admin - Domain Admins';
120
+
121
+ -- --------------------------------------------------------
122
+
123
+ --
124
+ -- テーブルの構造 `fetchmail`
125
+ --
126
+
127
+ CREATE TABLE IF NOT EXISTS `fetchmail` (
128
+ `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
129
+ `mailbox` varchar(255) NOT NULL DEFAULT '',
130
+ `src_server` varchar(255) NOT NULL DEFAULT '',
131
+ `src_auth` enum('password','kerberos_v5','kerberos','kerberos_v4','gssapi','cram-md5','otp','ntlm','msn','ssh','any') DEFAULT NULL,
132
+ `src_user` varchar(255) NOT NULL DEFAULT '',
133
+ `src_password` varchar(255) NOT NULL DEFAULT '',
134
+ `src_folder` varchar(255) NOT NULL DEFAULT '',
135
+ `poll_time` int(11) unsigned NOT NULL DEFAULT '10',
136
+ `fetchall` tinyint(1) unsigned NOT NULL DEFAULT '0',
137
+ `keep` tinyint(1) unsigned NOT NULL DEFAULT '0',
138
+ `protocol` enum('POP3','IMAP','POP2','ETRN','AUTO') DEFAULT NULL,
139
+ `extra_options` text,
140
+ `returned_text` text,
141
+ `mda` varchar(255) NOT NULL DEFAULT '',
142
+ `date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
143
+ PRIMARY KEY (`id`)
144
+ ) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
145
+
146
+ -- --------------------------------------------------------
147
+
148
+ --
149
+ -- テーブルの構造 `log`
150
+ --
151
+
152
+ CREATE TABLE IF NOT EXISTS `log` (
153
+ `timestamp` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
154
+ `username` varchar(255) NOT NULL DEFAULT '',
155
+ `domain` varchar(255) NOT NULL DEFAULT '',
156
+ `action` varchar(255) NOT NULL DEFAULT '',
157
+ `data` varchar(255) NOT NULL DEFAULT '',
158
+ KEY `timestamp` (`timestamp`)
159
+ ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='Postfix Admin - Log';
160
+
161
+ -- --------------------------------------------------------
162
+
163
+ --
164
+ -- テーブルの構造 `mailbox`
165
+ --
166
+
167
+ CREATE TABLE IF NOT EXISTS `mailbox` (
168
+ `username` varchar(255) NOT NULL DEFAULT '',
169
+ `password` varchar(255) NOT NULL DEFAULT '',
170
+ `name` varchar(255) NOT NULL DEFAULT '',
171
+ `maildir` varchar(255) NOT NULL DEFAULT '',
172
+ `quota` bigint(20) NOT NULL DEFAULT '0',
173
+ `domain` varchar(255) NOT NULL DEFAULT '',
174
+ `created` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
175
+ `modified` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
176
+ `active` tinyint(1) NOT NULL DEFAULT '1',
177
+ PRIMARY KEY (`username`)
178
+ ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='Postfix Admin - Virtual Mailboxes';
179
+
180
+ -- --------------------------------------------------------
181
+
182
+ --
183
+ -- テーブルの構造 `vacation`
184
+ --
185
+
186
+ CREATE TABLE IF NOT EXISTS `vacation` (
187
+ `email` varchar(255) NOT NULL,
188
+ `subject` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL,
189
+ `body` text CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL,
190
+ `cache` text NOT NULL,
191
+ `domain` varchar(255) NOT NULL,
192
+ `created` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
193
+ `active` tinyint(1) NOT NULL DEFAULT '1',
194
+ PRIMARY KEY (`email`),
195
+ KEY `email` (`email`)
196
+ ) ENGINE=InnoDB DEFAULT CHARSET=latin1 COMMENT='Postfix Admin - Virtual Vacation';
197
+
198
+ -- --------------------------------------------------------
199
+
200
+ --
201
+ -- テーブルの構造 `vacation_notification`
202
+ --
203
+
204
+ CREATE TABLE IF NOT EXISTS `vacation_notification` (
205
+ `on_vacation` varchar(255) NOT NULL,
206
+ `notified` varchar(255) NOT NULL,
207
+ `notified_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
208
+ PRIMARY KEY (`on_vacation`,`notified`)
209
+ ) ENGINE=InnoDB DEFAULT CHARSET=latin1 COMMENT='Postfix Admin - Virtual Vacation Notifications';
210
+
211
+ --
212
+ -- ダンプしたテーブルの制約
213
+ --
214
+
215
+ --
216
+ -- テーブルの制約 `vacation_notification`
217
+ --
218
+ ALTER TABLE `vacation_notification`
219
+ ADD CONSTRAINT `vacation_notification_pkey` FOREIGN KEY (`on_vacation`) REFERENCES `vacation` (`email`) ON DELETE CASCADE;
220
+
221
+ /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
222
+ /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
223
+ /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;