Création d'exemples d'alias virtuels plus représentatifs du réel

This commit is contained in:
ycharbi
2021-06-23 15:25:14 +02:00
parent 5ea51b4645
commit c55375d632
2 changed files with 7 additions and 4 deletions
+6 -3
View File
@@ -4,9 +4,12 @@ INSERT INTO postfix_alias (alias,destination,active) VALUES ("tata","test2",0);
INSERT INTO postfix_alias (alias,destination,active) VALUES ("titi","test3",1);
-- Alias virtuels
INSERT INTO postfix_alias_virtuels (courriel,destination,active) VALUES ("toto@exemple.fr","test1@exemple.fr",1);
INSERT INTO postfix_alias_virtuels (courriel,destination,active) VALUES ("tata@exemple.fr","test2@exemple.fr",0);
INSERT INTO postfix_alias_virtuels (courriel,destination,active) VALUES ("titi@exemple.fr","test3@exemple.fr",1);
INSERT INTO postfix_alias_virtuels (courriel,destination,active) VALUES ("toto@exemple.fr","comptable@tata.fr",1);
INSERT INTO postfix_alias_virtuels (courriel,destination,active) VALUES ("toto@exemple.fr","medecin@tata.fr",1);
INSERT INTO postfix_alias_virtuels (courriel,destination,active) VALUES ("toto@exemple.fr","supermacher@tata.fr",1);
INSERT INTO postfix_alias_virtuels (courriel,destination,active) VALUES ("tata@exemple.fr","fleuriste@tata.fr",0);
INSERT INTO postfix_alias_virtuels (courriel,destination,active) VALUES ("tata@exemple.fr","coiffeur@tata.fr",0);
INSERT INTO postfix_alias_virtuels (courriel,destination,active) VALUES ("titi@exemple.fr","promos@tata.fr",1);
-- Domaines secondaires
INSERT INTO postfix_domaines (domaine,active) VALUES ("toto.fr",1);
+1 -1
View File
@@ -6,7 +6,7 @@ CREATE TABLE IF NOT EXISTS postfix_alias (
);
CREATE TABLE IF NOT EXISTS postfix_alias_virtuels (
id INTEGER PRIMARY KEY AUTOINCREMENT,
courriel TEXT NOT NULL UNIQUE,
courriel TEXT NOT NULL,
destination TEXT NOT NULL,
active INTEGER
);