Re: Mail Backup from IMAP to POP3

2024-09-16 Thread Ralph Seichter via dovecot
* Vladislav Kurz via dovecot: > How about just moving the emails to the local folders of your > favourite mail client? Certainly a pragmatic approach. However, one might paint oneself into a corner, if the mail client in question uses a proprietory storage format. Personally, I like the classic

Re: Correct permissions for global sieve scripts

2024-09-16 Thread Richard via dovecot
On 16.09.24 13:07, Sirius wrote: On mån, 2024/09/16 at 11:41:24 +0200, Richard via dovecot wrote: On 16.09.24 09:50, Sirius wrote: On sön, 2024/09/15 at 14:30:19 +0200, Richard via dovecot wrote: [snip] I do the same as you. Not exactly. I'm on rspamd 3.9.1-1~82f43560f~bookworm. From rspamd

Re: Correct permissions for global sieve scripts

2024-09-16 Thread Richard via dovecot
So, there was actually one piece missing to fully solve this puzzle. For whatever reason, the guide I used back when I set up the scripts put "exec" in front of the actual command. Not sure what it does, but it's garbage in this scenario. As far as I read it somehow replaces bash with whatever

Re: Correct permissions for global sieve scripts

2024-09-16 Thread Richard via dovecot
This actually helped. So I'm not entirely sure when my method stopped working, but for all I can tell it used to work. Now this has changed. I've changed rspamd-learn-spam.sh to this: #!/bin/sh exec /usr/bin/rspamc -h localhost:11333 -P learn_spam Manually testing this now works better, so

Re: Correct permissions for global sieve scripts

2024-09-16 Thread Sirius via dovecot
On mån, 2024/09/16 at 11:41:24 +0200, Richard via dovecot wrote: > > On 16.09.24 09:50, Sirius wrote: > > On sön, 2024/09/15 at 14:30:19 +0200, Richard via dovecot wrote: [snip] > > I do the same as you. > > Not exactly. I'm on rspamd 3.9.1-1~82f43560f~bookworm. From rspamd's repo. Ah, that may

Re: Correct permissions for global sieve scripts

2024-09-16 Thread Richard via dovecot
On 16.09.24 09:50, Sirius wrote: On sön, 2024/09/15 at 14:30:19 +0200, Richard via dovecot wrote: 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)

Re: Correct permissions for global sieve scripts

2024-09-16 Thread Aki Tuomi via dovecot
Also to double-check, can you compare your setup against https://doc.dovecot.org/2.3/configuration_manual/howto/antispam_with_sieve/#for-rspamd ? Aki > On 16/09/2024 12:18 EEST Richard via dovecot wrote: > > > I did forget to mention both shell scripts have rwx, rwx, - permissions. > manua

Re: Correct permissions for global sieve scripts

2024-09-16 Thread Richard via dovecot
I did forget to mention both shell scripts have rwx, rwx, - permissions. manually executing rspamc does result in a "IO read error: unexpected EOF". So yet another issue to add to the list I guess... Richard On 16.09.24 09:07, Aki Tuomi wrote: Did you remember to set +x on the rspamd-learn-s

Re: Correct permissions for global sieve scripts

2024-09-16 Thread Richard via dovecot
Good question. There isn't any entry in journal, the only additional message I get is from dovecot Sep 15 13:01:00 dovecot[523226]: imap(rrosner)<823661><4+8RXyYi2L9/AAAB>: program exec:/etc/dovecot/sieve/global/rspamd-learn-spam.sh (823662): Terminated with non-zero exit code 1 right befor

Re: Mail Backup from IMAP to POP3

2024-09-16 Thread Vladislav Kurz via dovecot
Dne 16. 09. 24 v 4:54 Reprobus via dovecot napsal(a): 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 serve

Re: Correct permissions for global sieve scripts

2024-09-16 Thread Sirius via dovecot
On sön, 2024/09/15 at 14:30:19 +0200, Richard via dovecot wrote: > 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 prop

Re: Correct permissions for global sieve scripts

2024-09-16 Thread Aki Tuomi via dovecot
> On 15/09/2024 15:30 EEST 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 h

Re: Allowing parallel read-only requests via doveadm http api

2024-09-16 Thread Aki Tuomi via dovecot
> On 09/09/2024 18:47 EEST Kevin Kelker via dovecot wrote: > > > Hi, > > > is there any chance to open the doveadm http api to handle more than one > client at a time if the requests are read-only commands that have > no risk of breaking something when they run simultaneously? > We have a