Re: Issue with imap folder structure

2017-10-05 Thread absolutely_free
Hi,

honestly, I don't know if I need that.. I simply copied settings from former 
server, but with unexpected results.

I wondering what is correct Dovecot settings according to maildir layout in my 
case:



drwx-- 5 postfix postfix 11 Jun 19 18:22 .Deleted Items
drwx-- 5 postfix postfix 11 Sep 29 09:27 .Drafts
drwx-- 5 postfix postfix 9 Oct 4 10:18 .INBOX.Drafts
drwx-- 5 postfix postfix 9 Oct 4 10:18 .INBOX.Sent
drwx-- 5 postfix postfix 9 Oct 3 18:01 .INBOX.Trash
drwx-- 5 postfix postfix 12 Sep 29 09:27 .Junk
drwx-- 5 postfix postfix 8 Dec 9 2014 .Junk E-mail
drwx-- 5 postfix postfix 9 Oct 2 14:18 .Posta indesiderata
drwx-- 5 postfix postfix 9 Jun 19 18:22 .Posta inviata
drwx-- 5 postfix postfix 10 Oct 4 12:27 .Sent
drwx-- 5 postfix postfix 10 Oct 5 00:23 .Trash
drwx-- 2 postfix postfix 217 Oct 5 13:09 cur
-rw--- 1 postfix postfix 53 Feb 16 2017 dovecot-keywords
-rw--- 1 postfix postfix 14028 Oct 5 13:09 dovecot-uidlist
-rw--- 1 postfix postfix 8 Oct 3 18:01 dovecot-uidvalidity
-r--r--r-- 1 postfix postfix 0 Nov 27 2015 dovecot-uidvalidity.5658162a
-r--r--r-- 1 postfix postfix 0 Sep 27 18:18 dovecot-uidvalidity.59cbcf5c
-rw--- 1 postfix postfix 7200 Sep 29 01:19 dovecot.index
-rw--- 1 postfix postfix 65740 Oct 5 18:07 dovecot.index.cache
-rw--- 1 postfix postfix 7932 Oct 5 13:46 dovecot.index.log
-rw--- 1 postfix postfix 216 Oct 3 18:01 dovecot.mailbox.log
drwx-- 2 postfix postfix 2 Oct 5 13:08 new
-rw--- 1 postfix postfix 96 Oct 3 18:01 subscriptions
drwx-- 2 postfix postfix 2 Oct 5 12:58 tmp


thank you very much

Those are my Roundcube settings

$config['default_folders'] = array('INBOX', 'Drafts', 'Sent', 'Junk', 'Trash');

