Victor Duchovni:
> On Mon, Aug 30, 2010 at 01:06:28PM -0500, Stan Hoeppner wrote:
>
> > Is there a straightforward (i.e. relatively painless) way to check the
> > header from, reply-to, and message-id domains against dbl.spamhaus.org
> > and reject on a positive reply as with reject_r*bl_client?
>
> Not from Postfix. There is currently no support in cleanup(8)
> for extracting domains from headers and applying RBL checks. The
> Postfix SMTP server does not look at the message content.
Some courageous person could implement this as:
header_checks = tcp:127.0.0.1:port
and write a Perl script that rips domain names from headers and
runs them through dbl lookups.
I don't have time, but with Net::DNS this should involve no more
than a dozen lines of code (using the spawn(8) daemon for connection
management). As a stand-alone program, maybe two dozen lines.
Wietse
> > Without having to write a content filter to be called in action
> > filter:nexthop in header_checks.pcre?
>
> It would need to be a pre-queue proxy filter, to reject mail.
>
> --
> Viktor.
>
>