From c55375d632d49593cb7d89f766393f29b3502e16 Mon Sep 17 00:00:00 2001 From: ycharbi Date: Wed, 23 Jun 2021 15:25:14 +0200 Subject: [PATCH] =?UTF-8?q?Cr=C3=A9ation=20d'exemples=20d'alias=20virtuels?= =?UTF-8?q?=20plus=20repr=C3=A9sentatifs=20du=20r=C3=A9el?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- outils/données.sql | 9 ++++++--- outils/postfix.sql | 2 +- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/outils/données.sql b/outils/données.sql index 67d2b81..9cf2cae 100644 --- a/outils/données.sql +++ b/outils/données.sql @@ -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); diff --git a/outils/postfix.sql b/outils/postfix.sql index fc2d935..e98993b 100644 --- a/outils/postfix.sql +++ b/outils/postfix.sql @@ -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 );