> 
> Il 5 ottobre 2017 alle 11.57 "A.L.E.C"  ha scritto:
> 
> On 05.10.2017 00:24, absolutely_f...@libero.it wrote:
> 
> > > 
> > namespace {
> > inbox = yes
> > location =
> > prefix = INBOX.
> > separator = .
> > type = private
> > }
> > 
> > > 
> If you don't need INBOX.* folders then remove the above namespace
> definition. Roundcube adds automatically the personal namespace prefix
> to special folders.
> 
> --
> Aleksander 'A.L.E.C' Machniak
> Kolab Groupware Developer [http://kolab.org]
> 
> Roundcube Webmail Developer [http://roundcube.net]
> 
> 
> PGP: 19359DC1 # Blog: https://kolabian.wordpress.com
> 


Re: Issue with imap folder structure

2017-10-05 Thread absolutely_free
Hi Steffen,


sorry, in this case "duplicate" means that users have two folders in webmail 
(Roundcube) with same content.

I did not tried to move messages between folders yte.

I confirm that on previous server, this was Dovecot's settings:

namespace {
type = private
separator = .
prefix = INBOX.
inbox = yes
}

After migration to new server (as I said I copied spool at filesystem level), I 
noticed that namespace settings was different:


namespace inbox {
inbox = yes
location =
mailbox Drafts {
special_use = \Drafts
}
mailbox Junk {
special_use = \Junk
}
mailbox Sent {
special_use = \Sent
}
mailbox "Sent Messages" {
special_use = \Sent
}
mailbox Trash {
special_use = \Trash
}
prefix =
}


So, I used "INBOX" prefix:


namespace {
type = private
separator = .
prefix = INBOX.
inbox = yes
}


and restarted Dovecot, but it seems I created lots of issues..

Now I restored  the original configuration.. it seems ok

Is it a bit unclear how configure properly Roundcube AND Dovecot (regarding 
IMAP settings)


Thank you very much



> Il 5 ottobre 2017 alle 11.48 Steffen Kaiser  
> ha scritto:
>
>
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> On Thu, 5 Oct 2017, absolutely_f...@libero.it wrote:
>
> > I just migrated spool from another server (by copying filesystem, I use 
> > maildir), this is an example of mailbox's content:
> >
> > drwx-- 5 postfix postfix 11 Sep 29 09:27 .Drafts
> > drwx-- 5 postfix postfix 9 Oct 4 10:18 .INBOX.Drafts
> > drwx-- 5 postfix postfix 9 Oct 4 10:18 .INBOX.Sent
> > drwx-- 5 postfix postfix 9 Oct 3 18:01 .INBOX.Trash
> > drwx-- 5 postfix postfix 12 Sep 29 09:27 .Junk
> > drwx-- 5 postfix postfix 8 Dec 9 2014 .Junk E-mail
> > drwx-- 5 postfix postfix 10 Oct 4 12:27 .Sent
> > drwx-- 5 postfix postfix 10 Oct 4 18:01 .Trash
>
> > -rw--- 1 postfix postfix 96 Oct 3 18:01 subscriptions
>
> > It seems I have duplicate folder (for example during webmail access, I use 
> > Roundcube).
>
> You did not explain, which folders are duplicate.
> Does "duplicate" mean, that they have the some content or just the same
> name? If copy one message into one folder, is it accessable through the
> other one?
>
> > What is wrong with my setup?
>
> Well, you mean "Sent" and "INBOX.Sent", which latter is a mailbox named
> "Sent" as subfolder of INBOX, then they are not duplicates, but have the
> same name. Eventually, your mail client strips the leading "INBOX" for
> convience for the user. Possibly, you had mailbox prefix configured in
> your setup ago, which hid all mailboxes except "INBOX" and below. Perhaps
> you have entries in your subscriptions files, which are no longer
> available, because of the other setup.
>
> - --
> Steffen Kaiser
> -BEGIN PGP SIGNATURE-
> Version: GnuPG v1
>
> iQEVAwUBWdX/3Hz1H7kL/d9rAQIwlQf+N29DnENf2hcXxBiYJdf+/rFpOtHPg5u0
> ml7VhtQSBRYk85x0xR/x16FMTqXM/IHRsIjjHwPbFVJ4lHdDJ3LHI4jnLy39v9qX
> oWjtlWDB88r6/MifJDxkgZXxBbih4tyqI0MNQRObt7mjLSF2POwSU90QZdeFAgCO
> 3hSooauYMjKCDOfBJpPNa8Uhs1RKw+70YMcgdWKwRZqPgQu5NoudU/5StAFe3cAx
> Oj4YJSn3NQI7cNLdr6R8Kv2wUbOnPhGvEQcn9NfnpbIROb5pG6Wu2plFmWRNmG9V
> XeTwtAarIeOHHonW4LNfx4hFPOo2APrm/NcnqDYSFOh14hap3NFGkQ==
> =oXNE
> -END PGP SIGNATURE-


Re: Issue with imap folder structure

2017-10-05 Thread A.L.E.C
On 05.10.2017 00:24, absolutely_f...@libero.it wrote:
> namespace {
> inbox = yes
> location =
> prefix = INBOX.
> separator = .
> type = private
> }

If you don't need INBOX.* folders then remove the above namespace
definition. Roundcube adds automatically the personal namespace prefix
to special folders.

-- 
Aleksander 'A.L.E.C' Machniak
Kolab Groupware Developer [http://kolab.org]
Roundcube Webmail Developer   [http://roundcube.net]

PGP: 19359DC1 # Blog: https://kolabian.wordpress.com


Re: Issue with imap folder structure

2017-10-05 Thread Steffen Kaiser

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Thu, 5 Oct 2017, absolutely_f...@libero.it wrote:


I just migrated spool from another server (by copying filesystem, I use 
maildir), this is an example of mailbox's content:

drwx-- 5 postfix postfix 11 Sep 29 09:27 .Drafts
drwx-- 5 postfix postfix 9 Oct 4 10:18 .INBOX.Drafts
drwx-- 5 postfix postfix 9 Oct 4 10:18 .INBOX.Sent
drwx-- 5 postfix postfix 9 Oct 3 18:01 .INBOX.Trash
drwx-- 5 postfix postfix 12 Sep 29 09:27 .Junk
drwx-- 5 postfix postfix 8 Dec 9 2014 .Junk E-mail
drwx-- 5 postfix postfix 10 Oct 4 12:27 .Sent
drwx-- 5 postfix postfix 10 Oct 4 18:01 .Trash



-rw--- 1 postfix postfix 96 Oct 3 18:01 subscriptions



It seems I have duplicate folder (for example during webmail access, I use 
Roundcube).


You did not explain, which folders are duplicate.
Does "duplicate" mean, that they have the some content or just the same 
name? If copy one message into one folder, is it accessable through the 
other one?



What is wrong with my setup?


Well, you mean "Sent" and "INBOX.Sent", which latter is a mailbox named 
"Sent" as subfolder of INBOX, then they are not duplicates, but have the 
same name. Eventually, your mail client strips the leading "INBOX" for 
convience for the user. Possibly, you had mailbox prefix configured in 
your setup ago, which hid all mailboxes except "INBOX" and below. Perhaps 
you have entries in your subscriptions files, which are no longer 
available, because of the other setup.


- -- 
Steffen Kaiser

-BEGIN PGP SIGNATURE-
Version: GnuPG v1

iQEVAwUBWdX/3Hz1H7kL/d9rAQIwlQf+N29DnENf2hcXxBiYJdf+/rFpOtHPg5u0
ml7VhtQSBRYk85x0xR/x16FMTqXM/IHRsIjjHwPbFVJ4lHdDJ3LHI4jnLy39v9qX
oWjtlWDB88r6/MifJDxkgZXxBbih4tyqI0MNQRObt7mjLSF2POwSU90QZdeFAgCO
3hSooauYMjKCDOfBJpPNa8Uhs1RKw+70YMcgdWKwRZqPgQu5NoudU/5StAFe3cAx
Oj4YJSn3NQI7cNLdr6R8Kv2wUbOnPhGvEQcn9NfnpbIROb5pG6Wu2plFmWRNmG9V
XeTwtAarIeOHHonW4LNfx4hFPOo2APrm/NcnqDYSFOh14hap3NFGkQ==
=oXNE
-END PGP SIGNATURE-


Issue with imap folder structure

2017-10-04 Thread absolutely_free
Hi,

I use Dovecot 2.2.32

I just migrated spool from another server (by copying filesystem, I use 
maildir), this is an example of mailbox's content:

drwx-- 20 postfix postfix 30 Oct 4 18:38 .
drwx-- 3 postfix postfix 3 Nov 16 2012 ..
drwx-- 5 postfix postfix 11 Jun 19 18:22 .Deleted Items
drwx-- 5 postfix postfix 11 Sep 29 09:27 .Drafts
drwx-- 5 postfix postfix 9 Oct 4 10:18 .INBOX.Drafts
drwx-- 5 postfix postfix 9 Oct 4 10:18 .INBOX.Sent
drwx-- 5 postfix postfix 9 Oct 3 18:01 .INBOX.Trash
drwx-- 5 postfix postfix 12 Sep 29 09:27 .Junk
drwx-- 5 postfix postfix 8 Dec 9 2014 .Junk E-mail
drwx-- 5 postfix postfix 8 Nov 11 2015 .Archive
drwx-- 5 postfix postfix 9 Oct 2 14:18 .Posta indesiderata
drwx-- 5 postfix postfix 9 Jun 19 18:22 .Posta inviata
drwx-- 5 postfix postfix 10 Oct 4 12:27 .Sent
drwx-- 5 postfix postfix 10 Oct 4 18:01 .Trash
drwx-- 2 postfix postfix 215 Oct 4 18:00 cur
-rw--- 1 postfix postfix 53 Feb 16 2017 dovecot-keywords
-rw--- 1 postfix postfix 13963 Oct 4 16:45 dovecot-uidlist
-rw--- 1 postfix postfix 8 Oct 3 18:01 dovecot-uidvalidity
-r--r--r-- 1 postfix postfix 0 Nov 27 2015 dovecot-uidvalidity.5658162a
-r--r--r-- 1 postfix postfix 0 Sep 27 18:18 dovecot-uidvalidity.59cbcf5c
-rw--- 1 postfix postfix 7200 Sep 29 01:19 dovecot.index
-rw--- 1 postfix postfix 63336 Oct 4 18:00 dovecot.index.cache
-rw--- 1 postfix postfix 6436 Oct 4 18:38 dovecot.index.log
-rw--- 1 postfix postfix 216 Oct 3 18:01 dovecot.mailbox.log
drwx-- 2 postfix postfix 2 Oct 4 16:45 new
-rw--- 1 postfix postfix 96 Oct 3 18:01 subscriptions
drwx-- 2 postfix postfix 2 Oct 4 16:12 tmp

and this is my Dovecot's conf:


auth_mechanisms = plain login digest-md5 cram-md5
disable_plaintext_auth = no
first_valid_gid = 125
first_valid_uid = 125
mail_gid = 1003
mail_location = maildir:/var/spool/virtual/domains
mail_privileged_group = postfix
mail_uid = 1003
namespace {
inbox = yes
location =
prefix = INBOX.
separator = .
type = private
}
namespace inbox {
location =
mailbox Drafts {
special_use = \Drafts
}
mailbox Junk {
special_use = \Junk
}
mailbox Sent {
special_use = \Sent
}
mailbox "Sent Messages" {
special_use = \Sent
}
mailbox Trash {
special_use = \Trash
}
prefix =

}
passdb {
args = /usr/local/etc/dovecot/dovecot-sql.conf.ext
driver = sql
}
passdb {
args = /etc/dovecot/dovecot-sql-crypt.conf.ext
driver = sql
}
service auth {
unix_listener /var/spool/postfix/private/auth {
group = postfix
mode = 0666
user = postfix
}
unix_listener auth-userdb {
group = postfix
mode = 0600
user = postfix
}
}
service lmtp {
unix_listener /var/spool/postfix/private/dovecot-lmtp {
group = postfix
mode = 0600
user = postfix
}
}
ssl_cert =