Correct permissions for global sieve scripts

2024-09-15 Thread Richard via dovecot

Hi there,

I've set up dovecot via global sieve scripts to send mails that a user manually 
moved to their junk directory to rspamd to learn them as spam (and learn 
messages as ham if they are moved out of it). I thought I had it all properly 
set up, but I'm now again seeing log messages like this:


Sep 15 13:01:00 dovecot[523226]: imap(username)<823661><4+8RXyYi2L9/AAAB>: 
Error: sieve: failed to execute to program `rspamd-learn-spam.sh': refer to server log for 
more information. [2024-09-15 13:01:00]
Sep 15 13:01:00 dovecot[523226]: imap(username)<823661><4+8RXyYi2L9/AAAB>: 
Error: sieve: Execution of script /etc/dovecot/sieve/global/learn-spam.sieve failed


The content of learn-spam.sieve is this:


require ["vnd.dovecot.pipe", "copy", "imapsieve"];
pipe :copy "rspamd-learn-spam.sh";


And the content of rspamd-learn-spam.sh is this:


#!/bin/sh
exec /usr/bin/rspamc learn_spam


All the necessary files are located in /etc/dovecot/sieve/global and are owned by 
dovecot:dovecot with rw, r, r permissions. Also, I have compiled the .sieve files with 
sievec, the resulting .svbin files have the same permissions and ownership. What am I 
doing wrong? I don't see any further "server log" that will tell me more 
information.


I'm using dovecot 2.3.19.1 (9b53102964) on Debian 12.7


Best

Richard

___
dovecot mailing list -- dovecot@dovecot.org
To unsubscribe send an email to dovecot-le...@dovecot.org


Re: Correct permissions for global sieve scripts

2024-09-15 Thread Tom Hendrikx via dovecot




On 15-09-2024 14:30, Richard via dovecot wrote:

Hi there,

I've set up dovecot via global sieve scripts to send mails that a user 
manually moved to their junk directory to rspamd to learn them as spam 
(and learn messages as ham if they are moved out of it). I thought I had 
it all properly set up, but I'm now again seeing log messages like this:



Sep 15 13:01:00 dovecot[523226]: 
imap(username)<823661><4+8RXyYi2L9/AAAB>: Error: sieve: failed to 
execute to program `rspamd-learn-spam.sh': refer to server log for more 
information. [2024-09-15 13:01:00]
Sep 15 13:01:00 dovecot[523226]: 
imap(username)<823661><4+8RXyYi2L9/AAAB>: Error: sieve: Execution of 
script /etc/dovecot/sieve/global/learn-spam.sieve failed



The content of learn-spam.sieve is this:


require ["vnd.dovecot.pipe", "copy", "imapsieve"];
pipe :copy "rspamd-learn-spam.sh";


And the content of rspamd-learn-spam.sh is this:


#!/bin/sh
exec /usr/bin/rspamc learn_spam




Does the rspamc program log any errors? Is actually executed?


___
dovecot mailing list -- dovecot@dovecot.org
To unsubscribe send an email to dovecot-le...@dovecot.org


Mail Backup from IMAP to POP3

2024-09-15 Thread Reprobus via dovecot
Hi, I'm in a situation whereas I need to backup my email from an IMAP 
server to a POP3 email client of my choosing. I'm hoping Dovecot can do 
such a task and is there a container to which I can run to set this up 
from ?


My IMAP email server is maxed and I need to dump all the emails off the 
IMAP to POP3 as to clear it up.


Thank You

___
dovecot mailing list -- dovecot@dovecot.org
To unsubscribe send an email to dovecot-le...@dovecot.org


Re: Mail Backup from IMAP to POP3

2024-09-15 Thread Ralph Seichter via dovecot
* Reprobus via dovecot:

> I'm in a situation whereas I need to backup my email from an IMAP
> server to a POP3 email client of my choosing.

Since ancient times (cough), people have been using Fetchmail [1] for
related tasks. The author may be considered a controversial figure, but
that does not take anything away from the software itself.

[1] https://www.fetchmail.info/

-Ralph
___
dovecot mailing list -- dovecot@dovecot.org
To unsubscribe send an email to dovecot-le...@dovecot.org


Re: Mail Backup from IMAP to POP3

2024-09-15 Thread basti via dovecot

Am 16.09.24 um 04:54 schrieb Reprobus via dovecot:
Hi, I'm in a situation whereas I need to backup my email from an IMAP 
server to a POP3 email client of my choosing. I'm hoping Dovecot can do 
such a task and is there a container to which I can run to set this up 
from ?


My IMAP email server is maxed and I need to dump all the emails off the 
IMAP to POP3 as to clear it up.


Thank You

___
dovecot mailing list -- dovecot@dovecot.org
To unsubscribe send an email to dovecot-le...@dovecot.org


I use mpop (https://marlam.de/mpop/) to get the one POP3 Account I have.

Best Reagrds,
___
dovecot mailing list -- dovecot@dovecot.org
To unsubscribe send an email to dovecot-le...@dovecot.org