Thanks! I only need to match the domain. And, I was planning to use qmail's default rcpthosts file as the base template (spam_lovers_maps) for the domains and any exceptions to the base config should go into the spam_haters file (default should be to pass spam).
Any ideas for such setup? Thanks, Nicklas > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Gary V > Sent: den 11 oktober 2005 21:40 > To: amavis-user@lists.sourceforge.net > Subject: Re: [AMaViS-user] Negative read_hash? > > Nicklas wrote: > > > Hello, > > > Is it possible to use a negative read_hash? > > > $final_spam_destiny = D_DISCARD; > > > Something like the following: > > > @spam_lovers_maps = ( !read_hash("/spam_haters"), > > read_hash("/spam_lovers") ); > > > Thanks, > > Nicklas > > You would have to use a little different syntax, and > depending on how you set it up you may get unintended > results. In this example, the '.example.com' will match, and > the search for [EMAIL PROTECTED] will not continue. > > @spam_lovers_maps = ( read_hash("/spam_haters"), > read_hash("/spam_lovers") ); > > /spam_haters > # 0 means false = we are not a spam lover .example.com 0 > > /spam_lovers > # 1 (true) is assumed if it is missing > [EMAIL PROTECTED] > .example2.com > > > Best to put them in a single file: > @spam_lovers_maps = ( read_hash("/spam_lovers") ); > > /spam_lovers > # 0 means false = we are not a spam lover # 1 (true) is > assumed if it is missing .example.com 0 [EMAIL PROTECTED] > .example2.com > > Gary V > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: > Power Architecture Resource Center: Free content, downloads, > discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl > _______________________________________________ > 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/ > ------------------------------------------------------- This SF.Net email is sponsored by: Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl _______________________________________________ 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/