setup:mx
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| setup:mx [2013/07/31 13:06] – maildroprc update root | setup:mx [2013/07/31 13:16] (current) – [MySQL] root | ||
|---|---|---|---|
| Line 6: | Line 6: | ||
| ==== MySQL ==== | ==== MySQL ==== | ||
| + | Create a database with a user with appropriate rights | ||
| + | |||
| + | Then go into that database and execute this: | ||
| + | |||
| + | < | ||
| + | CREATE TABLE IF NOT EXISTS `domains` ( | ||
| + | `domain` varchar(50) NOT NULL, | ||
| + | PRIMARY KEY (`domain`) | ||
| + | ) ENGINE=MyISAM DEFAULT CHARSET=latin1; | ||
| + | |||
| + | CREATE TABLE IF NOT EXISTS `forwardings` ( | ||
| + | `source` varchar(80) NOT NULL, | ||
| + | `destination` text NOT NULL, | ||
| + | PRIMARY KEY (`source`) | ||
| + | ) ENGINE=MyISAM DEFAULT CHARSET=latin1; | ||
| + | |||
| + | CREATE TABLE IF NOT EXISTS `transport` ( | ||
| + | `domain` varchar(128) NOT NULL DEFAULT '', | ||
| + | `transport` varchar(128) NOT NULL DEFAULT '', | ||
| + | UNIQUE KEY `domain` (`domain`) | ||
| + | ) ENGINE=MyISAM DEFAULT CHARSET=latin1; | ||
| + | |||
| + | CREATE TABLE IF NOT EXISTS `users` ( | ||
| + | `email` varchar(80) NOT NULL, | ||
| + | `password` varchar(20) NOT NULL, | ||
| + | `quota` bigint(20) DEFAULT ' | ||
| + | PRIMARY KEY (`email`) | ||
| + | ) ENGINE=MyISAM DEFAULT CHARSET=latin1; | ||
| + | </ | ||
| + | |||
| + | In the table **domains**, | ||
| + | |||
| + | In the table **forwardings**, | ||
| + | |||
| + | In the table **transport**, | ||
| + | |||
| + | In the table **users**, add an entry for each managed user you want to give a mailbox. Quota is expressed in bytes, and don't forget to use the **ENCRYPT** function to store the user password. | ||
| ==== Setup milters ==== | ==== Setup milters ==== | ||
setup/mx.1375268782.txt.gz · Last modified: 2013/07/31 13:06 by root