CREATE SEQUENCE dbmail_restrictions_id_seq;
CREATE TABLE dbmail_restrictions (
    id INT8 DEFAULT nextval('dbmail_restrictions_id_seq'),
    client_idnr INT8,
    service VARCHAR(10),
    hosts_deny VARCHAR(100),
    hosts_allow VARCHAR(100),
    PRIMARY KEY (id)
);
CREATE INDEX dbmail_restrictions_client_idnr_idx ON dbmail_restrictions(client_idnr);