diff --git a/polka.cf b/polka.cf new file mode 100644 index 0000000..9fe83f1 --- /dev/null +++ b/polka.cf @@ -0,0 +1,11 @@ +port=9093 +bind=127.0.0.1 +defaultquota=500 +dbuser=polka +dbpass=verysecretpassword +dbhost=127.0.0.1 +dbport=3306 +dbname=policy +badmailfrom_table=badmailfrom +badmailto_table=badmailto +policy_table=relay_policy diff --git a/table_structure.sql b/table_structure.sql new file mode 100644 index 0000000..b5560bd --- /dev/null +++ b/table_structure.sql @@ -0,0 +1,20 @@ +CREATE TABLE `badmailfrom` ( + `sender` char(80) NOT NULL, + PRIMARY KEY (`sender`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; + +CREATE TABLE `badmailto` ( + `rcpt` char(80) NOT NULL, + PRIMARY KEY (`rcpt`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; + +CREATE TABLE `relay_policy` ( + `type` char(1) NOT NULL DEFAULT '', + `item` char(80) NOT NULL DEFAULT '', + `max` int(5) DEFAULT NULL, + `quota` float DEFAULT NULL, + `ts` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, + PRIMARY KEY (`type`,`item`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; + +