<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">On 8/27/2013 11:37 AM, Benedict White
wrote:<br>
</div>
<blockquote
cite="mid:ACF27D5D1618A443A0D3B7F1A28B4CDADE6222BAD4@snowball"
type="cite">
<blockquote type="cite" style="color: #000000;">
<pre wrap="">On 8/26/2013 5:45 PM, Benedict White via amavis-users wrote:
<span class="moz-txt-citetags">></span>
<span class="moz-txt-citetags">></span>1 - If I want to add something to the default list of @virus_name_to_spam_score_maps, do I need to define the default ones, or will it >simply add the existing ones? I would assume that defining a rule will overwrite the >existing one, but not sure if by defining >@virus_name_to_spam_score_maps would replace all the other existing ones.
<span class="moz-txt-citetags">></span>
<span class="moz-txt-citetags">></span>I preume that if you define that map you will over write the default so if you want to add to it, copy the default into your amavisd.conf
<span class="moz-txt-citetags">></span>and then add to it.
<span class="moz-txt-citetags">></span>
<span class="moz-txt-citetags">></span>Thanks - that's what I was thinking...
<span class="moz-txt-citetags">></span>
<span class="moz-txt-citetags">></span>
<span class="moz-txt-citetags">></span>2 - Is there a sample local.cf to accompany the existing default set? Working on a sample provided a few years ago and was looking for >a more up-to-date version.
<span class="moz-txt-citetags">></span>
<span class="moz-txt-citetags">></span>local,cf is a Spammassassin config file, download the latest version of that and have a look at it.
<span class="moz-txt-citetags">></span>
<span class="moz-txt-citetags">></span>
<span class="moz-txt-citetags">></span>What I'm looking for is the corresponding entries that would go in the local.cf file that match the new defined virus_name_to_spam_score_maps.
<span class="moz-txt-citetags">></span>
<span class="moz-txt-citetags">></span>This would be something like:
<span class="moz-txt-citetags">></span>
<span class="moz-txt-citetags">></span>header L_AV_Phish X-Amavis-AV-Status =~ m{\bAV:(Email|HTML)\.Phishing\.}i
<span class="moz-txt-citetags">></span>score L_AV_Phish 14
<span class="moz-txt-citetags">></span>
<span class="moz-txt-citetags">></span>I'd rather not reinvent the wheel if someone already wrote these.
</pre>
</blockquote>
<pre wrap="">virus_name_to_spam_score_maps is an Amavisd setting not a Spamassassin setting so it doesn't crop up in a local.cf
Kindest regards,
Benedict White
</pre>
</blockquote>
<br>
Not quite. When you define @virus_name_to_spam_score_maps, you
downgrade a reported infection to spam. The default values for most
(some stay undefined to keep the status as infected) is set to 0.1.
You have the option to change the values here, or, you can keep this
small value and make adjustments in spamassassin in local.cf (or a
dedicated sa config file). This detection is passed down to SA and
hence you would make the corresponding scores like my example
above. The benefit of this is that other SA rules would also be
triggered and add to the score.<br>
<br>
In my example, Amavis adds 0.1 points to Email|HTML.Phishing
detections by ClamAV but then SA adds 14 points with it's definition
in local.cf.<br>
<br>
There was an old one posted years ago but looks like it was never
updated. <br>
<br>
<a class="moz-txt-link-freetext" href="http://www200.pair.com/mecham/spam/amavis-sanesecurity_v2.cf">http://www200.pair.com/mecham/spam/amavis-sanesecurity_v2.cf</a><br>
<br>
Since the defaults for @virus_name_to_spam_score_maps has been
updated, I imagined a corresponding version of the above would also
be available.<br>
<br>
Thanks in advance.<br>
<br>
<br>
<br>
<br>
<br>
<div class="moz-signature">--
<div style="font-family:times new roman, new york, times, serif;"
"="">
<span style="color:gray;">
°(((
</span>
<span style="color:black;text-decoration:underline;">
=
</span>
<span style="color:gray;">
((
</span>
<span style="color:black;text-decoration:underline;">
===°°°
</span>
<span style="color:gray;">
(((
</span>
<span style="color:red;text-decoration:underline;">
================================================
</span></div>
</div>
</body>
</html>