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

Re: sieve duplicate locking

2016-10-20 Thread Alexander '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 mail delive

sieve duplicate locking

2016-10-17 Thread Alexander '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

Re: custom mail_location detection for dovecot lda

2016-08-08 Thread 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 something like "post-login scripting" to detect and >> set a per-user custom mail location for dovecot LDA delivery? >> > You coul

custom mail_location detection for dovecot lda

2016-08-08 Thread Alexander '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

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

2014-10-25 Thread Alexander '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 code, the global

Sieve: carry global variables from sieve_before to user sieve scripts

2014-10-20 Thread Alexander '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

Re: v2.2.14 released

2014-10-16 Thread Alexander '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 back

permissions when moving mails

2014-10-15 Thread Alexander '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

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

2014-05-24 Thread Alexander 'Leo' Bergolth
On 23.05.2014 22:03, Timo Sirainen wrote: On 5/7/2014 4:38 PM, Alexander 'Leo' Bergolth l...@strike.wu.ac.at 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. (Cached

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

2014-05-23 Thread Alexander '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 l...@strike.wu.ac.at 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

Re: [Dovecot] userdb namespace settings bug

2012-05-14 Thread Alexander '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. See the error message: Unknown userdb setting: plugin

[Dovecot] userdb namespace settings bug

2012-05-13 Thread Alexander '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 '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 are now named. http://wiki2.dovecot.org

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

2011-11-01 Thread Alexander '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/PostLoginScripting#Running_environment I have added

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

2011-10-31 Thread Alexander '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

[Dovecot] deliver and cloning file permissions

2010-02-13 Thread Alexander '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] deliver and cloning file permissions

2010-02-13 Thread Alexander '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 filesystem permissions of the mail-spool-files

Re: [Dovecot] deliver and cloning file permissions

2010-02-13 Thread Alexander '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 from mbox to maildir is not an option. Btw. I don't see

[Dovecot] shared mailboxes using namespaces in 1.2

2009-11-23 Thread Alexander '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 separator

Re: [Dovecot] shared mailboxes using namespaces in 1.2

2009-11-23 Thread Alexander '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/testsub. The hierarchy separator

Re: [Dovecot] shared mailboxes using namespaces in 1.2

2009-11-23 Thread Alexander '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, subscriptions=no See if using type=public works

Re: [Dovecot] shared mailboxes using namespaces in 1.2

2009-11-23 Thread Alexander '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) / Shared Is there a way to tell dovecot that this is only the base of my namespaces

Re: [Dovecot] shared mailboxes using namespaces in 1.2

2009-11-23 Thread Alexander '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 drwxrws--- 2 nobody spamrep 6 2009-11-23 16:02 /var/spool/mail

Re: [Dovecot] shared mailboxes using namespaces in 1.2

2009-11-23 Thread Alexander '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 drwxrws--- 2 nobody spamrep 6 2009-11-23 16:02 /var/spool/mail

[Dovecot] deliver: keep existing From_ line

2007-12-30 Thread Alexander '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 mboxname in my

Re: [Dovecot] namespaces, shared mailboxes

2007-12-02 Thread Alexander '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/mailboxname' to the clients. Using the namespace configuration below, everything works fine, exept one thing

Re: [Dovecot] namespaces, shared mailboxes

2007-12-02 Thread Alexander '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/mailboxname' to the clients. Using the namespace configuration below, everything works fine, exept

Re: [Dovecot] namespaces, shared mailboxes

2007-12-02 Thread Alexander '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 directly to Shared/tech/ but if that's not possible, it isn't a big

Re: [Dovecot] namespaces, shared mailboxes

2007-12-02 Thread Alexander '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 'Shared/mailboxname' to the clients. Using the namespace

[Dovecot] namespaces, shared mailboxes

2007-12-01 Thread Alexander 'Leo' Bergolth
Hi! I'd like to provide shared mailboxes with maildir that should appear like 'Shared/mailboxname' 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