Re: [Dovecot] Shared Folters with LDA/Sieve

2013-11-17 Thread Steffen Kaiser

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Sun, 17 Nov 2013, Dieter Knopf wrote:


I need global email addresses like:
i...@foo.tld
cont...@foo.tld
h...@foo.tld

Every address with own Sieve-rules for filtering and sorting of incoming
mails.

Now every user needs access to this folders, but how? How should i create
the "global" addresses?

I already found http://wiki2.dovecot.org/SharedMailboxes/Public , but
that's just a public namespace.

Is there any FAQ available for this?


IMHO, you should use:
http://wiki2.dovecot.org/SharedMailboxes/Shared
http://wiki2.dovecot.org/ACL

setup those three recipient as their own accounts with Sieve filter a.s.o.
Then install ACLs to share to anyone - or create a group for all users.

- -- 
Steffen Kaiser

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.11 (GNU/Linux)

iQEVAwUBUonFbl3r2wJMiz2NAQLJCgf5AcAEk8UjRYai47jEqvMbQIKsyyvMrOPA
9fidoA3joBs6JzCfcXKGNtJHNwWrRA9g/kFR4KbPs6DlR0cXv4Do+ZcSRtMSGAkk
TdW3Rngs0on0cH1qelbaVK+f8BqSQ/YUC+0FUg+Rk23xINve5C4TkWAzn+48zN/h
qqgdet5FqchoPHUzbJxpRpXd5dRj9Kw1EjUXvVolZbmZGTRWgks9oCKuQrpSZ1VS
eViLcg59J0Dn9WhvFaLk0s3ud8teIl2hRGeInTOPBloa1C5ysyYbs72mcb00bSOt
GBZsbmZmSVdlhcsVaaL3KqCkAZTPzfGRNxOy9zLcHGw402yUDOq+XA==
=TrwU
-END PGP SIGNATURE-


[Dovecot] I wrote CheckPassword Shell example for Dovecot

2013-11-17 Thread Nicolay Vizovitin
Hello,

Seeing as there are not too many Dovecot CheckPassword driver usage
examples on the Internet, I wrote one using Shell script.

You can see post about it here:
http://devblog.plesk.com/2013/11/shell-checkpassword-authentication-in-dovecot/.
The post also has a link to Mercurial repository with the example.

Feel free to use the example as you see fit. You may even include it into
documentation (or link to it), if you'd like.

Thanks for such great software as Dovecot!

-- 
Best regards,
Nick


Re: [Dovecot] UID order vs date order

2013-11-17 Thread Robert Schetterer


Am 17.11.2013 19:27, schrieb LuKreme:
> 
> On 17 Nov 2013, at 03:20 , Torbjorn Jansson 
>  wrote:
> 
>> Hi
>>
>> i have recently moved a mailbox to dovecot and intend to use it via imap and 
>> i have run into a problem.
>>
>> when i imported the mails apparently the UID order got reversed compared to 
>> the date order, result is that some clients like on android devices download 
>> the oldest mails instead of newest.
>> it is not so interesting to have several years old mail show up at the top 
>> of the mailbox.
>>
>> is there any way of convincing dovecot to renumber the mails by date order 
>> instead?
> 
> Probably the easiest solution is to figure out what you did in the import to 
> cause this and reimport the mails. Short of that, the only thing you can do 
> (assuming you are using Maildir, right?) is to get the date out of the mail 
> and rewrite the filename with the correct epoch timestamp.
> 
> It would be great if there was a way to use doveadm to do this, but short of 
> that you just have to fix it yourself. The good news is, with gnu date it’s 
> pretty simple.
> 
>  $ date --date='2013-11-17 01:23:45 +0700' +%s
> 1384626225
>  $ gdate --date='November 17, 2013 01:23:45 +0700' +%s
> 1384626225
>  $ gdate --date='17 Nov 2013 01:23:45 +0700' +%s
> 1384626225
> 
>> i cant be the only one that have run into this.
> 
> I had a similar problem, but I ignored it and as new mail came in, the 
> problem went away (mostly) on its own. :/
> 
> 

http://www.five-ten-sg.com/libpst/ might be an idea too


Best Regards
MfG Robert Schetterer

-- 
[*] sys4 AG

http://sys4.de, +49 (89) 30 90 46 64
Franziskanerstraße 15, 81669 München

Sitz der Gesellschaft: München, Amtsgericht München: HRB 199263
Vorstand: Patrick Ben Koetter, Axel von der Ohe, Marc Schiffbauer
Aufsichtsratsvorsitzender: Florian Kirstein


Re: [Dovecot] UID order vs date order

