On Sun, July 24, 2005 12:45, Roman Khassraf said:
>
> i have an acl_smtp_helo ACL :
>
> accept hosts = :
> accept hosts = +relay_from_hosts
> drop condition = ${if match{$sender_helo_name}{MY_IP}{yes}{no} }
> message = "Dropped spammer pretending to be us"
> drop condition = ${if
> match{$sender_helo_name}{^[0-9]\.[0-9]\.[0-9]\.[0-9]}
>
This 'match' expression is wrong. You are matching against single digits,
but as it stands the '\.' will be interpreted as any character as well
because the second argument is expanded.
Try using:
match{$sender_helo_name}{\N^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}\N}
John.
--
---------------------------------------------------------------
John Horne, University of Plymouth, UK Tel: +44 (0)1752 233914
E-mail: John.Horne@??? Fax: +44 (0)1752 233839