From owner-freebsd-stable@FreeBSD.ORG Sun Aug 22 08:01:14 2010 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2464C106566C for ; Sun, 22 Aug 2010 08:01:14 +0000 (UTC) (envelope-from stb@lassitu.de) Received: from gilb.zs64.net (gilb.zs64.net [212.12.50.234]) by mx1.freebsd.org (Postfix) with ESMTP id DBDCB8FC18 for ; Sun, 22 Aug 2010 08:01:13 +0000 (UTC) Received: by gilb.zs64.net (Postfix, from stb@lassitu.de) id E070E93A72; Sun, 22 Aug 2010 08:00:56 +0000 (UTC) Mime-Version: 1.0 (Apple Message framework v1081) Content-Type: text/plain; charset=us-ascii From: Stefan Bethke In-Reply-To: <20100822031045.sl4d10544k0s80kw@newwebmail.jnielsen.net> Date: Sun, 22 Aug 2010 10:00:49 +0200 Content-Transfer-Encoding: quoted-printable Message-Id: References: <20100822031045.sl4d10544k0s80kw@newwebmail.jnielsen.net> To: John Nielsen X-Mailer: Apple Mail (2.1081) Cc: gshapiro@freebsd.org, FreeBSD Stable Subject: Re: Apparent dnsbl bug in Sendmail or m4 X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 22 Aug 2010 08:01:14 -0000 Am 22.08.2010 um 09:10 schrieb John Nielsen: > FEATURE(dnsbl, `bl.spamcop.net', `"550 Mail from " $&{client_addr} " = rejected, see http://spamcop.net/bl.shtml?" $&{client_addr}') >=20 > On the FreeBSD 4.x server, this is the corresponding section in the = .cf file: >=20 > # DNS based IP address spam list bl.spamcop.net > R$* $: $&{client_addr} > R$-.$-.$-.$- $: $(dnsbl $4.$3.$2.$1.bl.spamcop.net. $: = OK $) > ROK $: OKSOFAR > R$+ $: TMPOK > R$+ $#error $@ 5.7.1 $: "550 Mail from " = $&{client_addr} " rejected, s > ee http://spamcop.net/bl.shtml?" $&{client_addr} >=20 > On the FreeBSD 8.x server, this is the corresponding section: >=20 > # DNS based IP address spam list bl.spamcop.net > R$* $: $&{client_addr} > R$-.$-.$-.$- $: $(dnsbl $4.$3.$2.$1.bl.spamcop.net. $: = OK $) > ROK $: OKSOFAR > R$+ $: TMPOK I've got: FEATURE(`dnsbl', `ix.dnsbl.manitu.net',`"550 Rejected - see = http://www.heise.de/ix/nixspam/nixspam.blackmatches"')dnl in my .mc, and get this in my .cf: # DNS based IP address spam list ix.dnsbl.manitu.net R$* $: $&{client_addr} R$-.$-.$-.$- $: $(dnsbl $4.$3.$2.$1.ix.dnsbl.manitu.net. = $: OK $) ROK $: OKSOFAR R$+ $: TMPOK R$+ $#error $@ 5.7.1 $: "550 Rejected - see = http://www.heise.de/ix/nixspam/nixspam.blackmatches" This is on 8.1 from July 15th. I just ran make all again, and it stays = the same. Fired up my VMware image with a three-day old -stable, and put both mine = and yours in, and yours is missing the error line. I experimented a bit, and it appears that the macro does not like having = the $&{client_addr} at the very end of the parameter. If I add "", it = starts working. No idea how or why, but there you go :-) FEATURE(`dnsbl', `bl.spamcop.net', `"550 " $&{client_addr} "foo" = $&{client_addr} ""')dnl Stefan --=20 Stefan Bethke Fon +49 151 14070811