permissions of newly created mailboxes only with dovecot-lda and posix acls

2018-07-01 Thread Alexander 'Leo'; Bergolth
Hi! I am experiencing troubles concerning the inheritance of the setgid bit if a new mailbox is created with dovecot-lda. If it is created with dovecot/imap, everything works fine. dovecot-lda is called from postfix like this: -- mailbox_command = /usr/local/sbin/postfix-lda.sh -

use a second userdb that only returns extra fields

2016-10-28 Thread Alexander 'Leo'; Bergolth
Hi! Is it possible to get all basic userdb information from the passwd userdb and add a second userdb of type checkpassword that only sets some additional extra fields like namespaces? I tried the following setup: 8< userdb { driver = passwd result_su

Re: sieve duplicate locking

2016-10-20 Thread Alexander &#x27;Leo'; Bergolth
On 10/19/2016 12:51 PM, Stephan Bosch wrote: > Op 17-10-2016 om 18:05 schreef Alexander 'Leo' Bergolth: >> Does the duplicate sieve plugin do any locking to avoid duplicate >> parallel delivery of the same message? [...] >> Is there an easy way to serialize m

sieve duplicate locking

2016-10-17 Thread Alexander &#x27;Leo'; Bergolth
Hi! Does the duplicate sieve plugin do any locking to avoid duplicate parallel delivery of the same message? I sometimes experience duplicate mail delivery of messages with the same message-id, despite the use of a sieve duplicate filter. According to the log files, those messages are delivered i

Re: custom mail_location detection for dovecot lda

2016-08-09 Thread Alexander &#x27;Leo'; Bergolth
On 08/08/2016 06:27 PM, Stephan Bosch wrote: > Op 8-8-2016 om 18:05 schreef Alexander 'Leo' Bergolth: >> On 08/08/2016 05:34 PM, Stephan Bosch wrote: >>> Op 8-8-2016 om 17:27 schreef Alexander 'Leo' Bergolth: >>>> Is it possible to do someth

Re: custom mail_location detection for dovecot lda

2016-08-08 Thread Alexander &#x27;Leo'; Bergolth
On 08/08/2016 05:34 PM, Stephan Bosch wrote: > Op 8-8-2016 om 17:27 schreef Alexander 'Leo' Bergolth: >> Is it possible to do something like "post-login scripting" to detect and >> set a per-user custom mail location for dovecot LDA delivery? >> >

custom mail_location detection for dovecot lda

2016-08-08 Thread Alexander &#x27;Leo'; Bergolth
Hi! Is it possible to do something like "post-login scripting" to detect and set a per-user custom mail location for dovecot LDA delivery? I tried to use a wrapper-script around dovecot-lda that sets the environment variables MAIL="..." and USERDB_KEYS="MAIL" just like overriding userdb fields ma

Re: Sieve: carry global variables from sieve_before to user sieve scripts

2014-10-25 Thread Alexander &#x27;Leo'; Bergolth
On 20.10.2014 11:48, Alexander 'Leo' Bergolth wrote: Is there a way to initialize global variables with default values in sieve_before scripts that can be used in the sieve_default script or in user scripts? OK. I guess that's currently not possible. I had a quick look in the c

Sieve: carry global variables from sieve_before to user sieve scripts

2014-10-20 Thread Alexander &#x27;Leo'; Bergolth
Hi! Is there a way to initialize global variables with default values in sieve_before scripts that can be used in the sieve_default script or in user scripts? I've tried the following code but this doesn't work.. before.d/10-set-defaults.sieve: 8< requir

Re: v2.2.14 released

2014-10-16 Thread Alexander &#x27;Leo'; Bergolth
On 10/14/2014 06:53 PM, Timo Sirainen wrote: > - Fixed several race conditions with dovecot.index.cache handling that > may have caused unnecessary "cache is corrupted" errors. Rejoyed too soon! :-( Unfortunately it doesn't fix my (maybe mbox related) index.cache errors reported bac

permissions when moving mails

2014-10-15 Thread Alexander &#x27;Leo'; Bergolth
Hi! I am using Unix groups to control access to shared mailboxes. This works fine as long as files are not moved between mailboxes that are owned by different groups. The move operation doesn't change group ownership of the mail. Is there a way to force dovecot to e.g. inherit the ownership from

Re: [Dovecot] Index cache errors worse with 2.2.x

2014-05-24 Thread Alexander &#x27;Leo'; Bergolth
On 23.05.2014 22:03, Timo Sirainen wrote: On 5/7/2014 4:38 PM, Alexander 'Leo' Bergolth wrote: I am getting "Cached message size smaller than expected" errors since dovecot-2.1.x. I tried dovecot 2.2.7, 2.2.10 and 2.2.12. All of them produce tha same errors. ("Ca

Re: [Dovecot] Index cache errors worse with 2.2.x

2014-05-23 Thread Alexander &#x27;Leo'; Bergolth
On 05/08/2014 11:59 AM, Alexander 'Leo' Bergolth wrote: > On 05/08/2014 11:44 AM, Charles Marcus wrote: >> On 5/7/2014 4:38 PM, Alexander 'Leo' Bergolth wrote: >>> I am getting "Cached message size smaller than expected" errors since >>&

Re: [Dovecot] Index cache errors worse with 2.2.x

2014-05-13 Thread Alexander &#x27;Leo'; Bergolth
On 05/13/2014 12:43 PM, Axel Luttgens wrote: > Le 8 mai 2014 à 11:59, Alexander 'Leo' Bergolth a écrit : >> [...] >> I am using a single server, mbox, local disks (/home and /var is XFS on >> HP SmartArray). >> >> I tried dovecot 2.2.7, 2.2.10 and 2.2

Re: [Dovecot] Index cache errors worse with 2.2.x

2014-05-13 Thread Alexander &#x27;Leo'; Bergolth
On 05/13/2014 01:03 PM, Charles Marcus wrote: > On 5/13/2014 5:46 AM, Alexander 'Leo' Bergolth wrote: >> May 13 10:38:08 samba dovecot: imap(xxx): Disconnected: Internal error >> occurred. Refer to server log for more information. [2014-05-13 >> 10:38:07] in=794

Re: [Dovecot] Index cache errors worse with 2.2.x

2014-05-13 Thread Alexander &#x27;Leo'; Bergolth
On 05/07/2014 10:38 PM, Alexander 'Leo' Bergolth wrote: > I am getting "Cached message size smaller than expected" errors since > dovecot-2.1.x. > Until now, I thought that those errors don't do any harm, I assumed that the > cache will just be rebu

Re: [Dovecot] Index cache errors worse with 2.2.x

2014-05-08 Thread Alexander &#x27;Leo'; Bergolth
Am 08.05.2014 13:36, schrieb Charles Marcus: > On 5/8/2014 5:59 AM, Alexander 'Leo' Bergolth wrote: >> I am using a single server, mbox, local disks (/home and /var is XFS on >> HP SmartArray). > > Hmmm... could be an mbox specific issue (I seem to recall issues in

Re: [Dovecot] Index cache errors worse with 2.2.x

2014-05-08 Thread Alexander &#x27;Leo'; Bergolth
On 05/08/2014 11:44 AM, Charles Marcus wrote: > On 5/7/2014 4:38 PM, Alexander 'Leo' Bergolth wrote: >> I am getting "Cached message size smaller than expected" errors since >> dovecot-2.1.x. > > Please provide enough info for someone to actually be able

[Dovecot] Index cache errors worse with 2.2.x

2014-05-07 Thread Alexander &#x27;Leo'; Bergolth
Hi! I am getting "Cached message size smaller than expected" errors since dovecot-2.1.x. Until now, I thought that those errors don't do any harm, I assumed that the cache will just be rebuilt after the error had been detected. However, since dovecot 2.2.x (I tried 2.2.7 and 2.2.10), the errors

Re: [Dovecot] userdb namespace settings bug

2012-05-14 Thread Alexander &#x27;Leo'; Bergolth
On 05/14/2012 10:40 AM, Alexander 'Leo' Bergolth wrote: > On 05/13/2012 11:40 PM, Alexander 'Leo' Bergolth wrote: >> Since upgrading to 2.1.6, setting namespaces via environment variables >> using a imap-postlogin-script *sometimes* doesn't work. >&g

Re: [Dovecot] userdb namespace settings bug

2012-05-14 Thread Alexander &#x27;Leo'; Bergolth
On 05/13/2012 11:40 PM, Alexander 'Leo' Bergolth wrote: > Since upgrading to 2.1.6, setting namespaces via environment variables > using a imap-postlogin-script *sometimes* doesn't work. > > Sometimes, the prefix of a namespace isn't set correctly, but is set to &

[Dovecot] userdb namespace settings bug

2012-05-13 Thread Alexander &#x27;Leo'; Bergolth
Hi! Since upgrading to 2.1.6, setting namespaces via environment variables using a imap-postlogin-script *sometimes* doesn't work. Sometimes, the prefix of a namespace isn't set correctly, but is set to an empty string, which leads to the following error: namespace configuration error: Duplicate

Re: [Dovecot] setting namespaces using script-login environment in 2.0

2011-11-16 Thread Alexander &#x27;Leo'; Bergolth
On 11/04/2011 10:18 PM, Timo Sirainen wrote: > On Mon, 2011-10-31 at 18:00 +0100, Alexander 'Leo' Bergolth wrote: >> NAMESPACE_2='maildir:/var/mail/Shared/spamrep:INDEX=~/Maildir/index/Shared/spamrep' >> NAMESPACE_2_PREFIX=Shared/spamrep/ > > The settings

Re: [Dovecot] setting namespaces using script-login environment in 2.0

2011-11-04 Thread Alexander &#x27;Leo'; Bergolth
On 11/01/2011 09:12 PM, Alexander 'Leo' Bergolth wrote: > On 10/31/2011 06:41 PM, e-frog wrote: >> On 31.10.2011 18:00, wrote Alexander 'Leo' Bergolth: >>> Have environment based namespace settings been abandoned in 2.0? >>> >> I think you need

Re: [Dovecot] setting namespaces using script-login environment in 2.0

2011-11-01 Thread Alexander &#x27;Leo'; Bergolth
On 10/31/2011 06:41 PM, e-frog wrote: > On 31.10.2011 18:00, wrote Alexander 'Leo' Bergolth: >> Have environment based namespace settings been abandoned in 2.0? >> > I think you need to add them to USERDB_KEYS now... > > http://wiki2.dovecot.org/PostLoginScr

[Dovecot] setting namespaces using script-login environment in 2.0

2011-10-31 Thread Alexander &#x27;Leo'; Bergolth
Hi! With dovecot 1.x, I was using a post-login script to dynamically add shared mailboxes using NAMESPACE_X.. environment variables, based on filesystem permissions: After login, the post-login script was executed with user permissions (mail_drop_priv_before_exec=yes). It added all subdirectories

Re: [Dovecot] deliver and cloning file permissions

2010-02-13 Thread Alexander &#x27;Leo'; Bergolth
On 02/14/2010 12:45 AM, Pascal Volk wrote: > On 02/14/2010 12:03 AM Alexander 'Leo' Bergolth wrote: >> On 02/13/2010 09:28 PM, Pascal Volk wrote: >>> Dovecot: dovecot.conf² >>> mail_location = maildir:~/Maildir >> >> Unfortunately switching fr

Re: [Dovecot] deliver and cloning file permissions

2010-02-13 Thread Alexander &#x27;Leo'; Bergolth
On 02/13/2010 09:28 PM, Pascal Volk wrote: > On 02/13/2010 02:57 PM Alexander 'Leo' Bergolth wrote: >> I'd like to use deliver (dovecot-1.2.10) as LDA to deliver mails to my >> local users on my postfix-system. >> >> However, deliver tries to copy the f

[Dovecot] deliver and cloning file permissions

2010-02-13 Thread Alexander &#x27;Leo'; Bergolth
Hi! I'd like to use deliver (dovecot-1.2.10) as LDA to deliver mails to my local users on my postfix-system. However, deliver tries to copy the filesystem permissions of the mail-spool-files to the user's index files, which doesn't work, since the files in /var/mail/ belong to the group 'mail'.

Re: [Dovecot] shared mailboxes using namespaces in 1.2

2009-11-23 Thread Alexander &#x27;Leo'; Bergolth
On 11/23/2009 11:05 PM, Timo Sirainen wrote: > On Mon, 2009-11-23 at 22:56 +0100, Alexander 'Leo' Bergolth wrote: >>> Also do you have >>> a /var/spool/mail/Shared/spamrep/cur/ directory? >> Yes: >> # ls -ld /var/spool/mail/Shared/spamrep/cur >&g

Re: [Dovecot] shared mailboxes using namespaces in 1.2

2009-11-23 Thread Alexander &#x27;Leo'; Bergolth
On 11/23/2009 11:05 PM, Timo Sirainen wrote: > On Mon, 2009-11-23 at 22:56 +0100, Alexander 'Leo' Bergolth wrote: >>> Also do you have >>> a /var/spool/mail/Shared/spamrep/cur/ directory? >> Yes: >> # ls -ld /var/spool/mail/Shared/spamrep/cur >&g

Re: [Dovecot] shared mailboxes using namespaces in 1.2

2009-11-23 Thread Alexander &#x27;Leo'; Bergolth
On 11/23/2009 09:51 PM, Timo Sirainen wrote: > On Mon, 2009-11-23 at 21:39 +0100, Alexander 'Leo' Bergolth wrote: >> 16 list "" "%" >> >> ... and dovecot returns "Shared" without \Noselect: >> >> * LIST (\HasChildren) "

Re: [Dovecot] shared mailboxes using namespaces in 1.2

2009-11-23 Thread Alexander &#x27;Leo'; Bergolth
On 11/23/2009 07:27 PM, Timo Sirainen wrote: > On Mon, 2009-11-23 at 19:19 +0100, Alexander 'Leo' Bergolth wrote: >> Nov 23 19:10:15 strike dovecot: IMAP(leo): Namespace: type=shared, >> prefix=Shared/spamrep/, sep=/, inbox=no, hidden=no, list=yes, >> subscrip

Re: [Dovecot] shared mailboxes using namespaces in 1.2

2009-11-23 Thread Alexander &#x27;Leo'; Bergolth
On 11/23/2009 06:28 PM, Timo Sirainen wrote: > On Mon, 2009-11-23 at 17:03 +0100, Alexander 'Leo' Bergolth wrote: >> However now that I've upgraded to 1.2.8, I cannot create subfolders >> anymore. The server responds with "NO Invalid mailbox name: >> test/

[Dovecot] shared mailboxes using namespaces in 1.2

2009-11-23 Thread Alexander &#x27;Leo'; Bergolth
Hi! I've been using shared mailbox trees using maildir, unix permissions and separate namespaces per shared tree since dovecot 1.0. However now that I've upgraded to 1.2.8, I cannot create subfolders anymore. The server responds with "NO Invalid mailbox name: test/testsub". The hierarchy separato

[Dovecot] deliver: keep existing From_ line

2007-12-30 Thread Alexander &#x27;Leo'; Bergolth
Hi! I'm using procmail to filter my email. (I have to use it because of various features that are not supported by sieve.) However, I'd like to deliver mail to my mboxes using dovecots deliver program in order to update index files and speed up mbox access. Using "| $DELIVER -m " in my procmail r

Re: [Dovecot] namespaces, shared mailboxes

2007-12-02 Thread Alexander &#x27;Leo'; Bergolth
On 12/02/2007 09:35 PM, Benjamin R. Haskell wrote: > On Sun, 2 Dec 2007, Nikolay Shopik wrote: >> On 02.12.2007 23:21, Alexander 'Leo' Bergolth wrote: >>> [...] >>> I'd like to be able to deliver e.g. new mail to the technical support >>> direct

Re: [Dovecot] namespaces, shared mailboxes

2007-12-02 Thread Alexander &#x27;Leo'; Bergolth
On 12/02/2007 08:59 PM, Benjamin R. Haskell wrote: > On Sun, 2 Dec 2007, Timo Sirainen wrote: >> On Sat, 2007-12-01 at 23:59 +0100, Alexander 'Leo' Bergolth wrote: >>> I'd like to provide shared mailboxes with maildir that should appear >>> like &

Re: [Dovecot] namespaces, shared mailboxes

2007-12-02 Thread Alexander &#x27;Leo'; Bergolth
On 12/02/2007 02:45 PM, Timo Sirainen wrote: > On Sat, 2007-12-01 at 23:59 +0100, Alexander 'Leo' Bergolth wrote: >> I'd like to provide shared mailboxes with maildir that should appear >> like 'Shared/' to the clients. >> >> Using the namespa

Re: [Dovecot] namespaces, shared mailboxes

2007-12-02 Thread Alexander &#x27;Leo'; Bergolth
On 12/02/2007 09:41 AM, Nikolay Shopik wrote: > On 02.12.2007 1:59, Alexander 'Leo' Bergolth wrote: >> I'd like to provide shared mailboxes with maildir that should appear >> like 'Shared/' to the clients. >> >> Using the namespace configurat

[Dovecot] namespaces, shared mailboxes

2007-12-01 Thread Alexander &#x27;Leo'; Bergolth
Hi! I'd like to provide shared mailboxes with maildir that should appear like 'Shared/' to the clients. Using the namespace configuration below, everything works fine, exept one thing: Mail clients (only tested with Thunderbird) won't allow to put mails directly in 'Shared/mailboxname' (the folde