Re: spamassassin learn spam

2020-05-08 Thread support
Hi Harald, yes i execute this as the root user. but with which user i have to execute sa-lean --spam if i use amavisd? per default you can't switch to the amavis user to execute the learn command. cheers

Re: spamassassin learn spam

2020-05-08 Thread Matus UHLAR - fantomas
On 08.05.20 09:27, supp...@mmarzouki.de wrote: i have spamassassin on my centos7 system. sometimes i received spammails and i would like to learn this mails as spam with sa-learn --spam. but it doesn't seem to work, because the spamscore is before and after the same. what i did?: i have a

Re: Spamassassin Learn

2006-02-08 Thread jdow
From: Gene Heskett [EMAIL PROTECTED] On Tuesday 07 February 2006 15:27, Clay Davis wrote: Does anyone have any good techniques for capturing a sample of ham that can be used as the ham corpus. I'm in a corporate environment and am not keen on the idea of intercepting non-spam messages. I

Re: Spamassassin Learn

2006-02-08 Thread Matt Kettler
jdow wrote: From: Matt Kettler [EMAIL PROTECTED] (Note I use mailscanner, hence the odd log syntax) grep is spam, /var/log/maillog |wc -l 3434 grep is spam, /var/log/maillog|grep autolearn=spam |wc -l 2766 grep is spam, /var/log/maillog|grep autolearn=not spam | wc -l 0 snip

Re: Spamassassin Learn

2006-02-08 Thread Jim C. Nasby
On Tue, Feb 07, 2006 at 10:05:05PM -0500, Matt Kettler wrote: For reference, these are the only rules in a stock SA 3.1.0 that can give you a negative learning score: score HABEAS_ACCREDITED_COI 0 -8.0 0 -8.0 score RCVD_IN_BSP_TRUSTED 0 -4.3 0 -4.3 score HABEAS_ACCREDITED_SOI 0 -4.3 0 -4.3

Re: Spamassassin Learn

2006-02-08 Thread Matt Kettler
Jim C. Nasby wrote: The hashcash scores don't seem to be triggering learning for me, for some reason... They generally won't. Three things must happen for hashcash to fire: 1) you need a loadplugin Mail::SpamAssassin::Plugin::Hashcash command in your init.pre 2) you need a hashcash_accept

Re: Spamassassin Learn

2006-02-08 Thread Jim C. Nasby
On Wed, Feb 08, 2006 at 11:29:36AM -0500, Matt Kettler wrote: However, looking in the config files, HASHCASH rules have the userconf flag. This means that the Autolearner will also ignore these rules too, as SA will treat it as a user configured whitelist. So, this message had an

Re: Spamassassin Learn

2006-02-08 Thread Matt Kettler
Jim C. Nasby wrote: On Wed, Feb 08, 2006 at 11:29:36AM -0500, Matt Kettler wrote: However, looking in the config files, HASHCASH rules have the userconf flag. This means that the Autolearner will also ignore these rules too, as SA will treat it as a user configured whitelist. So, this

Re: Spamassassin Learn (hashcash)

2006-02-08 Thread Matt Kettler
Matt Kettler wrote: Jim C. Nasby wrote: On Wed, Feb 08, 2006 at 11:29:36AM -0500, Matt Kettler wrote: However, looking in the config files, HASHCASH rules have the userconf flag. This means that the Autolearner will also ignore these rules too, as SA will treat it as a user configured

Re: Spamassassin Learn

2006-02-08 Thread Jim C. Nasby
On Wed, Feb 08, 2006 at 11:49:09AM -0500, Matt Kettler wrote: Jim C. Nasby wrote: On Wed, Feb 08, 2006 at 11:29:36AM -0500, Matt Kettler wrote: However, looking in the config files, HASHCASH rules have the userconf flag. This means that the Autolearner will also ignore these rules too,

Re: Spamassassin Learn

2006-02-08 Thread Matt Kettler
Jim C. Nasby wrote: On Wed, Feb 08, 2006 at 11:49:09AM -0500, Matt Kettler wrote: Jim C. Nasby wrote: On Wed, Feb 08, 2006 at 11:29:36AM -0500, Matt Kettler wrote: However, looking in the config files, HASHCASH rules have the userconf flag. This means that the Autolearner will also ignore

Re: Spamassassin Learn

2006-02-08 Thread Justin Mason
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Jim C. Nasby writes: On Wed, Feb 08, 2006 at 11:29:36AM -0500, Matt Kettler wrote: However, looking in the config files, HASHCASH rules have the userconf flag. This means that the Autolearner will also ignore these rules too, as SA will treat

RE: Spamassassin Learn

2006-02-07 Thread Bowie Bailey
[EMAIL PROTECTED] wrote: Can you just feed spamassassin spam or do you need to give it ham also? I read the docs and it didn't say you had to feed it ham. I then read another doc and it said you should feed it equal amounts of spam and ham. You need to feed it both. I wouldn't worry

Re: Spamassassin Learn

