]> www.infradead.org Git - users/dwmw2/eximconf.git/commitdiff
fix greylist for IPv6 known resenders
authorDavid Woodhouse <dwmw2@infradead.org>
Sun, 25 Nov 2007 19:17:28 +0000 (19:17 +0000)
committerDavid Woodhouse <dwmw2@infradead.org>
Sun, 25 Nov 2007 19:17:28 +0000 (19:17 +0000)
include/acl-greylist-sqlite

index 9efcf1ebd377bbab5b829f3d64d90c5eeb12126b..bb2290714c163f43d647a640f171bbbe37302caf 100644 (file)
@@ -1,4 +1,4 @@
-# $Id: acl-greylist-sqlite,v 1.2 2007/11/25 18:25:51 dwmw2 Exp $
+# $Id: acl-greylist-sqlite,v 1.3 2007/11/25 19:17:28 dwmw2 Exp $
 
 GREYDB=/var/spool/exim/db/greylist.db
 
@@ -52,9 +52,9 @@ greylist_mail:
 
   # Secondly, there's _absolutely_ no point in greylisting mail from
   # hosts which are known to resend their mail. Just accept it.
-  accept hosts = sqlite;GREYDB SELECT host from resenders \
+  accept condition = ${lookup sqlite {GREYDB SELECT host from resenders \
                               WHERE helo='${quote_sqlite:$sender_helo_name}' \
-                              AND host='$sender_host_address';
+                              AND host='$sender_host_address';} {1}}
 
   # Generate a hashed 'identity' for the mail, as described above.
   warn set acl_m_greyident = ${hash{20}{62}{$sender_address$recipients$h_message-id:}}