Re: sa-learn using event notifications

2018-03-12 Thread Arnaldo Viegas de Lima
That will depend on the retraining process complexity as well as the size of 
the messages. 
My guess is that without some real world testing it will be difficult to have a 
definitive answer. 

Arnaldo.

> On Mar 12, 2018, at 2:49 PM, Luca Olivetti  wrote:
> 
> El 12/03/18 a les 18:43, Arnaldo Viegas de Lima ha escrit:
> 
>> I see a 2 ways to handle it:
>> - Enqueue for later processing
>> - Make notifyd pass the job to another process (like a daemon)
> Yes, I thought about those two options (well, only the first one actually, 
> since notifyd can only spawn an external program) and I asked about it in my 
> original message.
> The question is, is it really necessary (with ~100 sessions and not everybody 
> constantly moving messages in/out of the spam folder)?
> 
> Bye
> -- 
> Luca Olivetti
> Wetron Automation Technology http://www.wetron.es/
> Tel. +34 93 5883004 (Ext.3010)  Fax +34 93 5883007
> 


Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
To Unsubscribe:
https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus


Re: sa-learn using event notifications

2018-03-12 Thread Luca Olivetti

El 12/03/18 a les 18:43, Arnaldo Viegas de Lima ha escrit:


I see a 2 ways to handle it:

- Enqueue for later processing
- Make notifyd pass the job to another process (like a daemon)
Yes, I thought about those two options (well, only the first one 
actually, since notifyd can only spawn an external program) and I asked 
about it in my original message.
The question is, is it really necessary (with ~100 sessions and not 
everybody constantly moving messages in/out of the spam folder)?


Bye
--
Luca Olivetti
Wetron Automation Technology http://www.wetron.es/
Tel. +34 93 5883004 (Ext.3010)  Fax +34 93 5883007

Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
To Unsubscribe:
https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus


Re: sa-learn using event notifications

2018-03-12 Thread Arnaldo Viegas de Lima
Ah… we use different meaning for the “SPAM” folder! For me it’s where I place 
mail that was wrongly classified as HAM. Mail classified as SPAM go to the 
“quarantine” folder (that get’s purged by Cyrus after X days).

You are talking about moving files out of “quarantine” and using a notification 
to trigger the retraining. That’s indeed a nice idea! 

I see a 2 ways to handle it:

- Enqueue for later processing
- Make notifyd pass the job to another process (like a daemon)

The problem with any of this methods (really with any solution based on 
notifications that is not completely handled in the notification processing) is 
that the use may further move the message.

One option is to make a copy of the message to another (reserved) folder. I may 
be wrong, but my guess is that Cyrus will just link the messages, so it can be 
quick. If not I guess it can be linked during the notification processing. Need 
to check.

Arnaldo.


 
> On Mar 12, 2018, at 2:20 PM, Luca Olivetti  wrote:
> 
> El 12/03/18 a les 18:07, Arnaldo Viegas de Lima ha escrit:
>> I run a separate daemon that periodically checks the spam folder, perform 
>> the necessary “training” actions and then remove the message.
> 
> That's what I've been doing for many years (using a couple of shared folder 
> where users have to move messages that have been wrongly classified)  but I 
> wanted to make it simpler, like the dovecot antispam plugin, where it is 
> enough to move a message in/out of the personal spam folder to trigger a 
> retrain.
> 
> Bye
> -- 
> Luca Olivetti
> Wetron Automation Technology http://www.wetron.es/
> Tel. +34 93 5883004 (Ext.3010)  Fax +34 93 5883007
> 


Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
To Unsubscribe:
https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus

Re: sa-learn using event notifications

2018-03-12 Thread Luca Olivetti

El 12/03/18 a les 18:07, Arnaldo Viegas de Lima ha escrit:

I run a separate daemon that periodically checks the spam folder, perform the 
necessary “training” actions and then remove the message.


That's what I've been doing for many years (using a couple of shared 
folder where users have to move messages that have been wrongly 
classified)  but I wanted to make it simpler, like the dovecot antispam 
plugin, where it is enough to move a message in/out of the personal spam 
folder to trigger a retrain.


