Re: Sieve_default
On Jun 15, 2018, at 14:52, Reio Remma wrote: > > Did you try running /usr/lib/dovecot/sieve/sa-learn-spam.sh outside of the > sieve script? Yes. And that works not also works if I take out the global defaults declaration I added. What does not work at all is the drfefault.sieve action. AFAICT it doesn’t even try to run. -- This is my signature. There are many like it, but this one is mine.
Re: Sieve_default
On 15.06.2018 19:39, @lbutlr wrote: After turning one bug, I am getting slightly more information: Jun 15 10:34:44 mail dovecot: imap(kreme): Error: program `/usr/lib/dovecot/sieve/sa-learn-spam.sh' was forcibly terminated with signal 15 Did you try running /usr/lib/dovecot/sieve/sa-learn-spam.sh outside of the sieve script?
Re: Sieve_default
On 13 Jun 2018, at 16:14, @lbutlr wrote: > On 13 Jun 2018, at 12:51, Sami Ketola wrote: >> Are you sure your sieve even gets executed? Anything in the logs? can you >> enable mail_debug=yes and try again? >> Can you post your doveconf -n? > > I am not sure. I’ve made a couple of changes (put the default script and > compiled script into their own folder and defined sieve_global), but still no > joy. In fact, things are worse now as the report scripts have stopped working: > > imap(kremels): Error: sieve: Execution of script > /usr/lib/dovecot/sieve/report-spam.sieve failed After turning one bug, I am getting slightly more information: Jun 15 10:33:57 mail dovecot: imap(kreme): Error: program `/usr/lib/dovecot/sieve/sa-learn-ham.sh' was forcibly terminated with signal 15 Jun 15 10:33:57 mail dovecot: imap(kreme): Error: sieve: pipe action: failed to pipe message to program `sa-learn-ham.sh': refer to server log for more information. [2018-06-15 10:33:57] Jun 15 10:33:57 mail dovecot: imap(kreme): Error: sieve: Execution of script /usr/lib/dovecot/sieve/report-ham.sieve failed Jun 15 10:33:57 mail dovecot: imap(kreme): sieve: left message in mailbox 'INBOX' Jun 15 10:34:44 mail dovecot: imap(kreme): Error: program `/usr/lib/dovecot/sieve/sa-learn-spam.sh' was forcibly terminated with signal 15 Jun 15 10:34:44 mail dovecot: imap(kreme): Error: sieve: pipe action: failed to pipe message to program `sa-learn-spam.sh': refer to server log for more information. [2018-06-15 10:34:44] Jun 15 10:34:44 mail dovecot: imap(kreme): sieve: left message in mailbox ‘Junk' No mention of the default script at all
Re: failed: Stream is smaller than expected (0 < 5098)
Ah yes, sorry dovecot --version 2.2.10 provided by CentOS 7.5 On 15/06/18 11:55, Aki Tuomi wrote: On 15.06.2018 13:50, Vladimir Tiukhtin wrote: Hi Looks like I have got in a situation with missing or corrupted attachments. I am getting from time to time lmtp(17147, us...@example.com): Error: read(attachments-connector(zlib(/var/spool/mail/example.com/user2/mail/storage/m.203))) failed: read(/srv/attachments/user2/4a/e0/4ae062027dd745f56c2cc1c43fa4f349f52986a0-2bcf4e063994235bfb426f28d014[base64:19 b/l]) failed: Stream is smaller than expected (0 < 5098) Replication works, but is there a way to recover the logic even with empty files or cleaning indices? Thanks Vladimir What version of dovecot are you running? Aki
Re: failed: Stream is smaller than expected (0 < 5098)
On 15.06.2018 13:50, Vladimir Tiukhtin wrote: > Hi > > Looks like I have got in a situation with missing or corrupted > attachments. I am getting from time to time > > > lmtp(17147, us...@example.com): Error: > read(attachments-connector(zlib(/var/spool/mail/example.com/user2/mail/storage/m.203))) > failed: > read(/srv/attachments/user2/4a/e0/4ae062027dd745f56c2cc1c43fa4f349f52986a0-2bcf4e063994235bfb426f28d014[base64:19 > b/l]) failed: Stream is smaller than expected (0 < 5098) > > > Replication works, but is there a way to recover the logic even with > empty files or cleaning indices? Thanks > > Vladimir > > > What version of dovecot are you running? Aki
failed: Stream is smaller than expected (0 < 5098)
Hi Looks like I have got in a situation with missing or corrupted attachments. I am getting from time to time lmtp(17147, us...@example.com): Error: read(attachments-connector(zlib(/var/spool/mail/example.com/user2/mail/storage/m.203))) failed: read(/srv/attachments/user2/4a/e0/4ae062027dd745f56c2cc1c43fa4f349f52986a0-2bcf4e063994235bfb426f28d014[base64:19 b/l]) failed: Stream is smaller than expected (0 < 5098) Replication works, but is there a way to recover the logic even with empty files or cleaning indices? Thanks Vladimir