On 7/19/10, Michael Scheidell wrote: > On 7/19/10 11:39 AM, Martín Ferco wrote: > > But that would imply that I would need to create records for *EVERY* > > user, right? Can't I leave the default as "wants spam", and then only > > insert the ones that want their spam quarantined? Is there also a way > > to do it *without* sql? > > > > > set your defaults., use the '@.' user for defaults. > only set up users who want spam in sql, the policy sql queries will look > for a specific user first, then the @. if they don't find it. > > -- > Michael Scheidell, CTO
Here is a possibility. Spam quarantine is triggered when a message scores at kill_level or higher. If you set kill_level high enough (9999 for example), you could set: $final_spam_destiny = D_DISCARD; and then use something like the sample in amavisd.conf-sample: $sa_kill_level_deflt = 9999; # default set high enough to pass all spam @spam_kill_level_maps = ( { 'us...@example.com' => 6.5, 'us...@exmaple.com' => 6.5, 'us...@example.com' => 8 }, \$sa_kill_level_deflt, # catchall default ); I assume you have configured a spam quarantine. The disadvantage of using static maps is that you must reload amavisd-new after making changes. If you are not familiar with SQL then it would be much harder to set up, but the advantage is that changes are dynamic and do not require you to reload amavisd-new. Do you have a spam quarantine configured? If so, what do you currently have $sa_kill_level_deflt set at? If you had (for example): $final_spam_destiny = D_PASS; $sa_kill_level_deflt = 5.0; Then all spam would be passed the the recipients, AND a copy of spam that scores at 5.0 or higher would go to your quarantine. Look in your amavisd.conf-sample -- Gary V ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ AMaViS-user mailing list AMaViS-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/amavis-user Please visit http://www.ijs.si/software/amavisd/ regularly For administrativa requests please send email to rainer at openantivirus dot org