Mercurial > dnsbl
changeset 100:63e8633abc34 stable-5-8
allow empty env_to at global context to remove all restrictions on child contexts
author | carl |
---|---|
date | Sun, 25 Sep 2005 08:38:29 -0700 |
parents | f8963ddf7143 |
children | 6ac7ba4a8312 |
files | ChangeLog dnsbl.conf dnsbl.spec.in package.bash src/context.cpp xml/dnsbl.in xml/sample.conf |
diffstat | 7 files changed, 15 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- 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.
--- 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 {
--- 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
--- 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
--- 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;
--- 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 @@ <head> <meta http-equiv="Content-Type" content="text/html; charset=windows-1252"> -<title>DNSBL Sendmail milter - Version 5.7</title> +<title>DNSBL Sendmail milter - Version 5.8</title> </head> <center>Introduction</center>
--- a/xml/sample.conf Fri Sep 23 07:58:34 2005 -0700 +++ b/xml/sample.conf Sun Sep 25 08:38:29 2005 -0700 @@ -59,7 +59,9 @@ }; env_to { - mydomain.com; # child contexts are not allowed to specify recipient addresses outside these domains + # child contexts are not allowed to specify recipient addresses outside these domains + # leave this outer global context env_to empty to allow arbitrary recipients in child contexts + mydomain.com; customer1.com; customer1a.com; customer1b.com;