2013-11-17 Thread LuKreme

On 17 Nov 2013, at 03:20 , Torbjorn Jansson 
 wrote:

> Hi
> 
> i have recently moved a mailbox to dovecot and intend to use it via imap and 
> i have run into a problem.
> 
> when i imported the mails apparently the UID order got reversed compared to 
> the date order, result is that some clients like on android devices download 
> the oldest mails instead of newest.
> it is not so interesting to have several years old mail show up at the top of 
> the mailbox.
> 
> is there any way of convincing dovecot to renumber the mails by date order 
> instead?

Probably the easiest solution is to figure out what you did in the import to 
cause this and reimport the mails. Short of that, the only thing you can do 
(assuming you are using Maildir, right?) is to get the date out of the mail and 
rewrite the filename with the correct epoch timestamp.

It would be great if there was a way to use doveadm to do this, but short of 
that you just have to fix it yourself. The good news is, with gnu date it’s 
pretty simple.

 $ date --date='2013-11-17 01:23:45 +0700' +%s
1384626225
 $ gdate --date='November 17, 2013 01:23:45 +0700' +%s
1384626225
 $ gdate --date='17 Nov 2013 01:23:45 +0700' +%s
1384626225

> i cant be the only one that have run into this.

I had a similar problem, but I ignored it and as new mail came in, the problem 
went away (mostly) on its own. :/


-- 
A cubicle is simply a cell without a door.



Re: [Dovecot] UID order vs date order

2013-11-17 Thread Robert Schetterer


Am 17.11.2013 16:02, schrieb Torbjorn Jansson:
> the problem is that the source mailbox was a local pst file.

have you tried open mailbox with imap in outlook, additional open pst
file and simply copy from pst to imap, i see no reason why you have to
use thunderbird for that job, however that might not solve your problem
, but one source of bug chance is gone then

for server side solution i only see some doveadm stuff

http://wiki2.dovecot.org/Tools/Doveadm

but i am too short in time, for now ,to think about more or exact
advice, perhaps wait for other advice from the list


Best Regards
MfG Robert Schetterer

-- 
[*] sys4 AG

http://sys4.de, +49 (89) 30 90 46 64
Franziskanerstraße 15, 81669 München

Sitz der Gesellschaft: München, Amtsgericht München: HRB 199263
Vorstand: Patrick Ben Koetter, Axel von der Ohe, Marc Schiffbauer
Aufsichtsratsvorsitzender: Florian Kirstein


Re: [Dovecot] Issue with Mavericks Mail Client

2013-11-17 Thread Charles Marcus

On 2013-11-17 10:05 AM, Ken Mandelberg  wrote:
We are running Dovecot 2.0.12, and I already have the Mavericks Mail 
patch of a few days ago. Still requires a restart to get new mail. 


Reporting problems against officially unsupported versions is not very 
productive...


Not saying it will fix this particular problem, but best would be to 
upgrade (at least to latest 2.1.x, best to latest 2.2.x), since the fix, 
when it is available, won't apply to 2.0.x...




Re: [Dovecot] Issue with Mavericks Mail Client

2013-11-17 Thread Ken Mandelberg


Timo Sirainen wrote

On 17.11.2013, at 1.47, Ken Mandelberg  wrote:


>We run a dovecot mailserver. One of the clients I use is a Mac Laptop. 
Recently I upgraded from Mountain Lion (10.8) to Mavericks (10.9). Under 10.8 it 
worked fine. On 10.9 it syncs up when I invoke the client, but after a while stops 
getting updates.
>
>Most of my mail clients are on Linux (thunderbird) or Android (K9) and I admit 
that several run against my very large INBOX simultaneously. The one of the 10.9 
Mac laptop is the only one with this issue.
>
>Is there something known about the new 10.9 Mail client on the Mac that would 
lose sync against dovecot?

You didn?t mention what Dovecot version. Anyway I?ve noticed once that 10.9 
Mail didn?t show some of my mails until I restarted it. Then there are several 
other annoying bugs.. I really shouldn?t have upgraded yet.


We are running Dovecot 2.0.12, and I already have the Mavericks Mail 
patch of a few days ago. Still requires a restart to get new mail.






Re: [Dovecot] UID order vs date order

2013-11-17 Thread Torbjorn Jansson

On 2013-11-17 15:17, Robert Schetterer wrote:

Am 17.11.2013 12:06, schrieb Torbjorn Jansson:

(tbird imports to "Local Folders" and not directly to imap)


beside other dovecot solving ,this perhaps is the source of the problem,
you have better choosen i.e imapsync or dsync on the server , is there a
chance to retry your procedure with imapsync , which might be the
fastest solution.


