Nicklas wrote:

> 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

I assume then that the /lovers will contain a list of domains. This works.

You simply have to manually add full email addresses to the haters
file, followed by a zero. Haters will be read first, because it is
listed first. If a match is found, the search should end there. The
period at the end means "everyone not listed is also a lover".

@spam_lovers_maps = ( read_hash("/spam_haters"), read_hash("/spam_lovers"), "." 
);

/haters
[EMAIL PROTECTED] 0

/lovers
example.com


>> -----Original Message-----
>> From: [EMAIL PROTECTED] 
>> [mailto:[EMAIL PROTECTED] On Behalf Of Gary V
>> Sent: den 11 oktober 2005 21:40
>> To: [email protected]
>> 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
[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/

Reply via email to