autolearn_force

2014-05-21 Thread Ian Zimmerman
I don't understand this setting, and reading the documentation doesn't help. It seems it sould make bayes learn spam whenever the total score surpasses the value of bayes_auto_learn_threshold_spam, and not require 3 points from header and body each; that would make it a global setting similar in p

Re: Bayes refinement

2014-05-21 Thread Karsten Bräckelmann
On Wed, 2014-05-21 at 17:32 -0700, Ian Zimmerman wrote: > > The test message does not have that string. Maybe it uses DOS > > flavor "\r\n". Or what appears to be a bunch of linebreaks > > actually has spaces mixed in. > > Well, no. I looked at the message (the same data I fed to s.a. --debug) >

Re: Bayes refinement

2014-05-21 Thread Ian Zimmerman
On Wed, 21 May 2014 22:26:41 +0200 Karsten Bräckelmann wrote: Karsten> Seriously, the above rule, the shorter /\n{10}/, as well as the Karsten> variant posted by John without quantifier do exactly what you Karsten> asked for. They match 10 consecutive \n newline chars in the Karsten> rawbody. Ok

Re: postfix - disable spamassassin for outgoing mail

2014-05-21 Thread Karsten Bräckelmann
On Wed, 2014-05-21 at 22:31 +0200, Benny Pedersen wrote: > > > [...] users of your server want there mails learned as ham, without > > > this learning, then it would be spam learning when this content comes > > > back > > > > This is just plain wrong. > > how ? In almost any possible way, includ

Re: postfix - disable spamassassin for outgoing mail

2014-05-21 Thread Benny Pedersen
On 21. maj 2014 21.04.01 CEST, "Karsten Bräckelmann" wrote: >On Wed, 2014-05-21 at 19:23 +0200, Benny Pedersen wrote: >> [...] users of your server want there mails learned as ham, without >> this learning, then it would be spam learning when this content comes >> back > >This is just plain wro

Re: Matching multiple newlines [Was: Bayes refinement]

2014-05-21 Thread Karsten Bräckelmann
On Wed, 2014-05-21 at 11:59 -0700, Ian Zimmerman wrote: > Would this be of any import? > > [24+0]~$ perl --version > > This is perl 5, version 14, subversion 2 (v5.14.2) Nope, the Perl version does not make a difference here. -- char *t="\10pse\0r\0dtu\0.@ghno\x4e\xc8\x79\xf4\xab\x51\x8a\x10

Re: Bayes refinement

2014-05-21 Thread Karsten Bräckelmann
On Wed, 2014-05-21 at 10:23 -0700, Ian Zimmerman wrote: > I am trying to do a variant of this for text/plain, as that is the type > I mostly face now. But I cannot get it to work. > rawbody __LOCAL_MUCHO_BLANKS /\n{10,}/m You don't need the "or more" quantifier at the end of your RE. That just u

Re: Matching multiple newlines [Was: Bayes refinement]

2014-05-21 Thread John Hardin
On Wed, 21 May 2014, Ian Zimmerman wrote: On Wed, 21 May 2014 11:50:15 -0700 (PDT) John Hardin wrote: rawbody __LOCAL_MUCHO_BLANKS /\n\n\n\n\n\n\n\n\n\n/m Hmmm, no, your version doesn't work, either. Would this be of any import? [24+0]~$ perl --version This is perl 5, version 14, sub

Re: Rule header from

2014-05-21 Thread Karsten Bräckelmann
On Wed, 2014-05-21 at 08:42 -0300, M. Rodrigo Monteiro wrote: > How to create a rule to tag e-mails from *@word.*.com.br? > > This is what I tested: > header TEST From =~ /.*\@word\..*\.com\.br/i RW already pointed out important improvements. Besides that... Your test rule does what you asked fo

Re: postfix - disable spamassassin for outgoing mail

2014-05-21 Thread Karsten Bräckelmann
On Wed, 2014-05-21 at 19:23 +0200, Benny Pedersen wrote: > [...] users of your server want there mails learned as ham, without > this learning, then it would be spam learning when this content comes > back This is just plain wrong. -- char *t="\10pse\0r\0dtu\0.@ghno\x4e\xc8\x79\xf4\xab\x51\x8a\

