On Mon, Jun 07, 2010 at 11:33:14AM +0200, Stefano Sasso wrote:
> Hi *,
> is there a quick way to convert a postfix regex/pcre map for use with
> an exim acl?
>
> I have some regex files like this:
> (header_checks)
> /^X-Mailer: .*EVAMAIL/ REJECT Sorry, your mailer was identified as
> mass mailer program.
> ...
> /^X-Mailer: .*Avalanche/ REJECT Sorry, your mailer was identified
> as mass mailer program.
> ...
> /^Date: .* 19[0-9][0-9]/ REJECT Past Date
> /^From: <>/ REJECT You need to specify a return address,
> otherwise we will not accept your email.
>
> (host_blacklist)
> /[Dd]ynamic/ REJECT
> /[Dd][Hh][Cc][Pp]/ REJECT
> /\.dsl\.brasiltelecom\.net\.br$/ REJECT
A single "nwildlsearch" lookup using $message_headers (against a file
containing the above data more or less as-is) would do it, wouldn't it? Not
sure that it's a /good/ way, but it should be /quick/ I think.
Then again, I didn't get much sleep last night, so I could be waaaay off the
mark today :-)
--
Dave Evans
http://djce.org.uk/
http://djce.org.uk/pgpkey