You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@spamassassin.apache.org by "Sharma, Ashish" <as...@hp.com> on 2010/11/26 13:56:49 UTC
local.cf not loading in spamassassin
Hi,
I have a setup of 'amavisd-new' with 'Spamassassin 3.3.1'.
In my local.cf in /etc/mail/spamassassin, I have specified some rules that are new as well as override some of the default spamassassin rules.
But my local rules doesn't seem to be working, as none of them is getting hit.
Can somebody suggest where should I look for the problem?
Spamassassin --lint is not reporting any problems.
Thanks
Ashish Sharma
RE: local.cf not loading in spamassassin
Posted by "Sharma, Ashish" <as...@hp.com>.
Tom,
> have you reloaded spamd & amavis ?
Yes I have reloaded both but no resolution.
Thanks
Ashish Sharma
-----Original Message-----
From: Tom Kinghorn [mailto:thomas.kinghorn@gmail.com]
Sent: Friday, November 26, 2010 6:37 PM
To: users@spamassassin.apache.org
Subject: Re: local.cf not loading in spamassassin
On 2010/11/26 02:56 PM, Sharma, Ashish wrote:
> Hi,
>
> I have a setup of 'amavisd-new' with 'Spamassassin 3.3.1'.
>
> In my local.cf in /etc/mail/spamassassin, I have specified some rules that are new as well as override some of the default spamassassin rules.
>
have you reloaded spamd & amavis ?
RE: local.cf not loading in spamassassin
Posted by "Sharma, Ashish" <as...@hp.com>.
Here's an update:
Looks like local.cf is loading but some of the modules that my rules are dependent on are failing.
But I am seeing following error message in the logs:
_WARN: spf: lookup failed: Bad arg length for NetAddr::IP::Util::sub128, length is 0, should be 128 at /usr/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi/NetAddr/IP/Lite.pm line 1099.
To me it looks like SPF module is failing and this is resulting in my rules not getting hit.
Please help me in resolving the issue.
Following is my local.cf:
# These values can be overridden by editing ~/.spamassassin/user_prefs.cf
# (see spamassassin(1) for details)
# These should be safe assumptions and allow for simple visual sifting
# without risking lost emails.
required_hits 5
report_safe 0
rewrite_header Subject [SPAM]
score FREEMAIL_ENVFROM_END_DIGIT 1.625
meta FREEMAIL_ENVFROM_END_DIGIT_personal (FREEMAIL_ENVFROM_END_DIGIT && (SPF_PASS || DKIM_VALID))
score FREEMAIL_ENVFROM_END_DIGIT_personal -0.725
describe FREEMAIL_ENVFROM_END_DIGIT_personal Custom rule
score HTML_IMAGE_ONLY_08 1.781
meta HTML_IMAGE_ONLY_08_personal (HTML_IMAGE_ONLY_08 && (SPF_PASS || DKIM_VALID))
score HTML_IMAGE_ONLY_08_personal -1.281
describe HTML_IMAGE_ONLY_08_personal Custom rule
score HTML_IMAGE_ONLY_12 1.629
meta HTML_IMAGE_ONLY_12_personal (HTML_IMAGE_ONLY_12 && (SPF_PASS || DKIM_VALID))
score HTML_IMAGE_ONLY_12_personal -1.129
describe HTML_IMAGE_ONLY_12_personal Custom rule
score HTML_IMAGE_ONLY_16 1.048
meta HTML_IMAGE_ONLY_16_personal (HTML_IMAGE_ONLY_16 && (SPF_PASS || DKIM_VALID))
score HTML_IMAGE_ONLY_16_personal -0.748
describe HTML_IMAGE_ONLY_16_personal Custom rule
score HTML_IMAGE_ONLY_24 1.282
meta HTML_IMAGE_ONLY_24_personal (HTML_IMAGE_ONLY_24 && (SPF_PASS || DKIM_VALID))
score HTML_IMAGE_ONLY_24_personal -0.882
describe HTML_IMAGE_ONLY_24_personal Custom rule
score MISSING_SUBJECT 1.767
meta MISSING_SUBJECT_personal (MISSING_SUBJECT && (SPF_PASS || DKIM_VALID))
score MISSING_SUBJECT_personal -1.267
describe MISSING_SUBJECT_personal Custom rule
score SUBJ_ALL_CAPS 1.625
meta SUBJ_ALL_CAPS_personal (SUBJ_ALL_CAPS && (SPF_PASS || DKIM_VALID))
score SUBJ_ALL_CAPS_personal -0.725
describe SUBJ_ALL_CAPS_personal Custom rule
score MANY_SPAN_IN_TEXT 3.099
meta SUBJ_ALL_CAPS_personal (MANY_SPAN_IN_TEXT && (SPF_PASS || DKIM_VALID))
score SUBJ_ALL_CAPS_personal -2.199
describe SUBJ_ALL_CAPS_personal Custom rule
# personal Porn rules
score FREE_PORN 3.75
score CUM_SHOT 8.75
score LIVE_PORN 3.75
score SUBJECT_SEXUAL 3.75
score DOS_ANAL_SPAM_MAILER 3.75
score FB_ALMOST_SEX 3.75
score FB_SSEX 0
score FM_SEX_HELODDDD 0.233 1.085 1.915 0.053 # n=2
score FRT_SEXUAL 3.75
score FS_TEEN_BAD 3.75
#sex meetings
score HS_MEETUP_FOR_SEX 1
score MORE_SEX 2.799 2.765 2.568 1.413
score TVD_INCREASE_SIZE 1.529 0.601 1.055 0.001 # n=1
score BODY_ENHANCEMENT 0.927 1.611 0.974 0.001
score BODY_ENHANCEMENT2 1.691 1.507 1.865 1.541
score SUBJECT_FUZZY_PENIS 2.5
-----Original Message-----
From: RW [mailto:rwmaillists@googlemail.com]
Sent: Friday, November 26, 2010 7:11 PM
To: users@spamassassin.apache.org
Subject: Re: local.cf not loading in spamassassin
On Fri, 26 Nov 2010 15:07:03 +0200
Tom Kinghorn <th...@gmail.com> wrote:
> On 2010/11/26 02:56 PM, Sharma, Ashish wrote:
> > Hi,
> >
> > I have a setup of 'amavisd-new' with 'Spamassassin 3.3.1'.
> >
> > In my local.cf in /etc/mail/spamassassin, I have specified some
> > rules that are new as well as override some of the default
> > spamassassin rules.
> >
> have you reloaded spamd & amavis ?
Just amavisd-new. It uses the SA libraries directly, so spamd
shouldn't be running..
Re: local.cf not loading in spamassassin
Posted by RW <rw...@googlemail.com>.
On Fri, 26 Nov 2010 15:07:03 +0200
Tom Kinghorn <th...@gmail.com> wrote:
> On 2010/11/26 02:56 PM, Sharma, Ashish wrote:
> > Hi,
> >
> > I have a setup of 'amavisd-new' with 'Spamassassin 3.3.1'.
> >
> > In my local.cf in /etc/mail/spamassassin, I have specified some
> > rules that are new as well as override some of the default
> > spamassassin rules.
> >
> have you reloaded spamd & amavis ?
Just amavisd-new. It uses the SA libraries directly, so spamd
shouldn't be running..
Re: local.cf not loading in spamassassin
Posted by Tom Kinghorn <th...@gmail.com>.
On 2010/11/26 02:56 PM, Sharma, Ashish wrote:
> Hi,
>
> I have a setup of 'amavisd-new' with 'Spamassassin 3.3.1'.
>
> In my local.cf in /etc/mail/spamassassin, I have specified some rules that are new as well as override some of the default spamassassin rules.
>
have you reloaded spamd & amavis ?