Re: [Exim] does rbl_domains work with lookups ?

Top Page
Delete this message
Reply to this message
Author: Peter Galbavy
Date:  
To: exim-users
Subject: Re: [Exim] does rbl_domains work with lookups ?
John Horn said:
> I'd say you cannot do it (as things stand). The rbl_domains config option

is
> a string, but not expanded - hence you can't use ${lookup...}.


What are the chances something as simple as this would work:

--- src/smtp_in.c.orig  Sat Nov 25 16:02:51 2000
+++ src/smtp_in.c       Fri Feb 23 09:55:21 2001
@@ -1088,7 +1088,7 @@ smtp_start_session(void)
 {
 int size = 256;
 int ptr;
-char *p, *s, *ss;
+char *p, *listptr, *s, *ss;


helo_seen = esmtp = helo_accept_junk = FALSE;
host_allow_relay_anywhere_set = FALSE;
@@ -1421,11 +1421,11 @@ if (!sender_host_unknown)
Logging will happen later, possibly including the headers if wanted. */

   rbl_host = FALSE;
-  if (!host_refuse_all_rcpts && rbl_domains != NULL &&
+  listptr = expand_string(rbl_domains);
+  if (!host_refuse_all_rcpts && listptr != NULL &&
       verify_check_host(&rbl_hosts, TRUE))
     {
     char domain[256];
-    char *listptr = rbl_domains;
     int sep = 0;


     while (string_nextinlist(&listptr, &sep, domain, sizeof(domain)) !=
NULL)


Peter