Re: sa-learn on an Exchange public folder

2023-12-05 Thread jahlives
Does anything "speak" against just fetching the message from said folder (ex getmail or fetchmail) and feed them to sa-learn? At least for getmail one can define a filter section which then calls sa-learn and give it the message for learning. I use a getmail config like this [retriever] type =

Re: sa-learn on an Exchange public folder

2023-12-04 Thread Bill Cole
On 2023-12-03 at 14:58:36 UTC-0500 (Sun, 3 Dec 2023 20:58:36 +0100) Emmanuel Seyman is rumored to have said: Hello all. I've set up SA at $WORK and now want to train the bayesian classifier. To that end, a public folder has been setup on our Exchange server and I want to run sa-learn on any

Re: sa-learn on an Exchange public folder

2023-12-04 Thread Benny Pedersen
Kris Deugau skrev den 2023-12-04 18:23: Fair warning, I gave up on using IMAP for feeding Bayes locally because it started to glitch out and fail for no reason I could see. But the mailboxes I'm learning from are maildir on a *nix platform, not whatever black box Exchange hides things in.

Re: sa-learn on an Exchange public folder

2023-12-04 Thread Kris Deugau
Emmanuel Seyman wrote: Hello all. I've set up SA at $WORK and now want to train the bayesian classifier. To that end, a public folder has been setup on our Exchange server and I want to run sa-learn on any email that is transferred to it. I'm guessing this is a popular thing to do and that

Re: sa-learn using multiple CPUs?

2021-04-16 Thread Benny Pedersen
On 2021-04-16 03:29, John Hardin wrote: So I will re-configure my installation to use MariaDB. You should also consider the Redis backend. i dont like to see redis needs sysctl non default settings so much more power does redis not have imho one could use memory engine in mysql, and then

Re: sa-learn using multiple CPUs?

2021-04-16 Thread Axb
How hard is it to keep list mail on list and not reply directly to sender? Have you seen https://svn.apache.org/repos/asf/spamassassin/trunk/contrib/HOWTO.Bayes-Redis/ ? there may be some helpful info in there. On 4/16/21 9:47 AM, Christian Völker wrote: Thanks for the hint. I will monitor

Re: sa-learn using multiple CPUs?

2021-04-16 Thread Axb
To avoid suprises, remember to watch your memory usage. Redis reads/writes the DB in memory and only dumps to disk for backup. "redis-cli info" is of help On 4/16/21 9:10 AM, Christian Völker wrote: Sorry to annoy you. Another addition to my tests: When using redis it took me around

Re: sa-learn using multiple CPUs?

2021-04-16 Thread Christian Völker
Sorry to annoy you. Another addition to my tests: When using redis it took me around 15seconds to scan ~1,500 messages. When using MariaDB it took one minute to do the same. With file based I had strange issues whatever lock type eI used (flock yes/no): "bayes: bayes db version 0 is not able to

Re: sa-learn using multiple CPUs?

2021-04-16 Thread Christian Völker
Hi, So I will re-configure my installation to use MariaDB. You should also consider the Redis backend. Ok, had a look when using MariaDB and I monitored it for the last 24hrs. My 10 vCPUs where used, no I/O waits. But CPU usage overall was according to "top" only at 25% as top showed 75%

Re: sa-learn using multiple CPUs?

2021-04-15 Thread John Hardin
On Thu, 15 Apr 2021, Christian Völker wrote: Hi, so I did some testing. When using bayes_ files as backend and flock only a single process consumes CPU (strange, I have seen different behaviour before). When using MariaDB as backend all processes use CPU and share them with the MariaDB

Re: sa-learn using multiple CPUs?

2021-04-15 Thread Christian Völker
Hi, so I did some testing. When using bayes_ files as backend and flock only a single process consumes CPU (strange, I have seen different behaviour before). When using MariaDB as backend all processes use CPU and share them with the MariaDB process. So I will re-configure my installation

Re: sa-learn using multiple CPUs?

2021-04-15 Thread Henrik K
If you insist on file bayes, atleast make sure you use "lock_method flock". Or maybe BDB backend, don't remember if it's faster. > On 4/15/21 2:45 PM, Christian Völker wrote: > > Hi, > > > > well, here it is not I/O bound (running on RAID1-SSDs). I am using the > > "default" file based

Re: sa-learn using multiple CPUs?

2021-04-15 Thread Axb
Please keep list mail on list! if you run parallel sa-learn instances you'll run into locked DB errors. With a SDBM backend it would be a bit faster but still lock up. afaik, Redis backend won't have locking issues. (dunno about SQL - I use Redis) On 4/15/21 2:45 PM, Christian Völker wrote: Hi,

Re: sa-learn using multiple CPUs?

