Re: Trying to do antispam with Sieve

2018-11-13 Thread Adi Pircalabu
For the archives: after reading https://www.dovecot.org/list/dovecot/2017-February/107039.html I found & fixed the issue, it appears I *must* use the inbox prefix, hence the configuration should be: plugin { sieve_plugins = sieve_imapsieve sieve_extprograms imapsieve_mailbox1_name = INBOX.

Re: Trying to do antispam with Sieve

2018-11-13 Thread Adi Pircalabu
On 2018-11-14 14:25, Adi Pircalabu wrote: On 2018-11-14 13:51, Adi Pircalabu wrote: On 2018-11-14 13:11, Adi Pircalabu wrote: Hi, Using https://wiki.dovecot.org/HowTo/AntispamWithSieve I'm trying to execute scripts when moving to/from Spam folder, however nothing's happening. The actions are:

Re: Trying to do antispam with Sieve

2018-11-13 Thread Adi Pircalabu
On 2018-11-14 13:51, Adi Pircalabu wrote: On 2018-11-14 13:11, Adi Pircalabu wrote: Hi, Using https://wiki.dovecot.org/HowTo/AntispamWithSieve I'm trying to execute scripts when moving to/from Spam folder, however nothing's happening. The actions are: 1. Move to Spam: redirect :copy "spamcop_sp

Re: Trying to do antispam with Sieve

2018-11-13 Thread Adi Pircalabu
On 2018-11-14 13:11, Adi Pircalabu wrote: Hi, Using https://wiki.dovecot.org/HowTo/AntispamWithSieve I'm trying to execute scripts when moving to/from Spam folder, however nothing's happening. The actions are: 1. Move to Spam: redirect :copy "spamcop_spam@domain.local"; 2. Move from Spam: redire

Trying to do antispam with Sieve

2018-11-13 Thread Adi Pircalabu
Hi, Using https://wiki.dovecot.org/HowTo/AntispamWithSieve I'm trying to execute scripts when moving to/from Spam folder, however nothing's happening. The actions are: 1. Move to Spam: redirect :copy "spamcop_spam@domain.local"; 2. Move from Spam: redirect :copy "spamcop_ham@domain.local"; He

Sync in the 'new' folder on the standby server

2018-11-13 Thread lty
DOVEADM SYNC -U usern...@example.com TCP:10.10.1.125: Online server mail is in the cur directory, but the backup server mail is in the new directory

Re: dovecot lmtp thinks that "disk quota exceeded" is "internal error"

2018-11-13 Thread Arkadiusz Miśkiewicz
On 13/11/2018 21:07, Aki Tuomi wrote: > >> On 13 November 2018 at 22:06 Arkadiusz Miśkiewicz wrote: >> >> >> On 13/11/2018 15:54, Arkadiusz Miśkiewicz wrote: >>> >>> 2.2.36 (not migrated to 2.3 yet) reports such problem: >>> Nov 13 15:50:58 mbox dovecot: lmtp(xxx): session=, Error: ope

Re: dovecot lmtp thinks that "disk quota exceeded" is "internal error"

2018-11-13 Thread Arkadiusz Miśkiewicz
On 13/11/2018 21:07, Sami Ketola wrote: > > >> On 13 Nov 2018, at 21.06, Arkadiusz Miśkiewicz wrote: >> >> On 13/11/2018 15:54, Arkadiusz Miśkiewicz wrote: >>> >>> 2.2.36 (not migrated to 2.3 yet) reports such problem: >>> Nov 13 15:50:58 mbox dovecot: lmtp(xxx): session=, Error: open

Re: execute sieve command - fails to notice script has exited

2018-11-13 Thread Aki Tuomi
> On 13 November 2018 at 20:38 Lionel Elie Mamane wrote: > > > On Tue, Nov 13, 2018 at 07:10:47PM +0200, Aki Tuomi wrote: > > Did you look at the server logs as suggested by the logfile? > > Yes. The server log is in my first email, where I called it "dovecot > debug log". Sorry the informati

Re: dovecot lmtp thinks that "disk quota exceeded" is "internal error"

2018-11-13 Thread Sami Ketola
> On 13 Nov 2018, at 21.06, Arkadiusz Miśkiewicz wrote: > > On 13/11/2018 15:54, Arkadiusz Miśkiewicz wrote: >> >> 2.2.36 (not migrated to 2.3 yet) reports such problem: >> >>> Nov 13 15:50:58 mbox dovecot: lmtp(xxx): session=, >>> Error: open(/var/mail/xxx/mailboxes.lock1bf6ad16b7b8b703) f

Re: dovecot lmtp thinks that "disk quota exceeded" is "internal error"

