Nick, > I've written a query for sql_select_policy which apart from the policy > information, returns local as Y (when a user is matched) to avoid spam > scanning of our local users.
@local_domain_maps (and its SQL lookup component) have no effect on whether spam tests are run or not. It only affects inserting of X-Spam-* header fields (along with some other decisions). The bypass_spam_checks controls whether spam tests are run or not. > What I haven't been able to understand is > how I specify that this result means local in @local_domain_maps... It does by itself. A SQL lookup method is prepended automatically to the @local_domain_maps list of lookup methods when SQL is enabled. > Or do I just comment it out and let the policy information specify it > for me? Leaving out the 'local' field from the database usually does what is desired automatically, provided that all local domains have their record in table 'users'. Another possibility is to have NULL in the 'local' field, which lets a lookup mechanism proceed the search with the next method in the list, i.e. with statical lookups tables in @local_domain_maps. But it looks it's not the local_domain that you are after. > Sorry if it's a stupid question, but either my reading comprehension is > lacking or I'm looking at the wrong documents, because I haven't found > anything that clears it up for me. It's mainly the README_FILES/README.lookups that deals with it. Admittedly it is not written from the user's perspective. 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/