2006-02-07 Thread mike
200 of each to even make it start working on sa-learn email. I then feed it representative amounts of ham and spam. The ratio it comes in. [EMAIL PROTECTED] wrote: Can you just feed spamassassin spam or do you need to give it ham also? I read the docs and it didn't say you had to feed it

Re: Spamassassin Learn

2006-02-07 Thread Matt Kettler
[EMAIL PROTECTED] wrote: Can you just feed spamassassin spam or do you need to give it ham also? I read the docs and it didn't say you had to feed it ham. I then read another doc and it said you should feed it equal amounts of spam and ham. Yes, you really should feed it both. You also

Re: Spamassassin Learn

2006-02-07 Thread Clay Davis
Does anyone have any good techniques for capturing a sample of ham that can be used as the ham corpus. I'm in a corporate environment and am not keen on the idea of intercepting non-spam messages. I will if I have to, but was hoping someone had a better idea. Regards, Clay On 2/7/2006 at

Re: Spamassassin Learn

2006-02-07 Thread jdow
This is what automatic training attempts to solve. If you are reliably nailing spam with your current setup you can experiment with the automatic learning. But I'd widen the score ranges a little, as far as is practical for your mail mix. {^_^} - Original Message - From: Clay Davis

Re: Spamassassin Learn

2006-02-07 Thread Jim C. Nasby
On Tue, Feb 07, 2006 at 03:16:57PM -0500, Matt Kettler wrote: My current training ratio is about 7:1 spam:nonspam, but in the past it's been as bad as 20:1. Both of those are very far off from equal amounts, but the imbalance has never caused me any problems. From my sa-learn --dump magic

Re: Spamassassin Learn

2006-02-07 Thread Matt Kettler
Jim C. Nasby wrote: On Tue, Feb 07, 2006 at 03:16:57PM -0500, Matt Kettler wrote: My current training ratio is about 7:1 spam:nonspam, but in the past it's been as bad as 20:1. Both of those are very far off from equal amounts, but the imbalance has never caused me any problems. From my

Re: Spamassassin Learn

2006-02-07 Thread jdow
From: Jim C. Nasby [EMAIL PROTECTED] On Tue, Feb 07, 2006 at 03:16:57PM -0500, Matt Kettler wrote: My current training ratio is about 7:1 spam:nonspam, but in the past it's been as bad as 20:1. Both of those are very far off from equal amounts, but the imbalance has never caused me any

Re: Spamassassin Learn

