# HG changeset patch # User carl # Date 1127662709 25200 # Node ID 63e8633abc3453a2c0dd7155f778844cc6d01bcc # Parent f8963ddf71435d55ddce4fe5773a8c5b7f6f3070 allow empty env_to at global context to remove all restrictions on child contexts diff -r f8963ddf7143 -r 63e8633abc34 ChangeLog --- a/ChangeLog Fri Sep 23 07:58:34 2005 -0700 +++ b/ChangeLog Sun Sep 25 08:38:29 2005 -0700 @@ -1,5 +1,9 @@ $Id$ +5.8 2005-09-25 + Allow empty env_to at global context level to remove restrictions + on env_to values in child contexts. + 5.7 2005-09-23 Failed to return a value from parse_verify() which caused failures to load the configuration. diff -r f8963ddf7143 -r 63e8633abc34 dnsbl.conf --- a/dnsbl.conf Fri Sep 23 07:58:34 2005 -0700 +++ b/dnsbl.conf Sun Sep 25 08:38:29 2005 -0700 @@ -15,8 +15,10 @@ }; env_to { - example.com; # !! replace this with your domain name + # !! replace this with your domain names # child contexts are not allowed to specify recipient addresses outside these domains + # or leave this empty to allow unrestricted child contexts + # example.com; }; context whitelist { diff -r f8963ddf7143 -r 63e8633abc34 dnsbl.spec.in --- a/dnsbl.spec.in Fri Sep 23 07:58:34 2005 -0700 +++ b/dnsbl.spec.in Sun Sep 25 08:38:29 2005 -0700 @@ -1,6 +1,6 @@ Summary: DNSBL Sendmail Milter Name: dnsbl -Version: 5.7 +Version: 5.8 Release: 2 Copyright: GPL Group: System Environment/Daemons diff -r f8963ddf7143 -r 63e8633abc34 package.bash --- a/package.bash Fri Sep 23 07:58:34 2005 -0700 +++ b/package.bash Sun Sep 25 08:38:29 2005 -0700 @@ -1,6 +1,6 @@ #!/bin/bash -VER=dnsbl-5.7 +VER=dnsbl-5.8 mkdir $VER target1=/home/httpd/html/510sg/util/dnsbl.tar.gz target2=/home/httpd/html/510sg/dnsbl.conf diff -r f8963ddf7143 -r 63e8633abc34 src/context.cpp --- a/src/context.cpp Fri Sep 23 07:58:34 2005 -0700 +++ b/src/context.cpp Sun Sep 25 08:38:29 2005 -0700 @@ -519,6 +519,7 @@ if (x) x++; else x = to; if (*x == '\0') return true; // always allow covering addresses with no domain name, eg abuse@ + if (!parent && env_to.empty()) return true; // empty env_to at global level covers everything string_set::iterator i = env_to.find(x); if (i != env_to.end()) return true; return false; diff -r f8963ddf7143 -r 63e8633abc34 xml/dnsbl.in --- a/xml/dnsbl.in Fri Sep 23 07:58:34 2005 -0700 +++ b/xml/dnsbl.in Sun Sep 25 08:38:29 2005 -0700 @@ -2,7 +2,7 @@
-