You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@spamassassin.apache.org by tr_ust <ro...@stthom.edu> on 2011/03/01 17:02:23 UTC
Re: new rules - where do i activate them?
thanks I found the directory and placed the file there...it's not working but
at least I'm putting it in the right place.
Bowie Bailey wrote:
>
> On 2/24/2011 5:04 PM, tr_ust wrote:
>> Hi Everyone, sorry I'm a super Newbie on Spamassassin...my stupid
>> question is
>> this:
>>
>> I've created a rule for a blocked URIs - where do I tell spamassassin to
>> use
>> that rule? The only thing I see in the documenation is to not put the cf
>> file in a certain directory because it will be overwritten during an
>> upgrade.
>>
>> I'm using this on a Solaris 10, with Sun Messaging. I installed SA using
>> the blastwave repository.
>
> I don't know exactly where Solaris puts the local rules. Generally,
> they will be in either /etc/spamassassin or /etc/mail/spamassassin.
> Find the local.cf file and put your rules in there.
>
> You should be able to find it with this command:
>
> spamassassin -D config --lint 2>&1 | grep "site rules"
>
> --
> Bowie
>
>
--
View this message in context: http://old.nabble.com/new-rules---where-do-i-activate-them--tp31008400p31040457.html
Sent from the SpamAssassin - Users mailing list archive at Nabble.com.
Re: new rules - where do i activate them?
Posted by Benny Pedersen <me...@junc.org>.
On Tue, 1 Mar 2011 08:02:23 -0800 (PST), tr_ust <ro...@stthom.edu>
wrote:
> thanks I found the directory and placed the file there...it's not
working
> but at least I'm putting it in the right place.
foo.cf works
foo wont load
make sure you named it something that ends in .cf
00_something.cf loads before 99_ssomethin.cf
dont place loadplugin in a cf file
custom plugins that is NOT part of standard spamassassin can use
00_something.pre for the dependice of plugins, just dont add standard
plugins there
Re: new rules - where do i activate them?
Posted by Daniel McDonald <da...@austinenergy.com>.
On 3/2/11 9:46 AM, "tr_ust" <ro...@stthom.edu> wrote:
>
> I'm sorry - there's only one line in the sample of how to write a uri rule.
>
> Are you saying that for each line I need to create a unique
> "LOCAL_URI_EXAMPLE" line? In other words it should look more like this?
Yes, although score is usually spelled with a leading "s"...
> uri LOCAL_URI_EXAMPLE /03ysl.9hz.com/
> core LOCAL_URI_EXAMPLE 20
>
> uri LOCAL_URI_EXAMPLE_1 /03ysl.9hz.com/
> core LOCAL_URI_EXAMPLE_1 20
>
> uri LOCAL_URI_EXAMPLE_2 /03ysl.9hz.com/
> core LOCAL_URI_EXAMPLE_2 20
--
Daniel J McDonald, CCIE # 2495, CISSP # 78281
Re: new rules - where do i activate them?
Posted by Martin Gregorie <ma...@gregorie.org>.
On Wed, 2011-03-02 at 07:46 -0800, tr_ust wrote:
> I'm sorry - there's only one line in the sample of how to write a uri rule.
>
> Are you saying that for each line I need to create a unique
> "LOCAL_URI_EXAMPLE" line? In other words it should look more like this?
>
> uri LOCAL_URI_EXAMPLE /03ysl.9hz.com/
> core LOCAL_URI_EXAMPLE 20
>
> uri LOCAL_URI_EXAMPLE_1 /03ysl.9hz.com/
> core LOCAL_URI_EXAMPLE_1 20
>
> uri LOCAL_URI_EXAMPLE_2 /03ysl.9hz.com/
> core LOCAL_URI_EXAMPLE_2 20
>
> Would that be correct?
>
Short answer, yes.
Reason: every rule needs a unique name.
Longer answers:
(a)You can combine rules by using a more complex regular expression
(aka regex):
describe MULTI_MATCH Example rule to match several URIs
uri MULTI_MATCH /(03ysl.1ab.com|03ysl.5zz.com|03ysl.9ml.com)/
score MULTI_MATCH 20
and if the regex extends over more than one line you can use
meta-rules to OR them together.
(b) I use a number of large regexes (25 terms on average, min 2 terms,
max over 200 terms) and wrote a script, portmanteau, that assembles
a rule from a file containing a list of terms. Its a bash script
wrapper round an awk/gawk script.
If that sounds useful, you can find the portmanteau script here:
http://www.libelle-systems.com/free/
You don't need to know Perl to write good Spamassassin rules but you do
need to be able to read and create Perl regular expressions.
Martin
>
> Karsten Bräckelmann-2 wrote:
> >
> > On Tue, 2011-03-01 at 13:11 -0500, Bowie Bailey wrote:
> >> On 3/1/2011 12:39 PM, tr_ust wrote:
> >> > Thanks...I could really use the help!
> >
> > [...]
> >> > uri LOCAL_URI_EXAMPLE /03ysl.9hz.com\//
> >> > score LOCAL_URI_EXAMPLE 20
> >> > uri LOCAL_URI_EXAMPLE /040jk.9hz.com\//
> >> > score LOCAL_URI_EXAMPLE 20
> >> > uri LOCAL_URI_EXAMPLE /0oczg.9hz.com\//
> >> > score LOCAL_URI_EXAMPLE 20
> >> >
> >> > I'm using the per user option right now for spamassassin, so I test it
> >> by
> >> > sending the user an email with one of these links...and it's still
> >> going
> >> > through.
> >>
> >> You are aware that these rules are specifying that there MUST be a slash
> >> after .com in order to match, right?
> >>
> >> Other than that, I don't see any obvious problem. Send an example email
> >> through your system and put the resulting email (with headers) into a
> >> pastebin so I can look at it.
> >
> > Uhm... There is only ONE rule. Repeatedly overwriting the previous rule
> > definition. Last one is defined, everything prior to that is effectively
> > non-existent.
> >
> > Does that count as obvious problem? ;)
> >
> >
> > --
> > char
> > *t="\10pse\0r\0dtu\0.@ghno\x4e\xc8\x79\xf4\xab\x51\x8a\x10\xf4\xf4\xc4";
> > main(){ char h,m=h=*t++,*x=t+2*h,c,i,l=*x,s=0; for (i=0;i<l;i++){ i%8?
> > c<<=1:
> > (c=*++x); c&128 && (s+=h); if (!(h>>=1)||!t[s+h]){ putchar(t[s]);h=m;s=0;
> > }}}
> >
> >
> >
>
Re: new rules - where do i activate them?
Posted by Karsten Bräckelmann <gu...@rudersport.de>.
On Wed, 2011-03-02 at 07:46 -0800, an anonymous Nabble user wrote:
> I'm sorry - there's only one line in the sample of how to write a uri rule.
I strongly suggest to read the SA docs, at the very least some intro
style rule writing guide. Depending solely on a brief third-party usage
example without any knowledge about SA rules is unlikely to work out.
> Are you saying that for each line I need to create a unique
> "LOCAL_URI_EXAMPLE" line? In other words it should look more like this?
If I where to guess, I'd say that rule name is an *example* and not
meant to be used literally...
> uri LOCAL_URI_EXAMPLE_1 /03ysl.9hz.com/
> core LOCAL_URI_EXAMPLE_1 20
As others already have answered -- yes, the rule names must be unique.
Also, lint checking your custom rules would be very advisable.
However, maybe this whole exercise was futile anyway. What do you really
want to accomplish?
Point being, this domain and likely most (if not all) others in the list
you're basing off, are listed in URI DNSBLs. This particular one is
listed in URIBL and SURBL JP and PH. With network test enabled, SA will
score them high already.
So what is the point in this static, and likely huge, list of uri rules?
--
char *t="\10pse\0r\0dtu\0.@ghno\x4e\xc8\x79\xf4\xab\x51\x8a\x10\xf4\xf4\xc4";
main(){ char h,m=h=*t++,*x=t+2*h,c,i,l=*x,s=0; for (i=0;i<l;i++){ i%8? c<<=1:
(c=*++x); c&128 && (s+=h); if (!(h>>=1)||!t[s+h]){ putchar(t[s]);h=m;s=0; }}}
Re: new rules - where do i activate them?
Posted by tr_ust <ro...@stthom.edu>.
I'm sorry - there's only one line in the sample of how to write a uri rule.
Are you saying that for each line I need to create a unique
"LOCAL_URI_EXAMPLE" line? In other words it should look more like this?
uri LOCAL_URI_EXAMPLE /03ysl.9hz.com/
core LOCAL_URI_EXAMPLE 20
uri LOCAL_URI_EXAMPLE_1 /03ysl.9hz.com/
core LOCAL_URI_EXAMPLE_1 20
uri LOCAL_URI_EXAMPLE_2 /03ysl.9hz.com/
core LOCAL_URI_EXAMPLE_2 20
Would that be correct?
Karsten Bräckelmann-2 wrote:
>
> On Tue, 2011-03-01 at 13:11 -0500, Bowie Bailey wrote:
>> On 3/1/2011 12:39 PM, tr_ust wrote:
>> > Thanks...I could really use the help!
>
> [...]
>> > uri LOCAL_URI_EXAMPLE /03ysl.9hz.com\//
>> > score LOCAL_URI_EXAMPLE 20
>> > uri LOCAL_URI_EXAMPLE /040jk.9hz.com\//
>> > score LOCAL_URI_EXAMPLE 20
>> > uri LOCAL_URI_EXAMPLE /0oczg.9hz.com\//
>> > score LOCAL_URI_EXAMPLE 20
>> >
>> > I'm using the per user option right now for spamassassin, so I test it
>> by
>> > sending the user an email with one of these links...and it's still
>> going
>> > through.
>>
>> You are aware that these rules are specifying that there MUST be a slash
>> after .com in order to match, right?
>>
>> Other than that, I don't see any obvious problem. Send an example email
>> through your system and put the resulting email (with headers) into a
>> pastebin so I can look at it.
>
> Uhm... There is only ONE rule. Repeatedly overwriting the previous rule
> definition. Last one is defined, everything prior to that is effectively
> non-existent.
>
> Does that count as obvious problem? ;)
>
>
> --
> char
> *t="\10pse\0r\0dtu\0.@ghno\x4e\xc8\x79\xf4\xab\x51\x8a\x10\xf4\xf4\xc4";
> main(){ char h,m=h=*t++,*x=t+2*h,c,i,l=*x,s=0; for (i=0;i<l;i++){ i%8?
> c<<=1:
> (c=*++x); c&128 && (s+=h); if (!(h>>=1)||!t[s+h]){ putchar(t[s]);h=m;s=0;
> }}}
>
>
>
--
View this message in context: http://old.nabble.com/new-rules---where-do-i-activate-them--tp31008400p31050552.html
Sent from the SpamAssassin - Users mailing list archive at Nabble.com.
Re: new rules - where do i activate them?
Posted by Bowie Bailey <Bo...@BUC.com>.
On 3/1/2011 1:36 PM, Karsten Bräckelmann wrote:
> On Tue, 2011-03-01 at 13:11 -0500, Bowie Bailey wrote:
>> On 3/1/2011 12:39 PM, tr_ust wrote:
>>> Thanks...I could really use the help!
> [...]
>>> uri LOCAL_URI_EXAMPLE /03ysl.9hz.com\//
>>> score LOCAL_URI_EXAMPLE 20
>>> uri LOCAL_URI_EXAMPLE /040jk.9hz.com\//
>>> score LOCAL_URI_EXAMPLE 20
>>> uri LOCAL_URI_EXAMPLE /0oczg.9hz.com\//
>>> score LOCAL_URI_EXAMPLE 20
>>>
>>> I'm using the per user option right now for spamassassin, so I test it by
>>> sending the user an email with one of these links...and it's still going
>>> through.
>> You are aware that these rules are specifying that there MUST be a slash
>> after .com in order to match, right?
>>
>> Other than that, I don't see any obvious problem. Send an example email
>> through your system and put the resulting email (with headers) into a
>> pastebin so I can look at it.
> Uhm... There is only ONE rule. Repeatedly overwriting the previous rule
> definition. Last one is defined, everything prior to that is effectively
> non-existent.
>
> Does that count as obvious problem? ;)
Yea, that counts. :)
--
Bowie
Re: new rules - where do i activate them?
Posted by Karsten Bräckelmann <gu...@rudersport.de>.
On Tue, 2011-03-01 at 13:11 -0500, Bowie Bailey wrote:
> On 3/1/2011 12:39 PM, tr_ust wrote:
> > Thanks...I could really use the help!
[...]
> > uri LOCAL_URI_EXAMPLE /03ysl.9hz.com\//
> > score LOCAL_URI_EXAMPLE 20
> > uri LOCAL_URI_EXAMPLE /040jk.9hz.com\//
> > score LOCAL_URI_EXAMPLE 20
> > uri LOCAL_URI_EXAMPLE /0oczg.9hz.com\//
> > score LOCAL_URI_EXAMPLE 20
> >
> > I'm using the per user option right now for spamassassin, so I test it by
> > sending the user an email with one of these links...and it's still going
> > through.
>
> You are aware that these rules are specifying that there MUST be a slash
> after .com in order to match, right?
>
> Other than that, I don't see any obvious problem. Send an example email
> through your system and put the resulting email (with headers) into a
> pastebin so I can look at it.
Uhm... There is only ONE rule. Repeatedly overwriting the previous rule
definition. Last one is defined, everything prior to that is effectively
non-existent.
Does that count as obvious problem? ;)
--
char *t="\10pse\0r\0dtu\0.@ghno\x4e\xc8\x79\xf4\xab\x51\x8a\x10\xf4\xf4\xc4";
main(){ char h,m=h=*t++,*x=t+2*h,c,i,l=*x,s=0; for (i=0;i<l;i++){ i%8? c<<=1:
(c=*++x); c&128 && (s+=h); if (!(h>>=1)||!t[s+h]){ putchar(t[s]);h=m;s=0; }}}
Re: new rules - where do i activate them?
Posted by Bowie Bailey <Bo...@BUC.com>.
On 3/2/2011 11:43 AM, John Hardin wrote:
> On Wed, 2 Mar 2011, Bowie Bailey wrote:
>
>> On 3/2/2011 11:16 AM, Jeff Mincy wrote:
>>> Also, the rules could be combined into a single rule (untested) using
>>> regexp (?:index|nana|ontokoros|tbt|webadmin)
>>>
>>> uri LOCAL_URI_EXAMPLE
>>> /zynetsw.com\/forms\/use\/(?:index|nana|ontokoros|tbt|webadmin)\/form1.html/
>>
>> Or, if you want to catch any of the forms, you could use this:
>>
>> uri LOCAL_URI_EXAMPLE /zynetsw\.com\/forms\/use\/.*\/form1.html/
>>
>> (also escaped the period, as that means "any character" in a Perl regex)
>
> ...almost...
>
> uri LOCAL_URI_EXAMPLE /zynetsw\.com\/forms\/use\/.*\/form1\.html/
Ok, so I missed a period....
Already corrected in my last post. :)
--
Bowie
Re: new rules - where do i activate them?
Posted by John Hardin <jh...@impsec.org>.
On Wed, 2 Mar 2011, Bowie Bailey wrote:
> On 3/2/2011 11:16 AM, Jeff Mincy wrote:
>> Also, the rules could be combined into a single rule (untested) using
>> regexp (?:index|nana|ontokoros|tbt|webadmin)
>>
>> uri LOCAL_URI_EXAMPLE /zynetsw.com\/forms\/use\/(?:index|nana|ontokoros|tbt|webadmin)\/form1.html/
>
> Or, if you want to catch any of the forms, you could use this:
>
> uri LOCAL_URI_EXAMPLE /zynetsw\.com\/forms\/use\/.*\/form1.html/
>
> (also escaped the period, as that means "any character" in a Perl regex)
...almost...
uri LOCAL_URI_EXAMPLE /zynetsw\.com\/forms\/use\/.*\/form1\.html/
--
John Hardin KA7OHZ http://www.impsec.org/~jhardin/
jhardin@impsec.org FALaholic #11174 pgpk -a jhardin@impsec.org
key: 0xB8732E79 -- 2D8C 34F4 6411 F507 136C AF76 D822 E6E6 B873 2E79
-----------------------------------------------------------------------
Phobias should not be the basis for laws.
-----------------------------------------------------------------------
11 days until Albert Einstein's 132nd Birthday
Re: new rules - where do i activate them?
Posted by Bowie Bailey <Bo...@BUC.com>.
On 3/2/2011 11:32 AM, Bowie Bailey wrote:
> On 3/2/2011 11:16 AM, Jeff Mincy wrote:
>> Also, the rules could be combined into a single rule (untested) using
>> regexp (?:index|nana|ontokoros|tbt|webadmin)
>>
>> uri LOCAL_URI_EXAMPLE /zynetsw.com\/forms\/use\/(?:index|nana|ontokoros|tbt|webadmin)\/form1.html/
> Or, if you want to catch any of the forms, you could use this:
>
> uri LOCAL_URI_EXAMPLE /zynetsw\.com\/forms\/use\/.*\/form1.html/
>
> (also escaped the period, as that means "any character" in a Perl regex)
Also, you can avoid all the extra backslashes by quoting the regex a bit
differently:
uri LOCAL_URI_EXAMPLE m'zynetsw\.com/forms/use/.*/form1\.html'
Now the only things that need quoting are the periods.
--
Bowie
Re: new rules - where do i activate them?
Posted by Bowie Bailey <Bo...@BUC.com>.
On 3/2/2011 11:16 AM, Jeff Mincy wrote:
> Also, the rules could be combined into a single rule (untested) using
> regexp (?:index|nana|ontokoros|tbt|webadmin)
>
> uri LOCAL_URI_EXAMPLE /zynetsw.com\/forms\/use\/(?:index|nana|ontokoros|tbt|webadmin)\/form1.html/
Or, if you want to catch any of the forms, you could use this:
uri LOCAL_URI_EXAMPLE /zynetsw\.com\/forms\/use\/.*\/form1.html/
(also escaped the period, as that means "any character" in a Perl regex)
--
Bowie
Re: new rules - where do i activate them?
Posted by Jeff Mincy <je...@delphioutpost.com>.
From: John Hardin <jh...@impsec.org>
Date: Wed, 2 Mar 2011 07:50:38 -0800 (PST)
On Wed, 2 Mar 2011, tr_ust wrote:
> This is what my rules look like now:
>
> uri LOCAL_URI_EXAMPLE /zynetsw.com\/forms\/use\/index\/form1.html/
> score LOCAL_URI_EXAMPLE 200
> uri LOCAL_URI_EXAMPLE /zynetsw.com\/forms\/use\/nana\/form1.html/
> score LOCAL_URI_EXAMPLE 100
> uri LOCAL_URI_EXAMPLE /zynetsw.com\/forms\/use\/ontokoros\/form1.html/
> score LOCAL_URI_EXAMPLE 100
> uri LOCAL_URI_EXAMPLE /zynetsw.com\/forms\/use\/tbt\/form1.html/
> score LOCAL_URI_EXAMPLE 200
> uri LOCAL_URI_EXAMPLE /zynetsw.com\/forms\/use\/webadmin\/form1.html/
> score LOCAL_URI_EXAMPLE 200
>
> I took out the last "/" as you suggested...thanks.
You may also want to escape the periods so they are literal matches rather
then "match any single character":
uri LOCAL_URI_EXAMPLE /zynetsw\.com\/forms\/use\/webadmin\/form1\.html/
Also, you only have one rule there. Every time you put in another "uri
LOCAL_URI_EXAMPLE" you overwrite the previous definition. Change the name
of each rule, for example by appending _00 _01 _02, etc.
Also, the rules could be combined into a single rule (untested) using
regexp (?:index|nana|ontokoros|tbt|webadmin)
uri LOCAL_URI_EXAMPLE /zynetsw.com\/forms\/use\/(?:index|nana|ontokoros|tbt|webadmin)\/form1.html/
-jeff
Re: new rules - where do i activate them?
Posted by John Hardin <jh...@impsec.org>.
On Wed, 2 Mar 2011, tr_ust wrote:
> This is what my rules look like now:
>
> uri LOCAL_URI_EXAMPLE /zynetsw.com\/forms\/use\/index\/form1.html/
> score LOCAL_URI_EXAMPLE 200
> uri LOCAL_URI_EXAMPLE /zynetsw.com\/forms\/use\/nana\/form1.html/
> score LOCAL_URI_EXAMPLE 100
> uri LOCAL_URI_EXAMPLE /zynetsw.com\/forms\/use\/ontokoros\/form1.html/
> score LOCAL_URI_EXAMPLE 100
> uri LOCAL_URI_EXAMPLE /zynetsw.com\/forms\/use\/tbt\/form1.html/
> score LOCAL_URI_EXAMPLE 200
> uri LOCAL_URI_EXAMPLE /zynetsw.com\/forms\/use\/webadmin\/form1.html/
> score LOCAL_URI_EXAMPLE 200
>
> I took out the last "/" as you suggested...thanks.
You may also want to escape the periods so they are literal matches rather
then "match any single character":
uri LOCAL_URI_EXAMPLE /zynetsw\.com\/forms\/use\/webadmin\/form1\.html/
Also, you only have one rule there. Every time you put in another "uri
LOCAL_URI_EXAMPLE" you overwrite the previous definition. Change the name
of each rule, for example by appending _00 _01 _02, etc.
> There's nothing in the header of the emails that indicates it went
> through spamassassin - is there a way to use a spamassassin command to
> test out the rules?
Yes:
spamassassin -L -t < your_test_message
More info cam be obtained by doing something like:
spamassassin -L -t --debug area=rules < your_test_message
--
John Hardin KA7OHZ http://www.impsec.org/~jhardin/
jhardin@impsec.org FALaholic #11174 pgpk -a jhardin@impsec.org
key: 0xB8732E79 -- 2D8C 34F4 6411 F507 136C AF76 D822 E6E6 B873 2E79
-----------------------------------------------------------------------
The fetters imposed on liberty at home have ever been forged out
of the weapons provided for defense against real, pretended, or
imaginary dangers from abroad. -- James Madison, 1799
-----------------------------------------------------------------------
11 days until Albert Einstein's 132nd Birthday
Re: new rules - where do i activate them?
Posted by tr_ust <ro...@stthom.edu>.
This is what my rules look like now:
uri LOCAL_URI_EXAMPLE /zynetsw.com\/forms\/use\/index\/form1.html/
score LOCAL_URI_EXAMPLE 200
uri LOCAL_URI_EXAMPLE /zynetsw.com\/forms\/use\/nana\/form1.html/
score LOCAL_URI_EXAMPLE 100
uri LOCAL_URI_EXAMPLE /zynetsw.com\/forms\/use\/ontokoros\/form1.html/
score LOCAL_URI_EXAMPLE 100
uri LOCAL_URI_EXAMPLE /zynetsw.com\/forms\/use\/tbt\/form1.html/
score LOCAL_URI_EXAMPLE 200
uri LOCAL_URI_EXAMPLE /zynetsw.com\/forms\/use\/webadmin\/form1.html/
score LOCAL_URI_EXAMPLE 200
I took out the last "/" as you suggested...thanks.
There's nothing in the header of the emails that indicates it went through
spamassassin - is there a way to use a spamassassin command to test out the
rules?
Thanks again for your help.
Bowie Bailey wrote:
>
> On 3/1/2011 12:39 PM, tr_ust wrote:
>> Thanks...I could really use the help!
>>
>> basically - I'm getting the list of phishing links of aper
>> (https://aper.svn.sourceforge.net/svnroot/aper/) and creating a rule for
>> it.
>>
>> Here's a snippet of my rule -
>>
>> uri LOCAL_URI_EXAMPLE /-la2u.9hz.com\//
>> score LOCAL_URI_EXAMPLE 20
>> uri LOCAL_URI_EXAMPLE /0-vgj.9hz.com\//
>> score LOCAL_URI_EXAMPLE 20
>> uri LOCAL_URI_EXAMPLE /007vt.9hz.com\//
>> score LOCAL_URI_EXAMPLE 20
>> uri LOCAL_URI_EXAMPLE /02khw.9hz.com\//
>> score LOCAL_URI_EXAMPLE 10
>> uri LOCAL_URI_EXAMPLE /03l6c.9hz.com\//
>> score LOCAL_URI_EXAMPLE 50
>> uri LOCAL_URI_EXAMPLE /03ysl.9hz.com\//
>> score LOCAL_URI_EXAMPLE 20
>> uri LOCAL_URI_EXAMPLE /040jk.9hz.com\//
>> score LOCAL_URI_EXAMPLE 20
>> uri LOCAL_URI_EXAMPLE /0oczg.9hz.com\//
>> score LOCAL_URI_EXAMPLE 20
>>
>>
>> I'm using the per user option right now for spamassassin, so I test it by
>> sending the user an email with one of these links...and it's still going
>> through.
>
> You are aware that these rules are specifying that there MUST be a slash
> after .com in order to match, right?
>
> Other than that, I don't see any obvious problem. Send an example email
> through your system and put the resulting email (with headers) into a
> pastebin so I can look at it.
>
> --
> Bowie
>
>
--
View this message in context: http://old.nabble.com/new-rules---where-do-i-activate-them--tp31008400p31050515.html
Sent from the SpamAssassin - Users mailing list archive at Nabble.com.
Re: new rules - where do i activate them?
Posted by Bowie Bailey <Bo...@BUC.com>.
On 3/1/2011 12:39 PM, tr_ust wrote:
> Thanks...I could really use the help!
>
> basically - I'm getting the list of phishing links of aper
> (https://aper.svn.sourceforge.net/svnroot/aper/) and creating a rule for it.
>
> Here's a snippet of my rule -
>
> uri LOCAL_URI_EXAMPLE /-la2u.9hz.com\//
> score LOCAL_URI_EXAMPLE 20
> uri LOCAL_URI_EXAMPLE /0-vgj.9hz.com\//
> score LOCAL_URI_EXAMPLE 20
> uri LOCAL_URI_EXAMPLE /007vt.9hz.com\//
> score LOCAL_URI_EXAMPLE 20
> uri LOCAL_URI_EXAMPLE /02khw.9hz.com\//
> score LOCAL_URI_EXAMPLE 10
> uri LOCAL_URI_EXAMPLE /03l6c.9hz.com\//
> score LOCAL_URI_EXAMPLE 50
> uri LOCAL_URI_EXAMPLE /03ysl.9hz.com\//
> score LOCAL_URI_EXAMPLE 20
> uri LOCAL_URI_EXAMPLE /040jk.9hz.com\//
> score LOCAL_URI_EXAMPLE 20
> uri LOCAL_URI_EXAMPLE /0oczg.9hz.com\//
> score LOCAL_URI_EXAMPLE 20
>
>
> I'm using the per user option right now for spamassassin, so I test it by
> sending the user an email with one of these links...and it's still going
> through.
You are aware that these rules are specifying that there MUST be a slash
after .com in order to match, right?
Other than that, I don't see any obvious problem. Send an example email
through your system and put the resulting email (with headers) into a
pastebin so I can look at it.
--
Bowie
Re: new rules - where do i activate them?
Posted by tr_ust <ro...@stthom.edu>.
Thanks...I could really use the help!
basically - I'm getting the list of phishing links of aper
(https://aper.svn.sourceforge.net/svnroot/aper/) and creating a rule for it.
Here's a snippet of my rule -
uri LOCAL_URI_EXAMPLE /-la2u.9hz.com\//
score LOCAL_URI_EXAMPLE 20
uri LOCAL_URI_EXAMPLE /0-vgj.9hz.com\//
score LOCAL_URI_EXAMPLE 20
uri LOCAL_URI_EXAMPLE /007vt.9hz.com\//
score LOCAL_URI_EXAMPLE 20
uri LOCAL_URI_EXAMPLE /02khw.9hz.com\//
score LOCAL_URI_EXAMPLE 10
uri LOCAL_URI_EXAMPLE /03l6c.9hz.com\//
score LOCAL_URI_EXAMPLE 50
uri LOCAL_URI_EXAMPLE /03ysl.9hz.com\//
score LOCAL_URI_EXAMPLE 20
uri LOCAL_URI_EXAMPLE /040jk.9hz.com\//
score LOCAL_URI_EXAMPLE 20
uri LOCAL_URI_EXAMPLE /0oczg.9hz.com\//
score LOCAL_URI_EXAMPLE 20
I'm using the per user option right now for spamassassin, so I test it by
sending the user an email with one of these links...and it's still going
through.
Thanks for any input you may have.
Bowie Bailey wrote:
>
> On 3/1/2011 11:02 AM, tr_ust wrote:
>> thanks I found the directory and placed the file there...it's not working
>> but
>> at least I'm putting it in the right place.
>
> Show us the rule. We can help you debug it.
>
> --
> Bowie
>
>
--
View this message in context: http://old.nabble.com/new-rules---where-do-i-activate-them--tp31008400p31042476.html
Sent from the SpamAssassin - Users mailing list archive at Nabble.com.
Re: new rules - where do i activate them?
Posted by Bowie Bailey <Bo...@BUC.com>.
On 3/1/2011 11:02 AM, tr_ust wrote:
> thanks I found the directory and placed the file there...it's not working but
> at least I'm putting it in the right place.
Show us the rule. We can help you debug it.
--
Bowie