You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
899 B
25 lines
899 B
sqlite3 /etc/postfix/postfix.sqlite
|
|
|
|
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
|
|
);
|
|
|
|
INSERT INTO postfix_utilisateurs (utilisateur,mot_de_passe,nom_complet,uid,gid,privilege,active) VALUES ("toto","toto","Yohan Charbi",5000,5000,"administrateur",1);
|
|
|
|
INSERT INTO postfix_utilisateurs (utilisateur,mot_de_passe,nom_complet,uid,gid,privilege, active) VALUES ("tata", "tata", "Nicolos Morin", 5000, 5000, "utilisateur", 1);
|
|
|
|
UPDATE postfix_utilisateurs SET nom_complet="Nicolas Morin" WHERE id=2;
|
|
|
|
CREATE TABLE IF NOT EXISTS tests (
|
|
id INTEGER PRIMARY KEY AUTOINCREMENT,
|
|
utilisateur TEXT NOT NULL UNIQUE,
|
|
mot_de_passe TEXT NOT NULL
|
|
);
|