|
|
|
CREATE TABLE IF NOT EXISTS postfix_alias (
|
|
|
|
id INTEGER PRIMARY KEY AUTOINCREMENT,
|
|
|
|
alias TEXT NOT NULL UNIQUE,
|
|
|
|
destination TEXT NOT NULL,
|
|
|
|
active INTEGER
|
|
|
|
);
|
|
|
|
CREATE TABLE IF NOT EXISTS postfix_alias_virtuels (
|
|
|
|
id INTEGER PRIMARY KEY AUTOINCREMENT,
|
|
|
|
courriel TEXT NOT NULL,
|
|
|
|
destination TEXT NOT NULL,
|
|
|
|
active INTEGER
|
|
|
|
);
|
|
|
|
CREATE TABLE IF NOT EXISTS postfix_domaines (
|
|
|
|
id INTEGER PRIMARY KEY AUTOINCREMENT,
|
|
|
|
domaine TEXT NOT NULL UNIQUE,
|
|
|
|
defaut INTEGER UNIQUE,
|
|
|
|
active INTEGER
|
|
|
|
);
|
|
|
|
CREATE TABLE IF NOT EXISTS postfix_liste_noire_destinataires (
|
|
|
|
id INTEGER PRIMARY KEY AUTOINCREMENT,
|
|
|
|
courriel TEXT NOT NULL UNIQUE,
|
|
|
|
action TEXT NOT NULL,
|
|
|
|
active INTEGER
|
|
|
|
);
|
|
|
|
CREATE TABLE IF NOT EXISTS postfix_liste_noire_expediteurs (
|
|
|
|
id INTEGER PRIMARY KEY AUTOINCREMENT,
|
|
|
|
courriel TEXT NOT NULL UNIQUE,
|
|
|
|
code_retour INTEGER NOT NULL,
|
|
|
|
message TEXT NOT NULL,
|
|
|
|
active INTEGER
|
|
|
|
);
|
|
|
|
CREATE TABLE IF NOT EXISTS postfix_utilisateurs (
|
|
|
|
id INTEGER PRIMARY KEY AUTOINCREMENT,
|
|
|
|
utilisateur TEXT NOT NULL UNIQUE,
|
|
|
|
mot_de_passe TEXT NOT NULL,
|
|
|
|
nom_complet TEXT,
|
|
|
|
uid INTEGER NOT NULL,
|
|
|
|
gid INTEGER NOT NULL,
|
|
|
|
privilege TEXT NOT NULL,
|
|
|
|
active INTEGER
|
|
|
|
);
|