1 |
diff -up smeserver-wbl-0.1.0/createlinks.WBLentry smeserver-wbl-0.1.0/createlinks |
2 |
--- smeserver-wbl-0.1.0/createlinks.WBLentry 2008-10-13 16:09:56.000000000 -0400 |
3 |
+++ smeserver-wbl-0.1.0/createlinks 2013-07-15 20:11:59.000000000 -0400 |
4 |
@@ -8,6 +8,7 @@ my $panel = "manager"; |
5 |
panel_link("wbl", $panel); |
6 |
|
7 |
templates2events("/var/qmail/control/badmailfrom", "email-update"); |
8 |
+templates2events("/var/service/qpsmtpd/config/badmailfrom", "email-update"); |
9 |
templates2events("/var/service/qpsmtpd/config/badhelo", "email-update"); |
10 |
templates2events("/var/service/qpsmtpd/config/whitelisthelo", "email-update"); |
11 |
templates2events("/var/service/qpsmtpd/config/whitelisthosts", "email-update"); |
12 |
diff -up smeserver-wbl-0.1.0/root/etc/e-smith/templates/var/service/qpsmtpd/config/badmailfrom/10wbl_badmailfrom.WBLentry smeserver-wbl-0.1.0/root/etc/e-smith/templates/var/service/qpsmtpd/config/badmailfrom/10wbl_badmailfrom |
13 |
--- smeserver-wbl-0.1.0/root/etc/e-smith/templates/var/service/qpsmtpd/config/badmailfrom/10wbl_badmailfrom.WBLentry 2013-07-15 20:10:32.000000000 -0400 |
14 |
+++ smeserver-wbl-0.1.0/root/etc/e-smith/templates/var/service/qpsmtpd/config/badmailfrom/10wbl_badmailfrom 2007-01-05 16:33:27.000000000 -0500 |
15 |
@@ -0,0 +1,18 @@ |
16 |
+{ |
17 |
+ use esmith::ConfigDB; |
18 |
+ |
19 |
+ my $wdb = esmith::ConfigDB->open_ro('wbl') |
20 |
+ || die "Unable to open wbl configuration dbase."; |
21 |
+ my %list = $wdb->get('badmailfrom')->props; |
22 |
+ |
23 |
+ $OUT = ''; |
24 |
+ my $parameter = ""; |
25 |
+ my $value = ""; |
26 |
+ while (($parameter,$value) = each(%list)) { |
27 |
+ if ($parameter eq "type") {next;} |
28 |
+ |
29 |
+ if ($value eq "Black") { |
30 |
+ $OUT .= "$parameter\n"; |
31 |
+ } |
32 |
+ } |
33 |
+} |