From a1d97ed10fc24bb33d302e650e9615b9efbfc058 Mon Sep 17 00:00:00 2001
From: Purodha Blissenbach <purodha.blissenbach@hostsharing.net>
Date: Thu, 16 Aug 2012 14:43:24 +0200
Subject: [PATCH] implement greylisting domain option

---
 hsarback/database/data.sql |   71 +++++++++++++++++++++++++++--------
 1 files changed, 54 insertions(+), 17 deletions(-)

diff --git a/hsarback/database/data.sql b/hsarback/database/data.sql
index 7b5938c..dd710b6 100644
--- a/hsarback/database/data.sql
+++ b/hsarback/database/data.sql
@@ -72,43 +72,72 @@
 -- Table: inet_addr 
 --
 INSERT INTO inet_addr (inet_addr, description)
-	VALUES (inet '192.168.108.200', 'address 200');
+	VALUES (inet '176.9.242.67', 'address 67');
 INSERT INTO inet_addr (inet_addr, description)
-	VALUES (inet '192.168.108.201', 'address 201');
+	VALUES (inet '176.9.242.72', 'address 72');
 INSERT INTO inet_addr (inet_addr, description)
-	VALUES (inet '192.168.108.202', 'address 202');
+	VALUES (inet '176.9.242.73', 'address 73');
 INSERT INTO inet_addr (inet_addr, description)
-	VALUES (inet '192.168.108.203', 'address 203');
+	VALUES (inet '176.9.242.74', 'address 74');
 INSERT INTO inet_addr (inet_addr, description)
-	VALUES (inet '192.168.108.204', 'address 204');
+	VALUES (inet '176.9.242.75', 'address 75');
 INSERT INTO inet_addr (inet_addr, description)
-	VALUES (inet '192.168.108.205', 'address 205');
+	VALUES (inet '176.9.242.76', 'address 76');
 INSERT INTO inet_addr (inet_addr, description)
-	VALUES (inet '192.168.108.206', 'address 206');
+	VALUES (inet '176.9.242.77', 'address 77');
 INSERT INTO inet_addr (inet_addr, description)
-	VALUES (inet '192.168.108.207', 'address 207');
-INSERT INTO inet_addr (inet_addr, description)
-	VALUES (inet '192.168.108.208', 'address 208');
-INSERT INTO inet_addr (inet_addr, description)
-	VALUES (inet '192.168.108.209', 'address 209');
-INSERT INTO inet_addr (inet_addr, description)
-	VALUES (inet '192.168.108.210', 'address 210');
+	VALUES (inet '176.9.242.78', 'address 78');
 
 --
 -- Table: Hive 
 --
 INSERT INTO hive (hive_name, inet_addr_id, description)
-	SELECT 'h81', inet_addr_id, 'Test Hive h081' FROM inet_addr WHERE inet_addr = inet '192.168.108.200';
+	SELECT 'h99', inet_addr_id, 'Test Hive h99' FROM inet_addr WHERE inet_addr = inet '176.9.242.67';
 
 --
 -- table: packet 
 --
 INSERT INTO packet (packet_name, bp_id, hive_id, created, cur_inet_addr_id)
 	SELECT 'hsh00', business_partner.bp_id, hive.hive_id, current_date, inet_addr.inet_addr_id FROM business_partner, hive, inet_addr 
-		WHERE hive_name='h81' AND inet_addr = inet '192.168.108.201' AND member_id = 10000; 
+		WHERE hive_name='h99' AND inet_addr = inet '176.9.242.72' AND member_id = 10000; 
 INSERT INTO packet (packet_name, bp_id, hive_id, created, cur_inet_addr_id)
 	SELECT 'hsh01', business_partner.bp_id, hive.hive_id, current_date, inet_addr.inet_addr_id FROM business_partner, hive, inet_addr 
-		WHERE hive_name='h81' AND inet_addr = inet '192.168.108.202' AND member_id = 10000; 
+		WHERE hive_name='h99' AND inet_addr = inet '176.9.242.73' AND member_id = 10000;
+		
+--
+-- table: packet_component 
+--
+INSERT INTO packet_component (basepacket_id, basecomponent_id, packet_id, quantity, created)
+	SELECT 1, 1, packet.packet_id, 2, current_date FROM packet 
+		WHERE packet.packet_name = 'hsh00'; 
+INSERT INTO packet_component (basepacket_id, basecomponent_id, packet_id, quantity, created)
+	SELECT 1, 2, packet.packet_id, 128, current_date FROM packet 
+		WHERE packet.packet_name = 'hsh00'; 
+INSERT INTO packet_component (basepacket_id, basecomponent_id, packet_id, quantity, created)
+	SELECT 1, 3, packet.packet_id, 0, current_date FROM packet 
+		WHERE packet.packet_name = 'hsh00'; 
+INSERT INTO packet_component (basepacket_id, basecomponent_id, packet_id, quantity, created)
+	SELECT 1, 4, packet.packet_id, 0, current_date FROM packet 
+		WHERE packet.packet_name = 'hsh00'; 
+INSERT INTO packet_component (basepacket_id, basecomponent_id, packet_id, quantity, created)
+	SELECT 1, 5, packet.packet_id, 0, current_date FROM packet 
+		WHERE packet.packet_name = 'hsh00'; 
+INSERT INTO packet_component (basepacket_id, basecomponent_id, packet_id, quantity, created)
+	SELECT 1, 1, packet.packet_id, 2, current_date FROM packet 
+		WHERE packet.packet_name = 'hsh01'; 
+INSERT INTO packet_component (basepacket_id, basecomponent_id, packet_id, quantity, created)
+	SELECT 1, 2, packet.packet_id, 128, current_date FROM packet 
+		WHERE packet.packet_name = 'hsh01'; 
+INSERT INTO packet_component (basepacket_id, basecomponent_id, packet_id, quantity, created)
+	SELECT 1, 3, packet.packet_id, 0, current_date FROM packet 
+		WHERE packet.packet_name = 'hsh01'; 
+INSERT INTO packet_component (basepacket_id, basecomponent_id, packet_id, quantity, created)
+	SELECT 1, 4, packet.packet_id, 0, current_date FROM packet 
+		WHERE packet.packet_name = 'hsh01'; 
+INSERT INTO packet_component (basepacket_id, basecomponent_id, packet_id, quantity, created)
+	SELECT 1, 5, packet.packet_id, 0, current_date FROM packet 
+		WHERE packet.packet_name = 'hsh01'; 
+
 --
 -- table: unixuser 
 --
@@ -121,3 +150,11 @@
 INSERT INTO unixuser (name, comment, shell, homedir, locked, packet_id, userid)
 	SELECT 'hsh01-ad', 'hostmaster ad', '/bin/bash', '/home/pacs/hsh01/users/ad', FALSE, packet_id, 10003 FROM packet 
 		WHERE packet_name='hsh01'; 
+
+--
+-- table: domain_option
+--
+INSERT INTO domain_option (domain_option_name) 
+	VALUES ('nogreylisting');
+INSERT INTO domain_option (domain_option_name)
+	VALUES ('nohtdocsfallback');

--
Gitblit v1.9.1