2006-02-07 Thread Jim C. Nasby
On Tue, Feb 07, 2006 at 04:40:40PM -0500, Matt Kettler wrote: I would also check to make sure you don't have a lot of spam coming in that's getting autolearned as ham. (note: the learner's idea of score is very different than the final message score, so a message CAN be tagged as spam, and

Re: Spamassassin Learn

2006-02-07 Thread Matt Kettler
Jim C. Nasby wrote: On Tue, Feb 07, 2006 at 04:40:40PM -0500, Matt Kettler wrote: I would also check to make sure you don't have a lot of spam coming in that's getting autolearned as ham. (note: the learner's idea of score is very different than the final message score, so a message CAN be

Re: Spamassassin Learn

2006-02-07 Thread Jim C. Nasby
On Tue, Feb 07, 2006 at 05:02:25PM -0500, Matt Kettler wrote: Jim C. Nasby wrote: On Tue, Feb 07, 2006 at 04:40:40PM -0500, Matt Kettler wrote: I would also check to make sure you don't have a lot of spam coming in that's getting autolearned as ham. (note: the learner's idea of score is

Re: Spamassassin Learn

2006-02-07 Thread Mike Jackson
Does anyone have any good techniques for capturing a sample of ham that can be used as the ham corpus. I'm in a corporate environment and am not keen on the idea of intercepting non-spam messages. I will if I have to, but was hoping someone had a better idea. Depending on your MTA/MDA, you

Re: Spamassassin Learn

2006-02-07 Thread Matt Kettler
Jim C. Nasby wrote: On Tue, Feb 07, 2006 at 05:02:25PM -0500, Matt Kettler wrote: Jim C. Nasby wrote: On Tue, Feb 07, 2006 at 04:40:40PM -0500, Matt Kettler wrote: I would also check to make sure you don't have a lot of spam coming in that's getting autolearned as ham. (note: the learner's

Re: Spamassassin Learn

2006-02-07 Thread Jim C. Nasby
On Tue, Feb 07, 2006 at 01:45:48PM -0800, jdow wrote: From: Jim C. Nasby [EMAIL PROTECTED] On Tue, Feb 07, 2006 at 03:16:57PM -0500, Matt Kettler wrote: My current training ratio is about 7:1 spam:nonspam, but in the past it's been as bad as 20:1. Both of those are very far off from equal

Re: Spamassassin Learn

2006-02-07 Thread Matt Kettler
Jim C. Nasby wrote: Are there any autolearn strings? Are they all autolearn=no? are there any decent number that are autolearn=failed or autolearn=disabled? grep -r autolearn caughtspam/ | grep -v 'Binary file' | sed -e 's/.*autolearn=\([^ ]*\).*/\1/'|sort|uniq -c 1545 no 140 spam 4

Re: Spamassassin Learn

2006-02-07 Thread Jim C. Nasby
On Tue, Feb 07, 2006 at 05:47:36PM -0500, Matt Kettler wrote: Jim C. Nasby wrote: On Tue, Feb 07, 2006 at 05:02:25PM -0500, Matt Kettler wrote: Jim C. Nasby wrote: On Tue, Feb 07, 2006 at 04:40:40PM -0500, Matt Kettler wrote: I would also check to make sure you don't have a lot of spam

Re: Spamassassin Learn

2006-02-07 Thread Jim C. Nasby
On Tue, Feb 07, 2006 at 06:17:20PM -0500, Matt Kettler wrote: Jim C. Nasby wrote: Are there any autolearn strings? Are they all autolearn=no? are there any decent number that are autolearn=failed or autolearn=disabled? grep -r autolearn caughtspam/ | grep -v 'Binary file' | sed -e

Re: Spamassassin Learn

2006-02-07 Thread mike
Probably would work if you were running Linux. Jim C. Nasby wrote: On Tue, Feb 07, 2006 at 05:47:36PM -0500, Matt Kettler wrote: Chupacabra

Re: Spamassassin Learn

2006-02-07 Thread Matt Kettler
Jim C. Nasby wrote: Are you using network tests? Without DNSBLs it's often hard to get enough header points to cause spam learning.. I believe so... grep loadplugin /usr/local/etc/mail/spamassassin/init.pre # loadplugin Mail::SpamAssassin::Plugin::RelayCountry loadplugin

Re: Spamassassin Learn

2006-02-07 Thread Jim C. Nasby
On Tue, Feb 07, 2006 at 05:36:56PM -0600, Jim C. Nasby wrote: On Tue, Feb 07, 2006 at 06:17:20PM -0500, Matt Kettler wrote: Jim C. Nasby wrote: Are there any autolearn strings? Are they all autolearn=no? are there any decent number that are autolearn=failed or autolearn=disabled?

Re: Spamassassin Learn

2006-02-07 Thread Jim C. Nasby
On Tue, Feb 07, 2006 at 06:47:06PM -0500, Matt Kettler wrote: Jim C. Nasby wrote: Are you using network tests? Without DNSBLs it's often hard to get enough header points to cause spam learning.. I believe so... grep loadplugin /usr/local/etc/mail/spamassassin/init.pre #

Re: Spamassassin Learn

2006-02-07 Thread Jim C. Nasby
On Tue, Feb 07, 2006 at 05:45:54PM -0600, mike wrote: Probably would work if you were running Linux. The problem isn't that it isn't working, the problem is that it's working too well. I guess maybe that's something you're not used to. :P -- Jim C. Nasby, Database Architect

Re: Spamassassin Learn

2006-02-07 Thread mike
Jim C. Nasby wrote: On Tue, Feb 07, 2006 at 05:45:54PM -0600, mike wrote: Probably would work if you were running Linux. The problem isn't that it isn't working, the problem is that it's working too well. I guess maybe that's something you're not used to. :P Something tells me

Re: Spamassassin Learn

2006-02-07 Thread Matt Kettler
Jim C. Nasby wrote: On Tue, Feb 07, 2006 at 05:36:56PM -0600, Jim C. Nasby wrote: On Tue, Feb 07, 2006 at 06:17:20PM -0500, Matt Kettler wrote: Jim C. Nasby wrote: Are there any autolearn strings? Are they all autolearn=no? are there any decent number that are

Re: Spamassassin Learn

2006-02-07 Thread jdow
From: Matt Kettler [EMAIL PROTECTED] Jim C. Nasby wrote: Are there any autolearn strings? Are they all autolearn=no? are there any decent number that are autolearn=failed or autolearn=disabled? grep -r autolearn caughtspam/ | grep -v 'Binary file' | sed -e 's/.*autolearn=\([^

Re: Spamassassin Learn

2006-02-07 Thread Jim C. Nasby
On Tue, Feb 07, 2006 at 07:59:37PM -0500, Matt Kettler wrote: Jim, Bayes is NOT used when calculating autolearning score, that would promote self feedbac. As I said before, the autolearner's concept of score is VERY different from the final message score. Score contributions from bayes,

Re: Spamassassin Learn

2006-02-07 Thread Matt Kettler
Jim C. Nasby wrote: On Tue, Feb 07, 2006 at 07:59:37PM -0500, Matt Kettler wrote: Jim, Bayes is NOT used when calculating autolearning score, that would promote self feedbac. As I said before, the autolearner's concept of score is VERY different from the final message score. Score

Re: Spamassassin Learn

2006-02-07 Thread Gene Heskett
On Tuesday 07 February 2006 15:27, Clay Davis wrote: Does anyone have any good techniques for capturing a sample of ham that can be used as the ham corpus. I'm in a corporate environment and am not keen on the idea of intercepting non-spam messages. I will if I have to, but was hoping someone