Remco wrote: > Hi,
> I want to bypass virus checks for ALL domains, except the ones in a > lookup table. Is this possible with my Postfix > Amavisd-new setup? > I DO want to have spam checks for all domains. > greetings, > R. Bressers How many domains are in the lookup table, and what format are you planning the lookup table to be in? If you had a small number of domains to exclude, you could use older but still compatible @bypass_virus_checks_acl: @bypass_virus_checks_acl = qw( !.test.com !.test2.com . ); Translates to: do not bypass the first 2, bypass everything else. >From http://www.ijs.si/software/amavisd/README.lookups.txt "Users are free to leave these @*_maps variables at their default, referencing the legacy variables, or the list can be replaced entirely." Use log level 5 when testing, then look for (or grep) bypass_virus_checks in your logs. Here is an example that uses read_hash to read a file from disk: @bypass_virus_checks_maps = (\read_hash("$MYHOME/bypass_virus_checks"), 1); The contents of the bypass_virus_checks file could read: # we have set @bypass_virus_checks_maps = (\read_hash("$MYHOME/bypass_virus_checks"), 1); # which means no virus checks will be performed by default. If you would like to perform # virus checks on a domain (and optionally subdomains) include them in # this associative array using a 0 for the value. For example: # .example.com 0 # .example1.com 0 example2.com 0 example4.com 0 .example5.com 0 Gary V ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ AMaViS-user mailing list AMaViS-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/amavis-user AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3 AMaViS-HowTos:http://www.amavis.org/howto/