Matching multiple newlines [Was: Bayes refinement]

2014-05-21 Thread Ian Zimmerman
On Wed, 21 May 2014 11:50:15 -0700 (PDT) John Hardin wrote: >rawbody __LOCAL_MUCHO_BLANKS /\n\n\n\n\n\n\n\n\n\n/m Hmmm, no, your version doesn't work, either. Would this be of any import? [24+0]~$ perl --version This is perl 5, version 14, subversion 2 (v5.14.2) built for i486-linux-gn

Re: Bayes refinement

2014-05-21 Thread John Hardin
On Wed, 21 May 2014, Ian Zimmerman wrote: On Wed, 21 May 2014 19:08:51 +0100 Martin Gregorie wrote: rawbody __LOCAL_MUCHO_BLANKS /\n{10,}/m Martin> Looking for newlines rather than whitespace? Does /\s{10,}/m Martin> work any better? Nope, it doesn't :-( Anyway, looking for newlines was m

Re: Bayes refinement

2014-05-21 Thread Ian Zimmerman
On Wed, 21 May 2014 19:08:51 +0100 Martin Gregorie wrote: >> rawbody __LOCAL_MUCHO_BLANKS /\n{10,}/m Martin> Looking for newlines rather than whitespace? Does /\s{10,}/m Martin> work any better? Nope, it doesn't :-( Anyway, looking for newlines was my intention, sorry for the misleading nomenc

Re: Bayes refinement

2014-05-21 Thread Martin Gregorie
On Wed, 2014-05-21 at 10:23 -0700, Ian Zimmerman wrote: > I am trying to do a variant of this for text/plain, as that is the type > I mostly face now. But I cannot get it to work. > > header __LOCAL_PLAIN_ASCII Content-Type =~ /text\/plain; *charset="us-ascii"/i > > rawbody __LOCAL_MUCHO_BLANKS

Re: postfix - disable spamassassin for outgoing mail

2014-05-21 Thread Benny Pedersen
On 21. maj 2014 04.51.25 CEST, alexus wrote: >how would i disable spamassassin for outgoing emails? this is counter productive, since users of your server want there mails learned as ham, without this learning, then it would be spam learning when this content comes back better option is to m

Re: Bayes refinement

2014-05-21 Thread Ian Zimmerman
On Thu, 15 May 2014 12:18:25 -0800 Kevin Miller wrote: > I implemented a rule that looks for multiple breaks for just that > reason. Can't remember where I "stole" it from - probably some folks > here helped me with it a few years ago. Can't remember who, but > appreciated the assistance. I am

Re: Rule header from

2014-05-21 Thread RW
On Wed, 21 May 2014 08:42:21 -0300 M. Rodrigo Monteiro wrote: > Hi. > > How to create a rule to tag e-mails from *@word.*.com.br? > > This is what I tested: > header TEST From =~ /.*\@word\..*\.com\.br/i Firstly using From:addr will just match the email address and not the whole header Secondl

Rule header from

2014-05-21 Thread M. Rodrigo Monteiro
Hi. How to create a rule to tag e-mails from *@word.*.com.br? This is what I tested: header TEST From =~ /.*\@word\..*\.com\.br/i SA 3.4 M. Rodrigo Monteiro

Re: postfix - disable spamassassin for outgoing mail

2014-05-21 Thread Martin Gregorie
On Tue, 2014-05-20 at 22:51 -0400, alexus wrote: > how would i disable spamassassin for outgoing emails? > > # cat /etc/redhat-release > Red Hat Enterprise Linux Server release 6.5 (Santiago) > # rpm -q postfix spamassassin > postfix-2.6.6-6.el6_5.x86_64 > spamassassin-3.3.1-3.el6.x86_64 > # > Ho

Re: postfix - disable spamassassin for outgoing mail

2014-05-21 Thread Christian Laußat
Am 21.05.2014 04:51, schrieb alexus: how would i disable spamassassin for outgoing emails? # cat /etc/redhat-release Red Hat Enterprise Linux Server release 6.5 (Santiago) # rpm -q postfix spamassassin postfix-2.6.6-6.el6_5.x86_64 spamassassin-3.3.1-3.el6.x86_64 # How did you enable it? Pleas