the problem is that the source mailbox was a local pst file.
i suspect both of those tools are for converting between existing imap 
accounts and/or mbox/maildir format and not pst file.


with a bit of trouble i can probably redo the import but i still don't 
know what i could have done differently to affect the sort order of the 
UID numbers.


only thing i can think of now is to take the dovecot-uidlist in each 
folder and then renumber them by taking the first "column" and reverse 
it (first value and last value gets swapped and so on)

probably not the right way but what other choice do i have?



Re: [Dovecot] Shared Folters with LDA/Sieve

2013-11-17 Thread Achim Gottinger

Am 17.11.2013 05:31, schrieb Dieter Knopf:

Hello,

i'm searching for a way to use Shared mailboxes with Sieve Filtering.

I need global email addresses like:
i...@foo.tld
cont...@foo.tld
h...@foo.tld

Every address with own Sieve-rules for filtering and sorting of incoming
mails.

Now every user needs access to this folders, but how? How should i create
the "global" addresses?

I already found http://wiki2.dovecot.org/SharedMailboxes/Public , but
that's just a public namespace.

Is there any FAQ available for this?

Thank you very much
Dieter

On my setup with an Active Directory LDAP backend i used Domain Groups 
for such email Adresses and configured the acl's in an way that members 
of the groups have full access to the group's imap folders via the 
shared (not the public) namespace. Since each group has normal imap 
account sieve rules can be applied as well.
Guess you can use simple useraccounts for the mail accounts and share 
them for all authenticated users. Should be simpler.


http://wiki2.dovecot.org/SharedMailboxes/Shared



achim~



Re: [Dovecot] UID order vs date order

2013-11-17 Thread Robert Schetterer


Am 17.11.2013 12:06, schrieb Torbjorn Jansson:
> (tbird imports to "Local Folders" and not directly to imap)

beside other dovecot solving ,this perhaps is the source of the problem,
you have better choosen i.e imapsync or dsync on the server , is there a
chance to retry your procedure with imapsync , which might be the
fastest solution.


Best Regards
MfG Robert Schetterer

-- 
[*] sys4 AG

http://sys4.de, +49 (89) 30 90 46 64
Franziskanerstraße 15, 81669 München

Sitz der Gesellschaft: München, Amtsgericht München: HRB 199263
Vorstand: Patrick Ben Koetter, Axel von der Ohe, Marc Schiffbauer
Aufsichtsratsvorsitzender: Florian Kirstein


Re: [Dovecot] UID order vs date order

2013-11-17 Thread Torbjorn Jansson

On 2013-11-17 11:45, Robert Schetterer wrote:

Am 17.11.2013 11:20, schrieb Torbjorn Jansson:

when i imported the mails


how did you did this ? from what server to what version of dove, what
mailbox format



i used thunderbirds import function to import mail from outlook then 
copy over the folders to the imap server with thunderbird.

(tbird imports to "Local Folders" and not directly to imap)

dovecot is version 2.2.6 and dovecot uses maildir format for the mailbox.



Re: [Dovecot] UID order vs date order

2013-11-17 Thread Robert Schetterer


Am 17.11.2013 11:20, schrieb Torbjorn Jansson:
> when i imported the mails


how did you did this ? from what server to what version of dove, what
mailbox format

meanwhile read i.e for possible solutions

http://wiki2.dovecot.org/Tools/Doveadm/Mailbox

Best Regards
MfG Robert Schetterer

-- 
[*] sys4 AG

http://sys4.de, +49 (89) 30 90 46 64
Franziskanerstraße 15, 81669 München

Sitz der Gesellschaft: München, Amtsgericht München: HRB 199263
Vorstand: Patrick Ben Koetter, Axel von der Ohe, Marc Schiffbauer
Aufsichtsratsvorsitzender: Florian Kirstein


[Dovecot] UID order vs date order

2013-11-17 Thread Torbjorn Jansson

Hi

i have recently moved a mailbox to dovecot and intend to use it via imap 
and i have run into a problem.


when i imported the mails apparently the UID order got reversed compared 
to the date order, result is that some clients like on android devices 
download the oldest mails instead of newest.
it is not so interesting to have several years old mail show up at the 
top of the mailbox.


is there any way of convincing dovecot to renumber the mails by date 
order instead?
i have tried  to delete the dovecot-uidlist and dovecont.index* files in 
an unimportant folder and the only thing that happens was that all of 
the mails got renumbered in the wrong order again (lower numbers but 
still same problem)


any advice?
i cant be the only one that have run into this.