Richard,
> Thanks for the hint, but the CIDR style address is not working. It does
> work if i use a single IP address.
Sorry, my mistake. The second argument to lookup_ip_acl should be
a listref, not a list. This should work:
my($cl_ip) = $msginfo->client_addr;
my(@myisp) = qw( 192.0.2.200 192.0.2.201 192.0.2.0/25 );
if ($cl_ip ne '' && Amavis::Lookup::IP::lookup_ip_acl($cl_ip,[EMAIL
PROTECTED]))
{
# your code here
}
Mark
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
AMaViS-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/amavis-user
AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/howto/