[Dovecot] Virtual mailbox plugin, 4 days of struggling
Hello,
I finally got an INBOX to work, but is virtual mailbox plugin only meant to create a virtual inbox, or should I be able to have an Allmails virtual folder that is viewable in my imap client? if ~/virtual/ is my location, would I create an Allmails directory in the virtual/ or virtual/INBOX/Allmails. Im fairly confused on how this is suppose to work. I was trying to duplicate the gmail-like setup on the wiki but I cant get it work.
Per the wiki, i put in the userdb inbox select, but made swapped pop3 for imap
zeus:/etc/dovecot# dovecot -n # 1.2.rc3: /etc/dovecot/dovecot.conf # OS: Linux 2.6.26-1-amd64 x86_64 Debian squeeze/sid base_dir: /var/run/dovecot/ log_path: /var/log/dovecot/dovecot.log info_log_path: /var/log/dovecot/info.log log_timestamp: %Y-%m-%d %H:%M:%S protocols: imap pop3 lda listen: 208.200.251.181 ssl: no disable_plaintext_auth: no login_dir: /var/run/dovecot/login login_executable(default): /usr/local/libexec/dovecot/imap-login login_executable(imap): /usr/local/libexec/dovecot/imap-login login_executable(pop3): /usr/local/libexec/dovecot/pop3-login login_greeting: Hello there. login_log_format_elements: <%u> <%r> login_log_format: %s login_process_per_connection: no login_process_size: 128 login_processes_count: 4 login_max_processes_count: 20 login_max_connections: 128 mail_max_userip_connections(default): 15 mail_max_userip_connections(imap): 15 mail_max_userip_connections(pop3): 1 verbose_proctitle: yes first_valid_uid: 8 last_valid_uid: 8 first_valid_gid: 8 last_valid_gid: 8 mail_access_groups: mail mail_privileged_group: mail mail_uid: 8 mail_gid: 8 mail_location: maildir:~/:INDEX=dovecot-index mailbox_idle_check_interval: 60 mail_debug: yes fsync_disable: yes mailbox_list_index_disable: no mail_executable(default): /usr/local/libexec/dovecot/imap mail_executable(imap): /usr/local/libexec/dovecot/imap mail_executable(pop3): /usr/local/libexec/dovecot/pop3 mail_plugins(default): quota imap_quota virtual autocreate mail_plugins(imap): quota imap_quota virtual autocreate mail_plugins(pop3): quota mail_plugin_dir(default): /usr/local/lib/dovecot/imap mail_plugin_dir(imap): /usr/local/lib/dovecot/imap mail_plugin_dir(pop3): /usr/local/lib/dovecot/pop3 mail_log_prefix: %Ls <%u>: imap_client_workarounds(default): outlook-idle delay-newmail imap_client_workarounds(imap): outlook-idle delay-newmail imap_client_workarounds(pop3): pop3_no_flag_updates(default): no pop3_no_flag_updates(imap): no pop3_no_flag_updates(pop3): yes pop3_client_workarounds(default): pop3_client_workarounds(imap): pop3_client_workarounds(pop3): outlook-no-nuls oe-ns-eoh pop3_logout_format(default): top=%t/%p, retr=%r/%b, del=%d/%m, size=%s pop3_logout_format(imap): top=%t/%p, retr=%r/%b, del=%d/%m, size=%s pop3_logout_format(pop3): retr=%r/%b, del=%d/%m, size=%s namespace: type: private separator: / hidden: yes list: yes subscriptions: yes namespace: type: private separator: / prefix: virtual/ location: virtual:~/virtual:INDEX=~/dovecot-index list: yes subscriptions: yes namespace: type: private separator: / prefix: RealMails/ hidden: yes list: no subscriptions: yes auth default: mechanisms: plain login default_realm: pacwebdev.com cache_ttl: 60 debug: yes worker_max_count: 60 passdb: driver: sql args: /etc/dovecot/dovecot-sql.conf userdb: driver: prefetch userdb: driver: sql args: /etc/dovecot/dovecot-sql.conf socket: type: listen client: path: /var/run/dovecot/auth-client mode: 438 user: mail group: mail master: path: /var/run/dovecot/auth-master mode: 438 user: mail group: mail plugin: quota: maildir quota_rule: Trash:ignore quota_rule2: Sent:ignore quota_rule3: Spam:ignore quota_rule4: Archive:ignore quota_rule5: Sent Items:ignore quota_rule6: Deleted Items:ignore quota_warning: storage=95%% /etc/dovecot/quota-warning.sh 95 quota_warning2: storage=80%% /etc/dovecot/quota-warning.sh 80 autocreate: Trash autocreate2: Spam autosubscribe: Trash autosubscribe2: Spam auth_socket_path: /var/run/dovecot/auth-master
Hi Brandon,
judging from your other posts, I think you made some progress on this already. Nonetheless, I will share my working virtual config here. In dovecot.conf I have:
# Virtual mailboxes namespace private { # list = no prefix = virtual/ separator = / # Store virtual mailbox in a "virtual" subdirectory. We use the fs layout, # so nesting of mailboxes is done using normal filesystem nesting. location = virtual:~/Mail/virtual:LAYOUT=fs }
protocol imap { # Enable virtual mailboxes mail_plugins = virtual
Then, in ~/Mail/virtual I have a directory for each virtual mailbox, which contains a dovecot-virtual file. For example, ~/Mail/virtual/INBOX/dovecot-virtual contains: INBOX INBOX/Lists INBOX/Bulk INBOX/MaybeSpam Folders/TODO all
(Where INBOX and subfolders refers to the INBOX folder in the default namespace, with no prefix, which also has inbox = yes set). This allows me to view all my new mail by connecting to imaps://host/virtual/INBOX, and only see important mail on my phone by connecting to imaps://host/INBOX, i.e., my real inbox).
I hope this helps a bit,
Matthijs
On Tue, Apr 28, 2009 at 9:18 AM, Matthijs Kooijman matthijs@stdin.nl wrote:
Hi Brandon,
judging from your other posts, I think you made some progress on this already. Nonetheless, I will share my working virtual config here. In dovecot.conf I have:
# Virtual mailboxes namespace private { # list = no prefix = virtual/ separator = / # Store virtual mailbox in a "virtual" subdirectory. We use the fs layout, # so nesting of mailboxes is done using normal filesystem nesting. location = virtual:~/Mail/virtual:LAYOUT=fs }
protocol imap { # Enable virtual mailboxes mail_plugins = virtual
Then, in ~/Mail/virtual I have a directory for each virtual mailbox, which contains a dovecot-virtual file. For example, ~/Mail/virtual/INBOX/dovecot-virtual contains: INBOX INBOX/Lists INBOX/Bulk INBOX/MaybeSpam Folders/TODO all
(Where INBOX and subfolders refers to the INBOX folder in the default namespace, with no prefix, which also has inbox = yes set). This allows me to view all my new mail by connecting to imaps://host/virtual/INBOX, and only see important mail on my phone by connecting to imaps://host/INBOX, i.e., my real inbox).
I hope this helps a bit,
Matthijs
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux)
iD8DBQFJ9yxIz0nQ5oovr7wRAiAXAKC5zM+YBYNLC8KYS++5boDop98PUACaAo/R QQOULoBb4X42R+E6FmQ0uaU= =U7tG -----END PGP SIGNATURE-----
Thanks for the reply! I will go try this, I stuck Allmail under the virtual directory and i have gotten some things to partially work, but I will try your setup and see where it gets me!
=D
On Tue, Apr 28, 2009 at 9:27 AM, Brandon Lamb brandonlamb@gmail.com wrote:
On Tue, Apr 28, 2009 at 9:18 AM, Matthijs Kooijman matthijs@stdin.nl wrote:
Hi Brandon,
judging from your other posts, I think you made some progress on this already. Nonetheless, I will share my working virtual config here. In dovecot.conf I have:
# Virtual mailboxes namespace private { # list = no prefix = virtual/ separator = / # Store virtual mailbox in a "virtual" subdirectory. We use the fs layout, # so nesting of mailboxes is done using normal filesystem nesting. location = virtual:~/Mail/virtual:LAYOUT=fs }
protocol imap { # Enable virtual mailboxes mail_plugins = virtual
Then, in ~/Mail/virtual I have a directory for each virtual mailbox, which contains a dovecot-virtual file. For example, ~/Mail/virtual/INBOX/dovecot-virtual contains: INBOX INBOX/Lists INBOX/Bulk INBOX/MaybeSpam Folders/TODO all
(Where INBOX and subfolders refers to the INBOX folder in the default namespace, with no prefix, which also has inbox = yes set). This allows me to view all my new mail by connecting to imaps://host/virtual/INBOX, and only see important mail on my phone by connecting to imaps://host/INBOX, i.e., my real inbox).
I hope this helps a bit,
Matthijs
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux)
iD8DBQFJ9yxIz0nQ5oovr7wRAiAXAKC5zM+YBYNLC8KYS++5boDop98PUACaAo/R QQOULoBb4X42R+E6FmQ0uaU= =U7tG -----END PGP SIGNATURE-----
Thanks for the reply! I will go try this, I stuck Allmail under the virtual directory and i have gotten some things to partially work, but I will try your setup and see where it gets me!
=D
Oh wait, dangit, this is what I have now, I misread this.
I cant seem to get the inthread x-references2 x-mailbox INBOX to work. I setup an Allmail under /virtual with * and all as the search, then created Inbox2 using virtual/Allmail and inthread x-references2 x-mailbox INBOX but it gives a server bug. Not sure if that is very clear or not.
Hi Brandon,
I cant seem to get the inthread x-references2 x-mailbox INBOX to work. I setup an Allmail under /virtual with * and all as the search, then created Inbox2 using virtual/Allmail and inthread x-references2 x-mailbox INBOX but it gives a server bug. Not sure if that is very clear or not. I haven't tried anything more advanced than just merging mailboxes, so can't help you there...
Gr.
Matthijs
participants (2)
-
Brandon Lamb
-
Matthijs Kooijman