Re: how to make a custom ruleset

2009-03-06 Thread Theo Van Dinter
Just fyi, this particular topic keeps getting raised here. It'd be great if people would search the list archives. :) One of the last times around: http://www.nabble.com/forum/ViewPost.jtp?post=21296293&framed=y In short, if you want to do this, write a plugin. REs are great until you get comp

Re: how to make a custom ruleset

2009-03-06 Thread Mark Martinec
Adi, > First, it read the sender, and put it into a variable > Then, it check, if the recipient is the same as that variable > if true, then give score 3.0 The trick is to let a regexp see an entire mail header section. Unfortunately it means we can't reuse already parsed addresses in From and To

Re: how to make a custom ruleset

2009-03-06 Thread John Hardin
On Fri, 6 Mar 2009, Adi Nugroho wrote: It is working well, but not global (just check for my.address, and not for everyone). Actually, it _is_ global, as it can only match on the domain name. Any mail from any user in your domain to any other user in your domain will hit this rule. Please

RE: how to make a custom ruleset

2009-03-06 Thread Bowie Bailey
Adi Nugroho wrote: > On Thursday 05 March 2009 23:44:39 Benny Pedersen wrote: > > header SELF_FROM From =~ /\...@my.address/i > > header SELF_TO To =~ /\...@my.address/i > > meta SELF (SELF_FROM && SELF_TO) > > describe SELF Trap mail with forged sender the same as recipient > > score SELF 3.0 > >

Re: how to make a custom ruleset

2009-03-06 Thread Adi Nugroho
On Thursday 05 March 2009 23:44:39 Benny Pedersen wrote: > header SELF_FROM From =~ /\...@my.address/i > header SELF_TO To =~ /\...@my.address/i > meta SELF (SELF_FROM && SELF_TO) > describe SELF Trap mail with forged sender the same as recipient > score SELF 3.0 Finally I understand above rule.

Re: how to make a custom ruleset

2009-03-06 Thread Kai Schaetzl
Adi Nugroho wrote on Fri, 6 Mar 2009 10:40:26 +0800: > Is there a howto about this ruleset? http://wiki.apache.org/spamassassin/WritingRules Kai -- Kai Schätzl, Berlin, Germany Get your web at Conactive Internet Services: http://www.conactive.com

Re: how to make a custom ruleset

2009-03-05 Thread Adi Nugroho
On Thursday 05 March 2009 23:44:39 Benny Pedersen wrote: > ups > > header SELF_FROM From =~ /\...@my.address/i > header SELF_TO To =~ /\...@my.address/i > meta SELF (SELF_FROM && SELF_TO) > describe SELF Trap mail with forged sender the same as recipient > score SELF 3.0 I have tried above syntax

Re: how to make a custom ruleset

2009-03-05 Thread LuKreme
On Mar 5, 2009, at 7:28, Martin Gregorie wrote: On Thu, 2009-03-05 at 21:31 +0800, Adi Nugroho wrote: I found that a lot of spam is using recipient email address as the sender. (from a...@internux.co.id to a...@internux.co.id, or from i...@apache.org to i...@apache.org). The only disadvan

Re: how to make a custom ruleset

2009-03-05 Thread Benny Pedersen
On Thu, March 5, 2009 17:31, John Hardin wrote: >> header SELF_FROM From =~ /\...@my.address/i >> header SELF_TO To =~ /\...@my.address/i > > Are you sure you want to give 1 point to each of those cases in > addition to whatever points the meta adds? it was not me that maked the rules, just edit

Re: how to make a custom ruleset

2009-03-05 Thread John Hardin
On Thu, 5 Mar 2009, Benny Pedersen wrote: header SELF_FROM From =~ /\...@my.address/i header SELF_TO To =~ /\...@my.address/i Are you sure you want to give 1 point to each of those cases in addition to whatever points the meta adds? If not, then they should be named __SELF_FROM and __SELF_T

Re: how to make a custom ruleset

2009-03-05 Thread Benny Pedersen
On Thu, March 5, 2009 16:27, Adi Nugroho wrote: > describe SELF Trap mail with forged sender the same as recipient > header SELF From =~ /\...@my.address/i > header SELF_TO To =~ /\...@my.address/i > meta SELF 5.0 ups header SELF_FROM From =~ /\...@my.address/i header SELF_TO To =~ /\..

Re: how to make a custom ruleset

2009-03-05 Thread Adi Nugroho
On Thursday 05 March 2009 22:28:23 Martin Gregorie wrote: > describe SELF Trap mail with forged sender the same as recipient > header SELF From =~ /\...@my.address/i > header SELF To =~ /\...@my.address/i > meta SELF 5.0 Dear Martin, Thank you for the rule... I made a file self.cf in /et

Re: how to make a custom ruleset

2009-03-05 Thread Benny Pedersen
On Thu, March 5, 2009 14:31, Adi Nugroho wrote: > I found that a lot of spam is using recipient email address as the > sender. (from a...@internux.co.id to a...@internux.co.id, or from > i...@apache.org to i...@apache.org). all this happends on domains that have no spf and or testing spf in mta,

Re: how to make a custom ruleset

2009-03-05 Thread Daniel J McDonald
On Thu, 2009-03-05 at 21:31 +0800, Adi Nugroho wrote: > Dear all, > > I found that a lot of spam is using recipient email address as the sender. > (from a...@internux.co.id to a...@internux.co.id, or from i...@apache.org to > i...@apache.org). > > Since if we mail to our self, usually we have ve

Re: how to make a custom ruleset

2009-03-05 Thread Martin Gregorie
On Thu, 2009-03-05 at 21:31 +0800, Adi Nugroho wrote: > I found that a lot of spam is using recipient email address as the sender. > (from a...@internux.co.id to a...@internux.co.id, or from i...@apache.org to > i...@apache.org). > The only disadvantage is that you'll label test messages as spam.

how to make a custom ruleset

2009-03-05 Thread Adi Nugroho
Dear all, I found that a lot of spam is using recipient email address as the sender. (from a...@internux.co.id to a...@internux.co.id, or from i...@apache.org to i...@apache.org). Since if we mail to our self, usually we have very low score, I hope it is save to give a BIG score (probably 2 or