Re: Replacing antispam plugin with IMAPSieve not 100% correct?

2022-10-04 Thread hi

On 2022-09-25 14:35, Christian Kivalo wrote:
On September 25, 2022 1:27:23 PM GMT+02:00, Marc 
 wrote:


I think this page[1] is not correct

If you configure this option:

imapsieve_mailbox1_before = 
file:/usr/lib/dovecot/sieve/report-spam.sieve


the file report-spam.svbin cannot be created because users cannot 
write there.
You have to pre-compile all sieve before/global/after scripts with 
sievec
See the end of this section 
https://doc.dovecot.org/configuration_manual/sieve/configuration/#executing-multiple-scripts-sequentially



[1]
https://doc.dovecot.org/configuration_manual/howto/antispam_with_sieve/#howto-antispam-with-imapsieve




I was wondering how you will be able to use sieve in filtering spam?


Re: Replacing antispam plugin with IMAPSieve not 100% correct?

2022-09-25 Thread Christian Kivalo



On September 25, 2022 1:27:23 PM GMT+02:00, Marc  wrote:
>
>I think this page[1] is not correct 
>
>If you configure this option:
>
>imapsieve_mailbox1_before = file:/usr/lib/dovecot/sieve/report-spam.sieve
>
>the file report-spam.svbin cannot be created because users cannot write there.
You have to pre-compile all sieve before/global/after scripts with sievec
See the end of this section 
https://doc.dovecot.org/configuration_manual/sieve/configuration/#executing-multiple-scripts-sequentially
>
>
>[1]
>https://doc.dovecot.org/configuration_manual/howto/antispam_with_sieve/#howto-antispam-with-imapsieve
>
>

-- 
Christian Kivalo


Replacing antispam plugin with IMAPSieve not 100% correct?

2022-09-25 Thread Marc

I think this page[1] is not correct 

If you configure this option:

imapsieve_mailbox1_before = file:/usr/lib/dovecot/sieve/report-spam.sieve

the file report-spam.svbin cannot be created because users cannot write there.




[1]
https://doc.dovecot.org/configuration_manual/howto/antispam_with_sieve/#howto-antispam-with-imapsieve




Re: antispam plugin with IMAPSieve

2017-10-31 Thread Stephan Bosch

Op 31-10-2017 om 15:33 schreef j.emerlik:

Hi,
my dovecot is configured with IMAP Sieve antispam plugin (sa-learn),
everything seems to be working correctly but in debug mode in my log file I
noticed "dovecot: imap: Error".

Last 14 lines od my log file:
Oct 31 15:05:25 mnode1 dovecot: imap: Error: Oct 31 15:05:25.040 [10743]
dbg: bayes: tokenized header: 90 tokens
Oct 31 15:05:25 mnode1 dovecot: imap: Error: Oct 31 15:05:25.067 [10743]
dbg: bayes: seen (8e031cc9fec44b6607dc7f6b37903fc49e9c8526@sa_generated) put
Oct 31 15:05:25 mnode1 dovecot: imap: Error: Oct 31 15:05:25.067 [10743]
dbg: bayes: learned '8e031cc9fec44b6607dc7f6b37903fc49e9c8526@sa_generated',
atime: 1509457623
Oct 31 15:05:25 mnode1 dovecot: imap: Error: Oct 31 15:05:25.068 [10743]
dbg: plugin: Mail::SpamAssassin::Plugin::Bayes=HASH(0x2adc340) implements
'learner_close', priority 0
Oct 31 15:05:25 mnode1 dovecot: imap: Error: Oct 31 15:05:25.033 [10743]
dbg: bayes: using userid: 7
Oct 31 15:05:25 mnode1 dovecot: imap: Error: Oct 31 15:05:25.037 [10743]
dbg: bayes: tokenized body: 174 tokens
Oct 31 15:05:25 mnode1 dovecot: imap: Error: Oct 31 15:05:25.037 [10743]
dbg: bayes: tokenized uri: 0 tokens
Oct 31 15:05:25 mnode1 dovecot: imap: Error: Oct 31 15:05:25.037 [10743]
dbg: bayes: tokenized invisible: 0 tokens
Oct 31 15:05:25 mnode1 dovecot: imap: Error: Oct 31 15:05:25.040 [10743]
dbg: bayes: tokenized header: 90 tokens
Oct 31 15:05:25 mnode1 dovecot: imap: Error: Oct 31 15:05:25.067 [10743]
dbg: bayes: seen (8e031cc9fec44b6607dc7f6b37903fc49e9c8526@sa_generated) put
Oct 31 15:05:25 mnode1 dovecot: imap: Error: Oct 31 15:05:25.067 [10743]
dbg: bayes: learned '8e031cc9fec44b6607dc7f6b37903fc49e9c8526@sa_generated',
atime: 1509457623