2018-11-13 Thread Aki Tuomi
> On 13 November 2018 at 22:06 Arkadiusz Miśkiewicz wrote: > > > On 13/11/2018 15:54, Arkadiusz Miśkiewicz wrote: > > > > 2.2.36 (not migrated to 2.3 yet) reports such problem: > > > >> Nov 13 15:50:58 mbox dovecot: lmtp(xxx): session=, > >> Error: open(/var/mail/xxx/mailboxes.lock1bf6ad16b

Re: dovecot lmtp thinks that "disk quota exceeded" is "internal error"

2018-11-13 Thread Arkadiusz Miśkiewicz
On 13/11/2018 15:54, Arkadiusz Miśkiewicz wrote: > > 2.2.36 (not migrated to 2.3 yet) reports such problem: > >> Nov 13 15:50:58 mbox dovecot: lmtp(xxx): session=, >> Error: open(/var/mail/xxx/mailboxes.lock1bf6ad16b7b8b703) failed: Disk quota >> exceeded >> Nov 13 15:50:58 mbox dovecot: lmtp(x

Re: dovecot 2.2/openssl 1.0 vs dovecot 2.3/openssl 1.1.1 ssl regression

2018-11-13 Thread Aki Tuomi
On 13 November 2018 at 20:53 Arkadiusz Miśkiewicz < ar...@maven.pl> wrote: Hi. I'm considering dovecot migration from 2.2.36 run with openssl 1.0.2o to dovecot 2.3.3 run with openssl 1.1.1.

dovecot 2.2/openssl 1.0 vs dovecot 2.3/openssl 1.1.1 ssl regression

2018-11-13 Thread Arkadiusz Miśkiewicz
Hi. I'm considering dovecot migration from 2.2.36 run with openssl 1.0.2o to dovecot 2.3.3 run with openssl 1.1.1. Currently I have both variants running with identical configs and certs (the only differences are due to config syntax changes in dovecot 2.3), so for example on both I have: ssl_ca

Re: execute sieve command - fails to notice script has exited

2018-11-13 Thread Lionel Elie Mamane
On Tue, Nov 13, 2018 at 07:10:47PM +0200, Aki Tuomi wrote: > Did you look at the server logs as suggested by the logfile? Yes. The server log is in my first email, where I called it "dovecot debug log". Sorry the information is over several emails. -- Lionel

Re: execute sieve command - fails to notice script has exited

2018-11-13 Thread Lionel Elie Mamane
I found a work-around. I added an :output option to the execute command, and then it works like a charm. I've run the whole dovecot-lda under strace (without the :output option, when it shows the problem): 6410 stat("/usr/local/lib/dovecot/sieve-execute/foofilter", {st_mode=S_IFREG|0755, st_siz

Re: execute sieve command - fails to notice script has exited

2018-11-13 Thread Aki Tuomi
Did you look at the server logs as suggested by the logfile? Aki > On 13 November 2018 at 18:52 Lionel Elie Mamane wrote: > > > And the Sieve script: > > --- start sieve script - > require ["vnd.dovecot.execute", "fileinto", "mailbox", "vnd.dovecot.debug"]; > > debug_log "about t

Re: execute sieve command - fails to notice script has exited

2018-11-13 Thread Lionel Elie Mamane
And the Sieve script: --- start sieve script - require ["vnd.dovecot.execute", "fileinto", "mailbox", "vnd.dovecot.debug"]; debug_log "about to execute"; if not execute :pipe "foofilter" { debug_log "if condition fulfilled"; fileinto :create "test-spam"; debug_log "about to stop

Re: Proxy + 2x static passdb not working as expected

2018-11-13 Thread Sami Ketola
> On 13 Nov 2018, at 12.19, Michael Goth wrote: > > Hi all, > > I'm trying to setup a Dovecot proxy that authenticates the user against two > backend servers. If login server1 fails, server2 should be tried. > > The problem: Only the first server seems to be tried, even if the login fails.

execute sieve command - fails to notice script has exited

2018-11-13 Thread Lionel Elie Mamane
Hi, Running dovecot 2.2.27 (c0f36b0) on Debian GNU/Linux stable (version 9.6), I'm trying to use the execute command in a sieve script, with direct execution (not service socket). The script is executed, and returns (the process exits), but the dovecot-lda process seems to not notice, and thinks

dsync / doveadm sync problem

2018-11-13 Thread ad...@awib.it
Hi, I had an old dovecot server with a working backup script. Basic concept was: - to dsync to a temp folder - using tar to preserve datetime - piping this 7z to benefit from my 16 core cpu - piping this through openssl to encrypt Over time the size of all my mail grew from 3GB to ab

dovecot lmtp thinks that "disk quota exceeded" is "internal error"

2018-11-13 Thread Arkadiusz Miśkiewicz
2.2.36 (not migrated to 2.3 yet) reports such problem: > Nov 13 15:50:58 mbox dovecot: lmtp(xxx): session=, > Error: open(/var/mail/xxx/mailboxes.lock1bf6ad16b7b8b703) failed: Disk quota > exceeded > Nov 13 15:50:58 mbox dovecot: lmtp(xxx): session=, > Error: Couldn't create mailbox list lock

compressed folders

2018-11-13 Thread Arkadiusz Miśkiewicz
Hello. Is this still true? https://www.dovecot.org/list/dovecot/2013-March/089084.html Ability to have specific folders compressed only. -- Arkadiusz Miśkiewicz, arekm / ( maven.pl | pld-linux.org )

Proxy + 2x static passdb not working as expected

2018-11-13 Thread Michael Goth
Hi all, I'm trying to setup a Dovecot proxy that authenticates the user against two backend servers. If login server1 fails, server2 should be tried. The problem: Only the first server seems to be tried, even if the login fails. Config snippet: protocol imap { passdb { driver =