2021-04-15 Thread Henrik K
On Thu, Apr 15, 2021 at 08:39:42AM -0400, Greg Troxel wrote: > > I don't know, but beware that if you have TXREP configured, and you do > not use -L to sa-learn, I believe you will end up making DNSBL queries > for all of them. Thanks, TxRep actually seems to be the culprit. Will look into it..

Re: sa-learn using multiple CPUs?

2021-04-15 Thread Christian Völker
Hi, I don't know, but beware that if you have TXREP configured, and you do not use -L to sa-learn, I believe you will end up making DNSBL queries for all of them. Good catch! I did not use "-L" so far and I am pretty sure there is nothing configured but from reading then man page it will not

Re: sa-learn using multiple CPUs?

2021-04-15 Thread Greg Troxel
Christian Völker writes: > I am going to add some large spam archives for my Bayes database with > sa-learn. > > I have a machine with six vCPUs and obviously I would like to speed up > the learning process. I am thinking of running six sa-learn processes > in parallel. Is there any issue with

Re: sa-learn using multiple CPUs?

2021-04-15 Thread Axb
Depending on your Bayes backend, your bottleneck will not be the CPUs but I/O. Normally there's no need for running multiple sa-learn instances. My sa-learn is learning +40 msgs/sec from a SSD into a Redis DB. On 4/15/21 2:33 PM, Christian Völker wrote: Hi all, I am going to add some large

Re: sa-learn, TXREP, network queries, documentation

2021-04-12 Thread RW
On Mon, 12 Apr 2021 09:40:47 -0400 Greg Troxel wrote: > 3) sa-learn does not document that it is no longer for BAYES, but a > general interface to mechanisms that learn. It always was in theory. > 4) There is a bonus of txrep_learn_penalty for learning spam, > default 20. If the

Re: sa-learn absurdly slow on re-iterating over mailboxes (TxRep involved)

2020-01-24 Thread Nix
On 14 Jan 2020, Henrik K. said: > On Tue, Jan 14, 2020 at 12:05:57PM +, Nix wrote: >> >> I've come to the conclusion that TxRep is essentially unmaintained and >> basically doesn't work unless you use SQL storage, and have migrated >> back to the AWL, which still works fine. I hope I'm

Re: sa-learn absurdly slow on re-iterating over mailboxes (TxRep involved)

2020-01-24 Thread Nix
On 14 Jan 2020, Dean Carpenter spake thusly: > On 2020-01-14 7:05 am, Nix wrote: >> On 8 Jan 2020, Benjamin Block told this: >> >> ... looks like it to me. It's at least spotting the lock and breaking >> it, but it's still taking a second and a half to do it, and it happens >> for each message.

Re: sa-learn absurdly slow on re-iterating over mailboxes (TxRep involved)

2020-01-17 Thread RW
On Tue, 14 Jan 2020 12:05:57 + Nix wrote: > I've come to the conclusion that TxRep is essentially unmaintained and > basically doesn't work unless you use SQL storage, and have migrated > back to the AWL, which still works fine. I hope I'm wrong. I think people should think about whether

Re: sa-learn absurdly slow on re-iterating over mailboxes (TxRep involved)

2020-01-17 Thread Benjamin Block
On Tue, Jan 14, 2020 at 12:05:57PM +, Nix wrote: > On 8 Jan 2020, Benjamin Block told this: > > > Now, if I run sa-learn again on the same folder (the manual says > > "SpamAssassin remembers which mail messages it has learnt already, > > and will not re-learn those messages again, unless you

Re: sa-learn absurdly slow on re-iterating over mailboxes (TxRep involved)

2020-01-14 Thread Dean Carpenter
On 2020-01-14 7:05 am, Nix wrote: On 8 Jan 2020, Benjamin Block told this: ... looks like it to me. It's at least spotting the lock and breaking it, but it's still taking a second and a half to do it, and it happens for each message. That's better than the 90s it used to take, but still bad.

Re: sa-learn absurdly slow on re-iterating over mailboxes (TxRep involved)

2020-01-14 Thread Henrik K
On Tue, Jan 14, 2020 at 12:05:57PM +, Nix wrote: > > I've come to the conclusion that TxRep is essentially unmaintained and > basically doesn't work unless you use SQL storage, and have migrated > back to the AWL, which still works fine. I hope I'm wrong. There's only so much a few inactive

Re: sa-learn absurdly slow on re-iterating over mailboxes (TxRep involved)

2020-01-14 Thread Nix
On 8 Jan 2020, Benjamin Block told this: > Now, if I run sa-learn again on the same folder (the manual says > "SpamAssassin remembers which mail messages it has learnt already, > and will not re-learn those messages again, unless you use the --forget > option.", so I think this is OK to do), it

Re: sa-learn

2018-10-15 Thread cs993232
Great, and it works! Kevin, you rocks! -- Sent from: http://spamassassin.1065346.n5.nabble.com/SpamAssassin-Users-f3.html

Re: sa-learn

2018-10-15 Thread Kevin A. McGrail
I think it's possibly related to a misspelling. See https://bz.apache.org/SpamAssassin/show_bug.cgi?id=7636 Regards, KAM -- Kevin A. McGrail VP Fundraising, Apache Software Foundation Chair Emeritus Apache SpamAssassin Project https://www.linkedin.com/in/kmcgrail - 703.798.0171 On Mon, Oct 15,

Re: sa-learn - not able to get a byes lock

2018-07-23 Thread Nick Bright
On 7/19/2018 1:22 PM, John Hardin wrote: Is this something I should fix on a flat file bayes DB, or should I look at going to Bayes-SQL? Redis would probably be better. I'm having some trouble finding any kind of significant documentation about this. Could somebody please point me at some

Re: sa-learn - not able to get a byes lock

2018-07-19 Thread John Hardin
On Thu, 19 Jul 2018, Nick Bright wrote: On 7/19/2018 1:22 PM, John Hardin wrote: Do you happen to have autolearn enabled? If so, turn it off. In general, or just while trying to run sa-learn? I think there's consensus that you leave it disabled initially, and do manual training to a base

Re: sa-learn - not able to get a byes lock

2018-07-19 Thread Nick Bright
On 7/19/2018 1:22 PM, John Hardin wrote: Do you happen to have autolearn enabled? If so, turn it off. In general, or just while trying to run sa-learn? Redis would probably be better. I'll check it out, thanks. Also, if you don't have autolearn enabled and you're using flat files, you could

Re: sa-learn - not able to get a byes lock

2018-07-19 Thread John Hardin
On Thu, 19 Jul 2018, Nick Bright wrote: I've deployed SA into my environment, and I'm trying to add some training data. This is in a site-wide configuration, so it's a site-wide bayes file. The server is fairly active (several thousand mailboxes, hundreds of messages per second). When

Re: sa-learn

2018-02-12 Thread Matus UHLAR - fantomas
On 11.02.18 19:09, Hendrik Haddorp wrote: I have a maildir with about 2 mails. In the past this does not seem to have been a problem. But since a few weeks my sa-learn process dies with an OOM now. On 11.02.18 20:10, Hendrik Haddorp wrote: so far I was always letting it run once a week

Re: sa-learn

2018-02-11 Thread RW
On Sun, 11 Feb 2018 19:09:32 +0100 Hendrik Haddorp wrote: > Hi, > > I have a maildir with about 2 mails. In the past this does not > seem to have been a problem. But since a few weeks my sa-learn > process dies with an OOM now. My server has only 1GB of memory with > another GB for swap.

Re: sa-learn

2018-02-11 Thread Hendrik Haddorp
thanks, I'll give that a try On 11.02.2018 20:15, Reindl Harald wrote: Am 11.02.2018 um 20:10 schrieb Hendrik Haddorp: so far I was always letting it run once a week over my inbox in --ham mode and over my spam folder in --spam mode. all tutorials I saw did it the same way. this also worked

Re: sa-learn

2018-02-11 Thread Hendrik Haddorp
so far I was always letting it run once a week over my inbox in --ham mode and over my spam folder in --spam mode. all tutorials I saw did it the same way. this also worked for years but likely with less mail files. I was under the impression that sa-learn would skip messages that it already

Re: sa-learn

2018-02-11 Thread Matus UHLAR - fantomas
On 11.02.18 19:09, Hendrik Haddorp wrote: I have a maildir with about 2 mails. In the past this does not seem to have been a problem. But since a few weeks my sa-learn process dies with an OOM now. do you run sa-learn over whole maildir all the time? why? My server has only 1GB of memory

Re: sa-learn

2018-02-11 Thread Hendrik Haddorp
it's a small hosted VM running fine for years. On 11.02.2018 19:35, Reindl Harald wrote: Am 11.02.2018 um 19:09 schrieb Hendrik Haddorp: I have a maildir with about 2 mails. In the past this does not seem to have been a problem. But since a few weeks my sa-learn process dies with an OOM

Re: sa-learn won't read db created via MSTOR

2017-07-10 Thread RW
On Sat, 8 Jul 2017 21:55:36 +0100 RW wrote: > On Sat, 8 Jul 2017 14:14:42 -0500 > Jerry Malcolm wrote: > As a proof of concept try a small mbox file with > > mbox_format_from_regex /^From\s/ and if it works try this instead: /^From \S+ ?(\S\S\S \S\S\S .?\d .?\d:\d\d:\d\d \d{4})/

Re: sa-learn won't read db created via MSTOR

2017-07-08 Thread Antony Stone
On Saturday 08 July 2017 at 22:55:36, RW wrote: > I had a spillage and most of the punctuation characters > on my keyboard aren't working at the moment. Oh dear, my sympathies - but what a splendid quote on a mailing list :) Antony. -- Salad is what food eats.

Re: sa-learn won't read db created via MSTOR

2017-07-08 Thread RW
On Sat, 8 Jul 2017 14:14:42 -0500 Jerry Malcolm wrote: > Thanks for the info. Unfortunately, I don't have a clue how to > interpret a regex expression. I couldn't find any reference to > mbox_format_from_regex in the 3.1.x Mail::SpamAssassin::Conf that > came up when I googled it. I hope you

Re: sa-learn won't read db created via MSTOR

2017-07-08 Thread Jerry Malcolm
Upon further investigation, I don't think sa-learn is even attempting to open the file. I get the exact same message whether I give it a real file or just a string of characters for a file name: [C:\Program Files\JAM Software\SpamAssassin in a Box]sa-learn.exe --spam --mbox

Re: sa-learn won't read db created via MSTOR

2017-07-08 Thread Jerry Malcolm
Thanks for the info. Unfortunately, I don't have a clue how to interpret a regex expression. I couldn't find any reference to mbox_format_from_regex in the 3.1.x Mail::SpamAssassin::Conf that came up when I googled it. The separators in my mbox file are: From - Sat Jul 8 01:02:28 2017 Can

Re: sa-learn won't read db created via MSTOR

2017-07-08 Thread RW
On Sat, 8 Jul 2017 01:57:47 -0500 Jerry Malcolm wrote: > Below is a complete log dump from the -D option on sa-learn. ... > _set_default_message_selection_opts After: Scanprob[1], want_date[0], > cache[0], from_regex[^From \S+ ?(\S\S\S \S\S\S .\d .\d:\d\d:\d\d >

Re: sa-learn won't read db created via MSTOR

2017-07-08 Thread Jerry Malcolm
Below is a complete log dump from the -D option on sa-learn. I am really curious that the file name I passed in is never even mentioned in the log. Is that expected? Do I have some sort of syntax error passing the mbox filename in? Here's the command: [C:\Program Files\JAM

Re: sa-learn seems to ignore auto_whitelist_path directive for global txrep database

2017-01-20 Thread Michael Meier
I just switched from AWL to txrep. It seems to be working properly from amavis, the only problem I've got, is that sa-learn seems to ignore the auto_whitelist_path directive in local.cf . It doesn't matter to what I set it, sa-learn always updates /root/.spamassassin/tx-reputation

Re: sa-learn seems to ignore auto_whitelist_path directive for global txrep database

2017-01-19 Thread RW
On Thu, 19 Jan 2017 21:43:54 +0100 Michael Meier wrote: > Hi > > I just switched from AWL to txrep. It seems to be working properly > from amavis, the only problem I've got, is that sa-learn seems to > ignore the auto_whitelist_path directive in local.cf . > It doesn't matter to what I set it,

Re: sa-learn --force-expire bails with "netset: illegal IP address given (patricia trie): '=/128'"

2016-07-26 Thread Benny Pedersen
On 2016-07-26 16:37, Ralf Hildebrandt wrote: I grepped for "=/128" in /etc and /var/lib/spamassassin -- nothing. What is amiss here? http://ipv6bingo.com/ me hiddes, check where =/128 is located provide spamassassin 2>&1 -D --lint so we know what perl modules you have

Re: sa-learn --force-expire bails with "netset: illegal IP address given (patricia trie): '=/128'"

2016-07-26 Thread Benny Pedersen
On 2016-07-26 16:42, Ralf Hildebrandt wrote: Argh. I set trusted_networks = something instead of trusted_networks something would a spamassassin --lint show that ? :=)

Re: sa-learn --force-expire bails with "netset: illegal IP address given (patricia trie): '=/128'"

2016-07-26 Thread Reindl Harald
Am 26.07.2016 um 17:27 schrieb Benny Pedersen: On 2016-07-26 16:37, Ralf Hildebrandt wrote: I grepped for "=/128" in /etc and /var/lib/spamassassin -- nothing. What is amiss here? http://ipv6bingo.com/ do you post that crap everytime? then place it in your signature me hiddes, check

Re: sa-learn --force-expire bails with "netset: illegal IP address given (patricia trie): '=/128'"

2016-07-26 Thread Ralf Hildebrandt
* Ralf Hildebrandt : > I grepped for "=/128" in /etc and /var/lib/spamassassin -- nothing. > What is amiss here? Argh. I set trusted_networks = something instead of trusted_networks something -- Ralf Hildebrandt Charite Universitätsmedizin Berlin

Re: sa-learn from mails which passed SA

2015-12-17 Thread Reindl Harald
Am 17.12.2015 um 11:41 schrieb Matthias Apitz: I'm sorting all mails out into 2 mbox: HAM and SPAM and from time to time I run sa-learn with them. Short question: the mails in both are not the original mail, but the result of what SA added to them. Isn't it wrong to pass this so modified to

Re: sa-learn

2015-04-13 Thread Kevin A. McGrail
On 4/13/2015 6:24 PM, Roman Gelfand wrote: I have deployed spamassassin with postfix on mail gateway machine. My dovecot mailbox server is on another machine. The mail on mailbox server is stored on maildir. If I understand this correctly, If I want to run sa-learn, I need to nfs mount

Re: sa-learn

2015-04-13 Thread John Hardin
On Mon, 13 Apr 2015, Roman Gelfand wrote: I have deployed spamassassin with postfix on mail gateway machine. My dovecot mailbox server is on another machine. The mail on mailbox server is stored on maildir. If I understand this correctly, If I want to run sa-learn, I need to nfs mount

Re: sa-learn strip last Received: header for own MDA

2014-09-19 Thread John Hardin
On Fri, 19 Sep 2014, Marcus Schopen wrote: still playing with sa-learn. If I feed sa-learn do I have to strip the last Received: header which is the Received header for my own MDA (imap-backend) before piping the message into sa-learn? No, that shouldn't matter. The common bits will be

Re: sa-learn strip last Received: header for own MDA

2014-09-19 Thread LuKreme
On 19 Sep 2014, at 09:06 , Marcus Schopen li...@localguru.de wrote: still playing with sa-learn. If I feed sa-learn do I have to strip the last Received: header which is the Received header for my own MDA (imap-backend) before piping the message into sa-learn? All you need to do is make sure

Re: sa-learn from a remote imap folder

2014-09-15 Thread Giles Coochey
On 12/09/2014 18:34, Rick Macdougall wrote: On 2014-09-12 1:24 PM, John Hardin wrote: On Fri, 12 Sep 2014, Reindl Harald wrote: Am 12.09.2014 um 15:26 schrieb Giles Coochey: On 12/09/2014 13:47, Rick Macdougall wrote: I have used imap-sa-learn.pl for years. Works great. Google

Re: sa-learn from a remote imap folder

2014-09-15 Thread RW
On Sat, 13 Sep 2014 13:54:13 -0500 Dave Pooser wrote: On 9/13/14 1:38 PM, Bob Proulx b...@proulx.com wrote: If you are using Maildir format then there are no locks. That makes Maildir format the format of choice for use over NFS. Excellent. I am in fact using Maildir, so I guess it's not

Re: sa-learn from a remote imap folder

2014-09-13 Thread Jari Fredriksson
13.09.2014, 08:57, Dave Pooser kirjoitti: Dave At $DAYJOB we export the spam folder (and a ham folder for FPs) Dave via NFS and mount them on the frontline SA servers for sa-learn. Doesn't that smell of locking issues? To be honest, I'd just assumed that NFS wouldn't do any locking on a

Re: sa-learn from a remote imap folder

2014-09-13 Thread Bob Proulx
Dave Pooser wrote: Dave At $DAYJOB we export the spam folder (and a ham folder for FPs) Dave via NFS and mount them on the frontline SA servers for sa-learn. Doesn't that smell of locking issues? To be honest, I'd just assumed that NFS wouldn't do any locking on a read-only export. If

Re: sa-learn from a remote imap folder

2014-09-13 Thread Dave Pooser
On 9/13/14 1:38 PM, Bob Proulx b...@proulx.com wrote: If you are using Maildir format then there are no locks. That makes Maildir format the format of choice for use over NFS. Excellent. I am in fact using Maildir, so I guess it's not just luck that I've had no locking issues. Thanks, Ian, for

Re: sa-learn from a remote imap folder

2014-09-12 Thread Axb
On 09/12/2014 10:05 AM, Marcus Schopen wrote: Hi, spamassassin and imap (cyrus) are running on different boxes. What is best practice to learn spam from a remote imap folder? Any good working scripts? I found these: https://wiki.apache.org/spamassassin/RemoteImapFolder

Re: sa-learn from a remote imap folder

2014-09-12 Thread Marcus Schopen
Hi, Am Freitag, den 12.09.2014, 10:13 +0200 schrieb Axb: On 09/12/2014 10:05 AM, Marcus Schopen wrote: Hi, spamassassin and imap (cyrus) are running on different boxes. What is best practice to learn spam from a remote imap folder? Any good working scripts? I found these:

RE: sa-learn from a remote imap folder

2014-09-12 Thread David Jones
From: Marcus Schopen li...@localguru.de Sent: Friday, September 12, 2014 3:33 AM To: Axb Cc: users@spamassassin.apache.org Subject: Re: sa-learn from a remote imap folder Hi, Am Freitag, den 12.09.2014, 10:13 +0200 schrieb Axb: On 09/12/2014 10:05 AM

Re: sa-learn from a remote imap folder

2014-09-12 Thread Dave Pooser
On 9/12/14 3:05 AM, Marcus Schopen li...@localguru.de wrote: spamassassin and imap (cyrus) are running on different boxes. What is best practice to learn spam from a remote imap folder? At $DAYJOB we export the spam folder (and a ham folder for FPs) via NFS and mount them on the frontline SA

Re: sa-learn from a remote imap folder

2014-09-12 Thread Rick Macdougall
Am Freitag, den 12.09.2014, 10:13 +0200 schrieb Axb: On 09/12/2014 10:05 AM, Marcus Schopen wrote: Hi, spamassassin and imap (cyrus) are running on different boxes. What is best practice to learn spam from a remote imap folder? Any good working scripts? Hi, I have used imap-sa-learn.pl for

Re: sa-learn from a remote imap folder

2014-09-12 Thread Giles Coochey
On 12/09/2014 13:47, Rick Macdougall wrote: Hi, I have used imap-sa-learn.pl for years. Works great. Google imap-sa-learn.pl to get the perl source code. Wouldn't mind using it, but don't think I can get it working as my IMAP server requires SSL -- Regards, Giles Coochey, CCNP, CCNA,

Re: sa-learn from a remote imap folder

2014-09-12 Thread Reindl Harald
Am 12.09.2014 um 15:26 schrieb Giles Coochey: On 12/09/2014 13:47, Rick Macdougall wrote: I have used imap-sa-learn.pl for years. Works great. Google imap-sa-learn.pl to get the perl source code. Wouldn't mind using it, but don't think I can get it working as my IMAP server requires SSL

Re: sa-learn from a remote imap folder

2014-09-12 Thread Kris Deugau
Marcus Schopen wrote: Hi, spamassassin and imap (cyrus) are running on different boxes. What is best practice to learn spam from a remote imap folder? Any good working scripts? I've been using http://www.deepnet.cx/~kdeugau/spamtools/imap-learn (derived from the script at

Re: sa-learn from a remote imap folder

2014-09-12 Thread Giles Coochey
On 12/09/2014 14:30, Reindl Harald wrote: Wouldn't mind using it, but don't think I can get it working as my IMAP server requires SSL have you tried it? these days almost anything works with SSL because common used libraries It times out, as it tries to connect on port 143, server runs on

Re: sa-learn from a remote imap folder

2014-09-12 Thread Reindl Harald
Am 12.09.2014 um 17:48 schrieb Giles Coochey: On 12/09/2014 14:30, Reindl Harald wrote: Wouldn't mind using it, but don't think I can get it working as my IMAP server requires SSL have you tried it? these days almost anything works with SSL because common used libraries It times out,

Re: sa-learn from a remote imap folder

2014-09-12 Thread Giles Coochey
On 12/09/2014 17:01, Reindl Harald wrote: Am 12.09.2014 um 17:48 schrieb Giles Coochey: On 12/09/2014 14:30, Reindl Harald wrote: Wouldn't mind using it, but don't think I can get it working as my IMAP server requires SSL have you tried it? these days almost anything works with SSL because

Re: sa-learn from a remote imap folder

2014-09-12 Thread John Hardin
On Fri, 12 Sep 2014, Reindl Harald wrote: Am 12.09.2014 um 15:26 schrieb Giles Coochey: On 12/09/2014 13:47, Rick Macdougall wrote: I have used imap-sa-learn.pl for years. Works great. Google imap-sa-learn.pl to get the perl source code. Wouldn't mind using it, but don't think I can get

Re: sa-learn from a remote imap folder

2014-09-12 Thread Rick Macdougall
On 2014-09-12 1:24 PM, John Hardin wrote: On Fri, 12 Sep 2014, Reindl Harald wrote: Am 12.09.2014 um 15:26 schrieb Giles Coochey: On 12/09/2014 13:47, Rick Macdougall wrote: I have used imap-sa-learn.pl for years. Works great. Google imap-sa-learn.pl to get the perl source code.

Re: sa-learn from a remote imap folder

2014-09-12 Thread Ian Zimmerman
On Fri, 12 Sep 2014 07:45:22 -0500, Dave Pooser dave...@pooserville.com wrote: Marcus spamassassin and imap (cyrus) are running on different Marcus boxes. What is best practice to learn spam from a remote imap Marcus folder? Dave At $DAYJOB we export the spam folder (and a ham folder for FPs)

Re: sa-learn from a remote imap folder

2014-09-12 Thread Dave Pooser
Dave At $DAYJOB we export the spam folder (and a ham folder for FPs) Dave via NFS and mount them on the frontline SA servers for sa-learn. Doesn't that smell of locking issues? To be honest, I'd just assumed that NFS wouldn't do any locking on a read-only export. I haven't seen any issues yet,

Re: sa-learn and find

2014-09-03 Thread Matus UHLAR - fantomas
On Sat, 30 Aug 2014 08:23:02 -0600 LuKreme wrote: if test -d $J_PATH; then MYFIND=`find $J_PATH/ -type f -mtime -7|grep -v dovecot` On 30.08.14 22:32, RW wrote: mtime may not be the best choice. Ideally what you want is the the time since the spam was moved to Junk, rather than the

Re: sa-learn and find

2014-09-03 Thread LuKreme
On 03 Sep 2014, at 02:05 , Matus UHLAR - fantomas uh...@fantomas.sk wrote: On Sat, 30 Aug 2014 08:23:02 -0600 LuKreme wrote: if test -d $J_PATH; then MYFIND=`find $J_PATH/ -type f -mtime -7|grep -v dovecot` On 30.08.14 22:32, RW wrote: mtime may not be the best choice. Ideally

Re: sa-learn and find

2014-09-01 Thread LuKreme
On 31 Aug 2014, at 18:16 , Ian Zimmerman i...@buug.org wrote: find /home/${i}/Maildir/.notspam -type f -mtime -7 | xargs -r sa-learn --ham -u ${i} Right. Doh. I got so held up in running find under sa-learn... Well, that does make thins a lot easier, doesn't it. Thanks for your patience.

Re: sa-learn and find

2014-08-31 Thread Ian Zimmerman
On Sat, 30 Aug 2014 19:59:53 -0600, LuKreme krem...@kreme.com wrote: RW This may run into shell argument limits if you have to learn a lot RW of spam. Consider piping the output of find to xargs, or using -exec RW ...{} + in find. LuKreme Yes, I tried to do that, but as I said in my first post,

Re: sa-learn and find

2014-08-31 Thread LuKreme
On 31 Aug 2014, at 14:46 , Ian Zimmerman i...@buug.org wrote: On Sat, 30 Aug 2014 19:59:53 -0600, LuKreme krem...@kreme.com wrote: RW This may run into shell argument limits if you have to learn a lot RW of spam. Consider piping the output of find to xargs, or using -exec RW ...{} + in

Re: sa-learn and find

2014-08-31 Thread Ian Zimmerman
On Sun, 31 Aug 2014 17:37:50 -0600, LuKreme krem...@kreme.com wrote: Ian xargs (the GNU one at least) has an option to not run the inferior Ian when there are no args to give it. LuKreme The interior is the find: _Inferior_ which is GNU speak for subprocess. I should have tried to be less

Re: sa-learn and find

2014-08-30 Thread LuKreme
On 30 Aug 2014, at 07:49 , LuKreme krem...@kreme.com wrote: MYFIND= `find $H_PATH/cur -type f -mtime -7` if [ -n $MYFIND ]; then /usr/local/bin/sa-learn --ham -u ${i} $MYFIND fi Doh! if [ -n “$MYFIND” ]; then or if test -n “$MYFIND”; then Sigh. Feeling extra stupid this Saturday

Re: sa-learn and find

2014-08-30 Thread RW
On Sat, 30 Aug 2014 08:23:02 -0600 LuKreme wrote: if test -d $J_PATH; then MYFIND=`find $J_PATH/ -type f -mtime -7|grep -v dovecot` mtime may not be the best choice. Ideally what you want is the the time since the spam was moved to Junk, rather than the time since it was delivered. What

Re: sa-learn and find

2014-08-30 Thread LuKreme
On 30 Aug 2014, at 15:32 , RW rwmailli...@googlemail.com wrote: On Sat, 30 Aug 2014 08:23:02 -0600 LuKreme wrote: if test -d $J_PATH; then MYFIND=`find $J_PATH/ -type f -mtime -7|grep -v dovecot` mtime may not be the best choice. Ideally what you want is the the time since the

Re: sa-learn site-wide bayes on Redis

2014-08-21 Thread Marcin Mirosław
W dniu 20.08.2014 o 14:42, Axb pisze: On 08/20/2014 02:25 PM, Matteo Dessalvi wrote: Hi all. I am managing a bunch of Linux MTAs which are placed in front of some Exchange servers. In such a configuration the Bayes filter is deployed site-wide. For a new deployment of these servers I am

Re: sa-learn site-wide bayes on Redis

2014-08-21 Thread Matteo Dessalvi
I am pretty sure SA support the Redis authentication mechanism. For my tests I have used the following line: bayes_sql_dsn server=127.0.0.1:6379;password=MySecretPWD;database=2 Matteo On 21.08.2014 12:56, Marcin Mirosław wrote: Hi! I'm reading bayes_redis.cf and I can see: #NOTE: We're not

Re: sa-learn site-wide bayes on Redis

2014-08-21 Thread Marcin Mirosław
W dniu 21.08.2014 o 13:45, Matteo Dessalvi pisze: I am pretty sure SA support the Redis authentication mechanism. For my tests I have used the following line: bayes_sql_dsn server=127.0.0.1:6379;password=MySecretPWD;database=2 Thanks Matteo, firstly I should try then write to ML:) So now I

Re: sa-learn site-wide bayes on Redis

2014-08-21 Thread Matteo Dessalvi
Which version of Redis are you using? I did have some problems with the 2.4 version packaged by Debian and I did solve a similar problem using a more recent version, like the 2.7 or 2.8. Matteo On 21.08.2014 14:45, Marcin Mirosław wrote: W dniu 21.08.2014 o 13:45, Matteo Dessalvi pisze: I am

Re: sa-learn site-wide bayes on Redis

2014-08-20 Thread Axb
On 08/20/2014 02:25 PM, Matteo Dessalvi wrote: Hi all. I am managing a bunch of Linux MTAs which are placed in front of some Exchange servers. In such a configuration the Bayes filter is deployed site-wide. For a new deployment of these servers I am planning to use Redis as a centralized

Re: sa-learn site-wide bayes on Redis

2014-08-20 Thread Matteo Dessalvi
No, unfortunately it does not help me. I already have a proper config file for SA to access Redis as backend and most of the configurations are done automatically through a Chef cookbook (Redis included). In the docs you pointed me there's nothing about the interaction between sa-learn and

Re: sa-learn site-wide bayes on Redis

2014-08-20 Thread Axb
bayes_store_module Mail::SpamAssassin::BayesStore::Redis tells SA to use the Redis backend. To sa-learn this becomes transparent, as with any other backed (DBD,SDBM,SQL) bayes_redis.cf shows what parameters are mandatory/optional On 08/20/2014 03:02 PM, Matteo Dessalvi wrote: No,

Re: sa-learn site-wide bayes on Redis

2014-08-20 Thread Matteo Dessalvi
Ok, perfect! Thanks a lot! This is what I want to know and I was not so sure about. I may be wrong but it looks to me the fact that tools like sa-learn can access transparently the backends configured for SA is not exactly clear from the docs. It would be great if the wiki maintainers could add

Re: sa-learn site-wide bayes on Redis

2014-08-20 Thread Axb
I so love to posters. On 08/20/2014 03:33 PM, Matteo Dessalvi wrote: Ok, perfect! Thanks a lot! This is what I want to know and I was not so sure about. I may be wrong but it looks to me the fact that tools like sa-learn can access transparently the backends configured for SA is not

Re: SA-Learn - OT (slightly) Bash Script help needed

2014-05-29 Thread Axb
On 05/29/2014 12:22 PM, Arthur Dent wrote: So... Will this work for sa-learn? 8 # Proposed sa-learn maildir script #!/bin/bash sa-learn --ham ~/Maildir/.Hobby/{cur,new} sa-learn --ham

Re: SA-Learn - OT (slightly) Bash Script help needed

2014-05-29 Thread Giles Coochey
On 29/05/2014 11:43, Axb wrote: On 05/29/2014 12:22 PM, Arthur Dent wrote: So... Will this work for sa-learn? 8 # Proposed sa-learn maildir script #!/bin/bash sa-learn --ham ~/Maildir/.Hobby/{cur,new}

Re: SA-Learn - OT (slightly) Bash Script help needed

2014-05-29 Thread Arthur Dent
On Thu, 2014-05-29 at 12:04 +0100, Giles Coochey wrote: On 29/05/2014 11:43, Axb wrote: On 05/29/2014 12:22 PM, Arthur Dent wrote: So... Will this work for sa-learn? 8 # Proposed sa-learn

Re: sa-learn from a cronjob?

2014-05-01 Thread RW
On Wed, 30 Apr 2014 13:52:52 -0600 Bob Proulx wrote: The maildir exists and a cron script can be used to scan and process mail incoming there. People do it. It works. Saying it does not work or is not sensible is just wrong mean talk. People do this all of the time. So do I. I haven't

Re: sa-learn from a cronjob?

2014-04-30 Thread Bob Proulx
RW wrote: Bob Proulx wrote: The script is looping through mail files in a maildir and processing them remotely on the server through sa-learn. After processing the messages it is moving the messages to mark them as having been read. No, the Maildir spec defines the S flag in the info

Re: sa-learn from a cronjob?

2014-04-27 Thread RW
On Thu, 24 Apr 2014 14:37:52 -0600 Bob Proulx wrote: RW wrote: Ian Zimmerman wrote: RW wrote: RW I don't think it will work for the purpose mentioned, and if RW it's working properly for you, there's a lot you're not RW mentioning. I looked at the script and it looks like an

Re: sa-learn from a cronjob?

2014-04-24 Thread RW
On Wed, 23 Apr 2014 19:15:13 -0700 Ian Zimmerman wrote: On Sun, 20 Apr 2014 12:14:37 -0700 (PDT) Dan Mahoney, System Admin d...@prime.gushi.org wrote: Most of my users aren't command-line friendly. I'd like to basically have my IMAP server default to handing out two imap mailboxes that

  1   2   3   4   5   6   7   8   9   >