Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

[AMaViS-user] sa_tag2_level_deflt

326 views
Skip to first unread message

Gary Buckmaster

unread,
Dec 28, 2004, 1:19:24 PM12/28/04
to
Hi,

Can anyone explain the relevance of the sa_tag_level_deflt and
sa_tag2_level_deflt variables in the amavis config file? These
apparently seem to set thresholds for spam detection with no regard
whatsoever to what is listed as the threshold in the spamassassin
local.cf file. Am I correct in this? If so, what is the
justification for this?

Best,

Gary


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/
_______________________________________________
AMaViS-user mailing list
AMaVi...@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/

Martin Svensson

unread,
Dec 28, 2004, 1:28:07 PM12/28/04
to

You're correct that amavis is settings all the scores, based on the
score returned from SA.

Check out the FAQ and docs for more info,
http://www.ijs.si/software/amavisd/#faq-spam

BR,
Martin

Daniel Luttermann

unread,
Dec 28, 2004, 1:52:47 PM12/28/04
to
Hi Gary,

> Can anyone explain the relevance of the sa_tag_level_deflt and
> sa_tag2_level_deflt variables in the amavis config file? These
> apparently seem to set thresholds for spam detection with no regard
> whatsoever to what is listed as the threshold in the spamassassin
> local.cf file. Am I correct in this? If so, what is the
> justification for this?

Yes, that's the threshold.

sa_tag_level_deflt means: when you receive an email and the score is
above that score the emails gets tagged as possible spam. If so,
additional headers are inserted into the mail header like this:

X-Spam-Status: No, hits=4.699 tagged_above=3 required=6
tests=FROM_ENDS_IN_NUMS, HTML_40_50, HTML_MESSAGE,
MIME_HEADER_CTYPE_ONLY,MIME_HTML_ONLY, NO_REAL_NAME

If the score increases the sa_tag2_level_deflt then the subject is
rewritten to ***SPAM***, if you've configured this setting and the
mail gets tagged as spam (X-Spam-Status: Yes).The header looks like:

X-Spam-Status: Yes, hits=6.241 tagged_above=3 required=6 tests=....

These tag_levels are controlled by amavisd-new. The settings is your
local.cf have no effect.

When you have nowhere configured these sa_tag_level settings then the
above scores defines the standard for all users.

If this is what you wan than it's OK else you must define different
settings in amavisd.conf or in a sql database.

For example you can use:

#@spam_tag2_level_maps = (
# { 'us...@example.com' => 8.0, '.example.com' => 6.0 },
# \$sa_tag2_level_deflt, # catchall default
#);

on per user or domain level.


--
Best Regards
Daniel Luttermann
mailto:daniel.l...@t-online.de

Gary Buckmaster

unread,
Dec 29, 2004, 1:07:27 PM12/29/04
to
Hi Daniel,

Ok, that makes sense to me, but doesn't fit what I need for my current
application of amavisd. Is there an easy way to have amavisd key off
the value in the local.cf file or do I need to write a quick
assignment routine in my amavisd.conf file?

-Gary

Clifton Royston

unread,
Dec 29, 2004, 1:56:11 PM12/29/04
to
On Wed, Dec 29, 2004 at 12:06:24PM -0600, Gary Buckmaster wrote:
> Hi Daniel,
>
> Ok, that makes sense to me, but doesn't fit what I need for my current
> application of amavisd. Is there an easy way to have amavisd key off
> the value in the local.cf file or do I need to write a quick
> assignment routine in my amavisd.conf file?

I must be missing something. Why don't you simply edit the values in
the amavisd.conf file instead of in the local.cf file?

Is it because you have some other software that dynamically changes
the local.cf values? Otherwise it would seem that the simplest thing
is to simply edit the values amavisd uses.

-- Clifton

--
Clifton Royston -- clif...@tikitechnologies.com
Tiki Technologies Lead Programmer/Software Architect
Did you ever fly a kite in bed? Did you ever walk with ten cats on your head?
Did you ever milk this kind of cow? Well we can do it. We know how.
If you never did, you should. These things are fun, and fun is good.
-- Dr. Seuss

Gary Buckmaster

unread,
Dec 29, 2004, 2:09:17 PM12/29/04
to
> I must be missing something. Why don't you simply edit the values in
> the amavisd.conf file instead of in the local.cf file?
>
> Is it because you have some other software that dynamically changes
> the local.cf values? Otherwise it would seem that the simplest thing
> is to simply edit the values amavisd uses.
>
> -- Clifton

that's exactly why. I have a proof of concept project I'm putting
together for my bosses that requires a easy to use web interface.
Since it isn't allowed to dominate my time I used the Spamassassin
webmin module as my starting point. Once I can get a working
demonstration and get the bosses to sign off on it, I can do things
properly, but for the time being, the quick fix will be to have
amavisd get this value from the local.cf file.

-Gary

Clifton Royston

unread,
Dec 29, 2004, 2:16:22 PM12/29/04
to
On Wed, Dec 29, 2004 at 01:07:16PM -0600, Gary Buckmaster wrote:
> > I must be missing something. Why don't you simply edit the values in
> > the amavisd.conf file instead of in the local.cf file?
> >
> > Is it because you have some other software that dynamically changes
> > the local.cf values? Otherwise it would seem that the simplest thing
> > is to simply edit the values amavisd uses.
>
> that's exactly why. I have a proof of concept project I'm putting
> together for my bosses that requires a easy to use web interface.
> Since it isn't allowed to dominate my time I used the Spamassassin
> webmin module as my starting point. Once I can get a working
> demonstration and get the bosses to sign off on it, I can do things
> properly, but for the time being, the quick fix will be to have
> amavisd get this value from the local.cf file.

Gotcha. Have you checked if anybody has an amavisd webmin module?
That would be better yet.

-- Clifton

--
Clifton Royston -- clif...@tikitechnologies.com
Tiki Technologies Lead Programmer/Software Architect
Did you ever fly a kite in bed? Did you ever walk with ten cats on your head?
Did you ever milk this kind of cow? Well we can do it. We know how.
If you never did, you should. These things are fun, and fun is good.
-- Dr. Seuss

Gary Buckmaster

unread,
Dec 29, 2004, 4:08:59 PM12/29/04
to
> Gotcha. Have you checked if anybody has an amavisd webmin module?
> That would be better yet.
>
> -- Clifton

It would be, and yes, apparently there is a webmin module as
advertised by this page:
http://webuser.fh-furtwangen.de/~grund/AMaViSD/webmin-AMaViSD.html

However, the download link to his ftp is broken and he hasn't
responded to my email asking about it. It's too bad really because I
suspect that a number of people could really benefit from a webmin
module for amavisd. Perhaps if this project works out, I'll be given
the resources to write one myself.

-Gary

Dale Walsh

unread,
Dec 29, 2004, 4:47:34 PM12/29/04
to
webmin went to sourceforge for DL's...

go here and select download in upper right corner.
http://www.webmin.com/index.html

-- Dale

Gary Buckmaster

unread,
Dec 29, 2004, 4:55:20 PM12/29/04
to
Right, except that the amavisd webmin module isn't part of their
standard modules and so they don't have a link to it off of their page
(or if they do, I still can't see it).
0 new messages