> Troy wrote:

>> In the amavis.conf file in the spamassassin area I have the following but
>> mail that is above 10 is still being delivered. Sample header of delivered
>> mail at the bottom. So what I want to happen is spam that is 6.3 or more
> but
>> less than 10 gets delivered with ***SPAM*** and if more than 10 then it
> just
>> gets deleted

>> ----------- amavis.conf -------------
>> # default values, can be overridden by more specific lookups, e.g. SQL
>> $sa_tag_level_deflt  = 1.0; # add spam info headers if at, or above that
>> level
>> $sa_tag2_level_deflt = 6.3; # add 'spam detected' headers at that level
>> $sa_kill_level_deflt = $sa_tag2_level_deflt; # triggers spam evasive
> actions
>>                            # at or above that level: bounce/reject/drop,
>>                            # quarantine, and adding mail address extension

>> $sa_dsn_cutoff_level = 10;  # spam level beyond which a DSN is not sent,
>>                             # effectively turning D_BOUNCE into D_DISCARD;
>>                             # undef disables this feature and is a
> default;



>> --------- Sample header still be delivered -------
>> X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at comstech.com.au
>> X-Spam-Status: Yes, hits=11.6 tagged_above=1.0 required=6.3
> tests=ADDR_FREE,
>>         AWL, BAYES_00, DCC_CHECK, GAPPY_SUBJECT, HTML_50_60,
>>         HTML_IMAGE_RATIO_04, HTML_MESSAGE, MIME_HTML_MOSTLY,
> MPART_ALT_DIFF,
>>         MSGID_FROM_MTA_ID, REMOVE_PAGE, SPF_HELO_SOFTFAIL, SPF_PASS,
>>         URIBL_OB_SURBL
>> X-Spam-Level: ***********
>> X-Spam-Flag: YES
>> X-IMAPbase: 1128951150 4294
>> Status: O
>> X-UID: 4259
>> Content-Length: 2937
>> X-Keywords:

> You appear to have general misconceptions of what some of these
> settings do. I could simply give you the settings you need to do what
> you want to do, but it would be better if you were made aware of how
> the settings work. This may provide insight:

> http://www200.pair.com/mecham/spam/amavisd-settings.html

> Read it, then show what you came up with (if you like).

> Gary V

> ------------------------------------------------------------
> Ok changed this area
> $final_virus_destiny      = D_DISCARD; # (defaults to D_BOUNCE)
> $final_banned_destiny     = D_BOUNCE;  # (defaults to D_BOUNCE)
> $final_spam_destiny       = D_DISCARD;  # (defaults to D_REJECT)
> $final_bad_header_destiny = D_PASS;  # (defaults to D_PASS), D_BOUNCE
> suggested

Looks good.

> The $final_spam_destine was D_PASS so changed this to D_DISCARD so the mail
> just gets deleted as such

D_DISCARD will only delete mail if you have disabled quarantining,
otherwise the mail is quarantined.

> Then set the following to
> $sa_tag_level_deflt  = 1.0; # add spam info headers if at, or above that
> level
> $sa_tag2_level_deflt = 6.3; # add 'spam detected' headers at that level
> $sa_kill_level_deflt = 10; # triggers spam evasive actions
>                            # at or above that level: bounce/reject/drop,
>                            # quarantine, and adding mail address extension

> $sa_dsn_cutoff_level = 15;  # spam level beyond which a DSN is not sent,
>                             # effectively turning D_BOUNCE into D_DISCARD;
>                             # undef disables this feature and is a default;

> So does this seem ok, I will see how it goes

Yes. If you want the Subject line to change, you will also need to
configure the $sa_spam_subject_tag if you have not already done so, e.g.:

$sa_spam_subject_tag = '***SPAM*** ';

Personally I like to see the X-Spam headers in all local mail, so with
this version of amavisd-new I would set:
$sa_tag_level_deflt  = -9999;

Setting $sa_kill_level_deflt = 10; may simply quarantine spam at that
level, depending on whether you have a quarantine configured or not. What
is your $spam_quarantine_to set to? If you really want the mail that
scores at 10 or more to disappear forever, you would also need to set:
$spam_quarantine_to = undef;

Well actually, if memory serves me, that was the default for
20030616-p10, so you could simply comment out that setting, but that
is not a good idea because if you upgrade, the default has changed, so
you could end up filling up your hard drive with quarantined spam that
you thought was getting deleted. BTW, since you are using Debian
Sarge, if you should ever want to upgrade to 2.4.2, read this:
http://www200.pair.com/mecham/spam/upgrade242.html

Gary V


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
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