Bug: Shared Mailbox - Case Sensitivity

2016-09-16 Thread Leander Schäfer
Hi, unfortunately I found a bug in Dovecot's ACL handling for shared mailboxes. It turns out Dovecot doesn't enforce lower casing the privileged username to whom the mailbox should be shared to. This results in a invalid configuration. Users get confused, since they passed on a valid email ad

pop3 deleted count

2016-09-16 Thread Dave
On pop3 logout, we're seeing log lines where the deleted count is blank (using default pop3_logout_format), so "del=%d/%m" is displaying in the logs as: "del=/1186" for example. In src/pop3/pop3-client.c:552: tab[4].value = client->delete_success ? dec2str(client->d

Re: pop3 deleted count

2016-09-16 Thread Dave
On 16/09/2016 11:39, Dave wrote: On pop3 logout, we're seeing log lines where the deleted count is blank (using default pop3_logout_format), so "del=%d/%m" is displaying in the logs as: "del=/1186" ... Shouldn't this be: tab[4].value = client->delete_success ? dec2s

Re: Bug: Shared Mailbox - Case Sensitivity

2016-09-16 Thread Aki Tuomi
On 16.09.2016 12:54, Leander Schäfer wrote: > Hi, > > unfortunately I found a bug in Dovecot's ACL handling for shared > mailboxes. It turns out Dovecot doesn't enforce lower casing the > privileged username to whom the mailbox should be shared to. This > results in a invalid configuration. Users

Re: pop3 deleted count

2016-09-16 Thread Aki Tuomi
On 16.09.2016 13:42, Dave wrote: > On 16/09/2016 11:39, Dave wrote: >> >> On pop3 logout, we're seeing log lines where the deleted count is blank >> (using default pop3_logout_format), so "del=%d/%m" is displaying in the >> logs as: >> >> "del=/1186" > > ... > >> Shouldn't this be: >> >>

Re: Bug: Shared Mailbox - Case Sensitivity

2016-09-16 Thread Tanstaafl
On 9/16/2016 6:53 AM, Aki Tuomi wrote: > On 16.09.2016 12:54, Leander Schäfer wrote: >> user=Leander@MyDomain.LocalDomain eilrwts >> ^^ Doesn't work > Hi! Did you know you can use %Lu instead of %u to force lowercasing? In my opinion this should be the default...

Re: Bug: Shared Mailbox - Case Sensitivity

2016-09-16 Thread Leander Schäfer
Hi Aki, Thanks for your advice. Yes, I'm aware of this. Yet lowercasing should be the default since Dovecot 2.1.x., isn't it? Yet I wouldn't know where exactly to implement this %L, since the ACLs are set through IMAP commands through the users mailclient like Thunderbird. So in other words,

Crash with latest -git as of 2.2.devel (c06590c)

2016-09-16 Thread Reuben Farrelly
Hi, Looks like something has been committed to master-2.2 in the last week which is causing crashes as soon as the remote user logs in: Sep 17 01:11:19 thunderstorm.reub.net dovecot: dsync-server(reuben): Error: read(lightning.reub.net) failed: EOF (last sent=mailbox_state, last recv=mail (E

converting maildir to mailbox

2016-09-16 Thread Anton Yuzhaninov
Hi all! There is a script to convert maildir to mailbox in wiki: http://wiki.dovecot.org/Migration/MailFormat but it doesn't convert any message flags (seen e.t.c.). I wrote a script, which converts most flags and labels: https://bitbucket.org/citrin/scripts/src/tip/dovecot-maildir2mbox.pl It d

Re: converting maildir to mailbox

2016-09-16 Thread Benny Pedersen
On 2016-09-16 17:50, Anton Yuzhaninov wrote: Do you think link to the script should be added to dovecot wiki? may i ask for one that makes mbox2maildir ? would it be possible to make this into imapsync ? (also a perl script) thanks for the script anyway

Re: converting maildir to mailbox

2016-09-16 Thread Aki Tuomi
> On September 16, 2016 at 7:34 PM Benny Pedersen wrote: > > > On 2016-09-16 17:50, Anton Yuzhaninov wrote: > > > Do you think link to the script should be added to dovecot wiki? > > may i ask for one that makes mbox2maildir ? > > would it be possible to make this into imapsync ? (also a per

BUG - DELETE Public/Folder not working with Thunderbird

2016-09-16 Thread Leander Schäfer
Hi, Unfortunately it looks like the parameter: "imap_client_workarounds = tb-extra-mailbox-sep" does not work. Neither inside nor outside "protocol imap {}" configuration section. ACLs are set correctly. Manual "DELETE Public/Test" via telnet is working as expected. Is this a known bug? See

Re: BUG - DELETE Public/Folder not working with Thunderbird

2016-09-16 Thread Anton Yuzhaninov
On 2016-09-16 15:20, Leander Schäfer wrote: Unfortunately it looks like the parameter: "imap_client_workarounds = tb-extra-mailbox-sep" does not work. Neither inside nor outside "protocol imap {}" configuration section. ACLs are set correctly. Manual "DELETE Public/Test" via telnet is working as

Re: BUG - DELETE Public/Folder not working with Thunderbird

2016-09-16 Thread Leander Schäfer
Hi Anton, Thank you very much for your helpful hint. Thunderbird clearly wants to move Public/Test to the Trash of the user who subscribed the Public folder. Question is how to solve this from a Dovecot point of a view, so a user can also delete folders? 2020200448[10053c700]: proposed url =

acl_group not working not working correctly

2016-09-16 Thread Leander Schäfer
Hi, I'm trying to setup group based ACLs coming from OpenLDAP. My setup doesn't require a POSIX Group match. In the Dovecot configuration file I have this: "user_attrs = [...], mailAclGroups=acl_groups" as well as "acl = vfile:/usr/local/etc/dovecot/global-acls:cache_secs=300". The user has "

how to mass delete after a hacked mail?

2016-09-16 Thread voytek
I had a hacked user account resulting in several thousand bounces back to that email inbox, account now corrected, but, how can I mass delete bounces with say subject like: "Undelivered Mail Returned to Sender" (by from ? ""Mail Delivery System" ") or what other ways to clean the mess ? thanks,

Re: how to mass delete after a hacked mail?

2016-09-16 Thread Peter Chiochetti
Am 2016-09-17 um 01:03 schrieb voy...@sbt.net.au: I had a hacked user account resulting in several thousand bounces back to that email inbox, account now corrected, but, how can I mass delete bounces with say subject like: "Undelivered Mail Returned to Sender" (by from ? ""Mail Delivery System"

Re: how to mass delete after a hacked mail?

2016-09-16 Thread Sean Greenslade
On Sat, Sep 17, 2016 at 09:03:48AM +1000, voy...@sbt.net.au wrote: > I had a hacked user account resulting in several thousand bounces back to > that email inbox, account now corrected, but, how can I mass delete > bounces with say subject like: > > "Undelivered Mail Returned to Sender" > (by from