Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 22 Aug 2010 10:00:49 +0200
From:      Stefan Bethke <stb@lassitu.de>
To:        John Nielsen <lists@jnielsen.net>
Cc:        gshapiro@freebsd.org, FreeBSD Stable <freebsd-stable@freebsd.org>
Subject:   Re: Apparent dnsbl bug in Sendmail or m4
Message-ID:  <CD37C0F6-F202-4941-A740-BF17358270A5@lassitu.de>
In-Reply-To: <20100822031045.sl4d10544k0s80kw@newwebmail.jnielsen.net>
References:  <20100822031045.sl4d10544k0s80kw@newwebmail.jnielsen.net>

next in thread | previous in thread | raw e-mail | index | archive | help
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 $)
> R<?>OK                  $: OKSOFAR
> R<?>$+<TMP>             $: 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 $)
> R<?>OK                  $: OKSOFAR
> R<?>$+<TMP>             $: 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 $)
R<?>OK                  $: OKSOFAR
R<?>$+<TMP>             $: 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 <stb@lassitu.de>   Fon +49 151 14070811






Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CD37C0F6-F202-4941-A740-BF17358270A5>