Logs looks good and I don't understand "Error:" from log, It looks like
sa-learn is connected to database and learned bayes.

Error in log it's normal or It's means that it not work ?


Looks like something is sent to stderr from the shell script. Afaik, 
that ends up in error log.


Regards,

Stephan.


antispam plugin with IMAPSieve

2017-10-31 Thread j.emerlik
Hi,
my dovecot is configured with IMAP Sieve antispam plugin (sa-learn),
everything seems to be working correctly but in debug mode in my log file I
noticed "dovecot: imap: Error".

Last 14 lines od my log file:
Oct 31 15:05:25 mnode1 dovecot: imap: Error: Oct 31 15:05:25.040 [10743]
dbg: bayes: tokenized header: 90 tokens
Oct 31 15:05:25 mnode1 dovecot: imap: Error: Oct 31 15:05:25.067 [10743]
dbg: bayes: seen (8e031cc9fec44b6607dc7f6b37903fc49e9c8526@sa_generated) put
Oct 31 15:05:25 mnode1 dovecot: imap: Error: Oct 31 15:05:25.067 [10743]
dbg: bayes: learned '8e031cc9fec44b6607dc7f6b37903fc49e9c8526@sa_generated',
atime: 1509457623
Oct 31 15:05:25 mnode1 dovecot: imap: Error: Oct 31 15:05:25.068 [10743]
dbg: plugin: Mail::SpamAssassin::Plugin::Bayes=HASH(0x2adc340) implements
'learner_close', priority 0
Oct 31 15:05:25 mnode1 dovecot: imap: Error: Oct 31 15:05:25.033 [10743]
dbg: bayes: using userid: 7
Oct 31 15:05:25 mnode1 dovecot: imap: Error: Oct 31 15:05:25.037 [10743]
dbg: bayes: tokenized body: 174 tokens
Oct 31 15:05:25 mnode1 dovecot: imap: Error: Oct 31 15:05:25.037 [10743]
dbg: bayes: tokenized uri: 0 tokens
Oct 31 15:05:25 mnode1 dovecot: imap: Error: Oct 31 15:05:25.037 [10743]
dbg: bayes: tokenized invisible: 0 tokens
Oct 31 15:05:25 mnode1 dovecot: imap: Error: Oct 31 15:05:25.040 [10743]
dbg: bayes: tokenized header: 90 tokens
Oct 31 15:05:25 mnode1 dovecot: imap: Error: Oct 31 15:05:25.067 [10743]
dbg: bayes: seen (8e031cc9fec44b6607dc7f6b37903fc49e9c8526@sa_generated) put
Oct 31 15:05:25 mnode1 dovecot: imap: Error: Oct 31 15:05:25.067 [10743]
dbg: bayes: learned '8e031cc9fec44b6607dc7f6b37903fc49e9c8526@sa_generated',
atime: 1509457623

Logs looks good and I don't understand "Error:" from log, It looks like
sa-learn is connected to database and learned bayes.

Error in log it's normal or It's means that it not work ?

Regards,
Jack