Bye
--
Luca Olivetti
Wetron Automation Technology http://www.wetron.es/
Tel. +34 93 5883004 (Ext.3010)  Fax +34 93 5883007

Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
To Unsubscribe:
https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus

Re: sa-learn using event notifications

2018-03-12 Thread Arnaldo Viegas de Lima
I run a separate daemon that periodically checks the spam folder, perform the 
necessary “training” actions and then remove the message.

> On Mar 12, 2018, at 1:44 PM, Luca Olivetti  wrote:
> 
> I wrote a simple program that manages the vnd.cmu.MessageMove event to run 
> sa-learn when a message is moved into or out of the spam folder.
> I'm processing it synchronously (i.e., the program starts spawned by notifyd 
> and doesn't terminate until sa-learn exits).
> Given that sa-learn takes a few seconds to run, could it lead to problems? 
> Should I devise a different strategy (i.e. queue sa-learn to run 
> later/asynchronously)?
> I don't have many users (around 100 active sessions).
> 
> Bye
> -- 
> Luca Olivetti
> Wetron Automation Technology http://www.wetron.es/
> Tel. +34 93 5883004 (Ext.3010)  Fax +34 93 5883007
> 
> Cyrus Home Page: http://www.cyrusimap.org/
> List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
> To Unsubscribe:
> https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus
> 


Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
To Unsubscribe:
https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus

sa-learn using event notifications

2018-03-12 Thread Luca Olivetti
I wrote a simple program that manages the vnd.cmu.MessageMove event to 
run sa-learn when a message is moved into or out of the spam folder.
I'm processing it synchronously (i.e., the program starts spawned by 
notifyd and doesn't terminate until sa-learn exits).
Given that sa-learn takes a few seconds to run, could it lead to 
problems? Should I devise a different strategy (i.e. queue sa-learn to 
run later/asynchronously)?

I don't have many users (around 100 active sessions).

Bye
--
Luca Olivetti
Wetron Automation Technology http://www.wetron.es/
Tel. +34 93 5883004 (Ext.3010)  Fax +34 93 5883007

Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
To Unsubscribe:
https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus


Re: Cyrus 2.4.x support

2018-03-12 Thread Sebastian Hagedorn

Hi,

--On 12. März 2018 um 08:01:01 +0100 Josef Karliak  
wrote:



   I plan to create a new mail server based on cyrus imap. We use cyrus
imap 2.3 version now. Actual cyrus imap version is 2.4.18 and 3.0.5.


1. you mean "current", not "actual". The English "actual" has a meaning 
that is different from similar words in many other European languages.


2. 2.4.18 and 3.0.5 are not the current versions, at least not entirely. 
They may be the most current versions your distribution offers, but the 
real current versions are these:


• 2.4.20

• 2.5.11

• 3.0.5

See 


Which one version do you recommend? How long will be 2.4.xx supported ?


For a new installation you should in my opinion use the newest available, 
in this case 3.0.5

--
   .:.Sebastian Hagedorn - Weyertal 121 (Gebäude 133), Zimmer 2.02.:.
.:.Regionales Rechenzentrum (RRZK).:.
  .:.Universität zu Köln / Cologne University - ✆ +49-221-470-89578.:.

pgpOhgro2tVDK.pgp
Description: PGP signature

Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
To Unsubscribe:
https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus

Cyrus 2.4.x support

2018-03-12 Thread Josef Karliak

  Good morning,
  I plan to create a new mail server based on cyrus imap. We use cyrus 
imap 2.3 version now. Actual cyrus imap version is 2.4.18 and 3.0.5. 
Which one version do you recommend? How long will be 2.4.xx supported ?

  Thanks and best regards
  J.Karliak

--
Ma domena pouziva zabezpeceni a kontrolu SPF (www.openspf.org) a
DomainKeys/DKIM (s ADSP) a implementaci DMARC. Pokud mate problemy s
dorucenim emailu, zacnete pouzivat metody overeni puvody emailu
zminene vyse. Dekuji.
My domain use SPF (www.openspf.org) and DomainKeys/DKIM (with ADSP)
policy and implementation of the DMARC. If you've problem with sending
emails to me, start using email origin methods mentioned above. Thank
you.

Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
To Unsubscribe:
https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus