[Dovecot] users mail folders have to be subscribed
Hi,
I did a migration from cyrus 2.2 to dovecot (fresh installation, details below) via cyrus2dovecot from FU Berlin. That worked, but I first was missing mails in subfolders ander Inbox. No I detected that they are in the users Maildir in folders in his directory. They are listed when using telnet:
- LIST (\HasChildren) "." "INBOX.ebay"
- LIST (\HasNoChildren) "." "INBOX.ebay.xj"
But they are not shown in thunderbird, I have to subscribe to them one by one. I probably did something wrong and maybe messed up with namespace and seperator settings - it would be great if one could lead me out of that. The wiki was a great help installing and configuring everything, but now I'm stuck.
I use dovecot 2.1.7 under Ubuntu 12.10: # dovecot -n # 2.1.7: /etc/dovecot/dovecot.conf # OS: Linux 3.5.0-18-generic x86_64 Ubuntu 12.10 auth_verbose = yes mail_debug = yes mail_location = maildir:~/Maildir managesieve_notify_capability = mailto managesieve_sieve_capability = fileinto reject envelope encoded-character vacation s ubaddress comparator-i;ascii-numeric relational regex imap4flags copy include variab les body enotify environment mailbox date ihave namespace inbox { inbox = yes list = yes location = prefix = separator = . type = private } passdb { driver = pam } plugin { sieve = ~/.dovecot.sieve sieve_dir = ~/sieve } postmaster_address = postmaster@localhost protocols = imap pop3 sieve service auth { unix_listener /var/spool/postfix/private/dovecot-auth { group = postfix mode = 0660 user = postfix } } ssl_cert = </etc/ssl/certs/dovecot.pem ssl_cipher_list = ALL:!LOW:!SSLv2:ALL:!aNULL:!ADH:!eNULL:!EXP:RC4+RSA:+HIGH:+MEDIUM ssl_key = </etc/ssl/private/dovecot.pem userdb { driver = passwd } protocol imap { imap_client_workarounds = delay-newmail mail_max_userip_connections = 10 } protocol pop3 { mail_max_userip_connections = 10 pop3_client_workarounds = outlook-no-nuls oe-ns-eoh } } ssl_cert = </etc/ssl/certs/dovecot.pem ssl_cipher_list = ALL:!LOW:!SSLv2:ALL:!aNULL:!ADH:!eNULL:!EXP:RC4+RSA:+HIGH:+MEDIUM ssl_key = </etc/ssl/private/dovecot.pem userdb { driver = passwd } protocol imap { imap_client_workarounds = delay-newmail mail_max_userip_connections = 10 } protocol pop3 { mail_max_userip_connections = 10 pop3_client_workarounds = outlook-no-nuls oe-ns-eoh } protocol lda { deliver_log_format = msgid=%m: %$ mail_plugins = sieve sieve postmaster_address = postmaster quota_full_tempfail = yes rejection_reason = Your message to <%t> was automatically rejected:%n%r }
Any help is greatly appreciated! Regards Andre
Andre Bischof wrote:
Unsubscribed mailboxes are not shown in thunderbird, while subscriptions being stored server side, not in your local thunderbird.
You can use this command to subscribe one or more mailboxes: doveadm mailbox subscribe [-A|-u user] [-S socket_path] mailbox ...
This should subscribe all mailboxes of a specific user (-A for all users): doveadm mailbox subscribe -u user@example.com "*"
You can set this configuration option to auto-subscribe new folders: lda_mailbox_autosubscribe = yes
Regards Daniel
2012/11/18 Daniel Parthey <daniel.parthey@informatik.tu-chemnitz.de>
Hi Daniel,
thank you, I guess that will be helpful - but before trying it, I would like to get one thing clear, which could be the reason for my misunderstandings:
IMHO I don't need any subscriptions, I would like to appear the imported cyrus folders and subfolders as subfolders in dovecot. The directory structure seperated by '.' in the folders names in my Maildir is exactly how I would like to have it in Thunderbird.
Do I need subscriptions for that (I always thought subscriptions are to subscribe to other users folders, shared by them) or should I have that any other way?
I will set this, thanks.
Regards Andre
Andre Bischof wrote:
No, strictly speaking you don't need subscriptions, but Thunderbird is configured to display only subscribed folders by default.
You can configure thunderbird to not use subscriptions: Edit > Settings > Edit configuration mail.server.default.using_subscription false
Under Account Settings > Server Settings > Extended you have the possibility to only display subscribed folders. So you might want to remove the checkmark in order to display even unsubscribed folders.
Regards Daniel
Andre Bischof <andre.bischof@rheinsinn.de> wrote:
2012/11/18 Daniel Parthey <daniel.parthey@informatik.tu-chemnitz.de>
Unsubscribed mailboxes are not shown in thunderbird, while subscriptions being stored server side, not in your local thunderbird.
"supscription" in IMAP-speak is the server telling the client: show this folder to the user.
There is no differentiation between your folders an other users folders.
Your problem is that during your conversion from cyrus to dovecot your subscriptions got lost. Maybe because the folder structure changed and no longer matches the server-stored subscription or because the server-stored subscription was not converted at all.
Grüße, S°
-- Sigmentation fault. Core dumped.
Sven, Daniel,
2012/11/19 Sven Hartge <sven@svenhartge.de>
Andre Bischof <andre.bischof@rheinsinn.de> wrote:
2012/11/18 Daniel Parthey <daniel.parthey@informatik.tu-chemnitz.de>
...
Thunderbird accordingly, but I prefer to have it solved server-side, thus not tweaking every client I use from different computers.
Sven, I believe subscription have been lost while converting from cyrus to dovecot, and I understand that I should use the commands shown by Daniel to subscribe this folders one time server side, and my problems should be solved no matter which clients I use (I put lda_mailbox_autosubscribe = yes already):
doveadm mailbox subscribe -u user@example.com "*"
One more question: Should the user for "-u" be the system user the mailboxes belong to or has the user to be written in form of an email adress (user@localhost / user@n.dyndns.org)?
Regards
Andre Bischof wrote:
It should be the same userdb username as used for imap login.
Regards Daniel
participants (3)
-
Andre Bischof
-
Daniel Parthey
-
Sven Hartge