On Sun, May 31, 2009 at 03:20:09PM -0400, Steve Shockley wrote:
> I have an OpenBSD 4.2 system running milter-regex 1.6. As part of the
> milter-regex rules, I have:
>
> # reject things that look like they might come from a dynamic address
> reject "Looks like a dynamic address"
> connect /[0-9][0-9]*\-[0-9][0-9]*\-[0-9][0-9]*/ //
> connect /[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*/ //
> connect /[0-9]{12}/e //
>
> That's been working quite well so far. A few days ago, it seems it's
> started matching "mail16.websecurestores.com" and returning "Looks like
> a dynamic address". Any idea why that string would match those regular
> expressions? I'm far from a regex guru, and this one has me confused.
I have never used milter-regex, but none of these regex should ever
match "mail16.websecurestores.com".
The manual page for milter regex states the following:
When resolution fails, the hostname contains the numerical address
in square brackets.
in case your resolver fails to resolve 209.147.117.6 ->
mail16.websecurestores.com,
/[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*/ will successfully match
"209.147.117.6"