Thanks for your reply.  Please see my answers inline below:

--------------------
Timothy Burt
Los Angeles, Calif. USA

On Wed, 3 May 2006, Matt Kettler wrote:

Loren Wilton wrote:
I believe Amvis uses its own headers rather than the SA headers for spam
mails, and doesn't bother showing details on non-spam messages.

So in all probability you rule is hitting, but it is only 2.9, and your spam
threshold is probably around 5.  So if some other things don't hit too it
won't be spam, and Amvis may not show you that any rules hit.

        Loren


Loren, he's got his configured to always add headers with SA hit lists.

-------------------------
X-Spam-Status: No, score=0.258 tagged_above=-100.5 required=2.4
tests=[HTML_FONT_BIG=0.256, HTML_MESSAGE=0.001, UNPARSEABLE_RELAY=0.001]
-------------------------




I have setup some user defined rules in the ~homedir/.spamassassin/user_prefs 
file and most of the time, I can see the results of running these tests in the 
headers.


Timothy:

0) Be sure to read my previous message about the nature of The Bat. It is not a
spam tool. Temper your score accordingly.

Your point is well taken. It would be helpful to continue on with this example, as "The Bat" is not the issue I am facing, but the skipping of the rules. Thanks for your advice.


1) Are you sure you have the right homedir?  You realize that the correct home
dir is not the recipient of the message, but the homedir of the amavis user, 
right?

Yes, I have a test rule, that fires on my personal email address, in the user_prefs file. I see this rule evaled, whenever an email addressed to my personal address is received and passed. So I got the right user_prefs. But good of you to ask..

I do not know if I have ever seen an email, addressed to me (that would fire the test rule) that fails to fire the "Bat" rule. In other words, I do not have proof positive that the user_prefs are being eval'd when the "Bat" rule is missed. It may be that user_prefs is skipped entirely, it probably is.


2) Since your rules are declared in user_prefs, have you declared
allow_user_rules in your local.cf?

Curious that the answer to this is no. I saw this in the docs, after I had the user_prefs confirmed as working.. I will try adding it anyway.


3) Why are you declaring rules in user_prefs anyway, instead of a .cf file in
/etc/mail/spamassassin?

Probably because there was an easy example for the user_prefs file, and when I tried the example, it worked as advertised. Do you think this would make a difference?


4) Have you restarted amavis since adding the rules?

Always...


5) Have you run spamassassin --lint to check for errors?


Yes, and it said I was missing an SSL module, which I promptly installed. Now it comes back clean.

-----------------

Thanks again for your help... I am pretty experienced with UNIX/Linux, but I am not an SA guru. Amavisd-new gets a little confusing because it ignores some SA features, and sets some runtime params thru the amavisd.conf file instead of SA conf files. I just don't know enough about it yet.

Reply via email to