[Dovecot] Replacing real inbox by virtual inbox
Hello,
I'm using dovecot 1.2.11 with virtual folders. I'd like to replace my real INBOX by a virtual one but I have several questions :
*
will my mail still be delivered to my real INBOX? * will I be able to access my real INBOX, for example using a virtual folder reliyng on INBOX
* and, how to do it.
Here's my problem, if I look to the wiki page [1], I don't really understand what the _NAMESPACE_1_INBOX_ and the _NAMESPACE_2_INBOX_ stands for. Plus, I can't put my paths in my scripts, as they use %d and %u (see below) which, if I understand correctly, aren't available for PostLoginScripts.
Thanks for your help,
François-Xavier Payet fx.payet@tfdn.org Jabber : fx.payet@tfdn.org
Links:
Sorry, I forgot my dovecot -n. Here it is :
# 1.2.11: /etc/dovecot/dovecot.conf # OS: Linux 2.6.32-bpo.4-amd64 x86_64 Debian 5.0.5 ext3 log_timestamp: %Y-%m-%d %H:%M:%S protocols: imaps managesieve login_dir: /var/run/dovecot/login login_executable(default): /usr/lib/dovecot/imap-login login_executable(imap): /usr/lib/dovecot/imap-login login_executable(managesieve): /usr/lib/dovecot/managesieve-login mail_privileged_group: mail mail_location: maildir:/var/vmail/%d/%n/Maildir mbox_write_locks: fcntl dotlock mail_executable(default): /usr/lib/dovecot/imap mail_executable(imap): /usr/lib/dovecot/imap mail_executable(managesieve): /usr/lib/dovecot/managesieve mail_plugins(default): virtual mail_plugins(imap): virtual mail_plugins(managesieve): mail_plugin_dir(default): /usr/lib/dovecot/modules/imap mail_plugin_dir(imap): /usr/lib/dovecot/modules/imap mail_plugin_dir(managesieve): /usr/lib/dovecot/modules/managesieve namespace: type: private inbox: yes list: yes subscriptions: yes namespace: type: private separator: . prefix: virtual. location: virtual:/var/vmail/%d/%n/Maildir/virtual list: yes subscriptions: yes lda: log_path: /var/vmail/dovecot-deliver.log auth_socket_path: /var/run/dovecot/auth-master postmaster_address: foux@da-foux-server.tfdn.org mail_plugins: sieve virtual auth default: mechanisms: plain login passdb: driver: sql args: /etc/dovecot/dovecot-sql.conf userdb: driver: passwd userdb: driver: static args: uid=5000 gid=5000 home=/var/vmail/%d/%n allow_all_users=yes socket: type: listen client: path: /var/spool/postfix/private/auth mode: 432 master: path: /var/run/dovecot/auth-master mode: 384 user: vmail plugin: sieve: /var/vmail/%d/%n/sieve sieve_dir: /var/vmail/%d/%n/.sieve
-- François-Xavier Payet fx.payet@tfdn.org Jabber : fx.payet@tfdn.org
On Mon, 28 Jun 2010 15:30:07 +0200, François-Xavier Payet wrote:
Hello,
I'm using dovecot 1.2.11 with virtual folders. I'd like to replace my real INBOX by a virtual one but I have several questions :
* will my mail still be delivered to my real INBOX?
* will I be able to access my real INBOX, for example using a virtual
folder reliyng on INBOX * and, how to do it.
Here's my problem, if I look to the wiki page [2], I don't really understand what the _NAMESPACE_1_INBOX_ and the _NAMESPACE_2_INBOX_ stands for. Plus, I can't put my paths in my scripts, as they use %d and %u (see below) which, if I understand correctly, aren't available for PostLoginScripts.
Thanks for your help,
François-Xavier Payet fx.payet@tfdn.org Jabber : fx.payet@tfdn.org
Links:
On Mon, 2010-06-28 at 15:30 +0200, François-Xavier Payet wrote:
I'm using dovecot 1.2.11 with virtual folders. I'd like to replace my real INBOX by a virtual one but I have several questions :
- will my mail still be delivered to my real INBOX?
There are a few possibilities..
You could set !RealMails/INBOX so that saving to virtual inbox gets saved to real inbox (similar to as explained in wiki).
Enable virtual INBOX only for IMAP protocol.
- will I be able to access my real INBOX, for example using a virtual folder reliyng on INBOX
Yes, either create a virtual mailbox containing only RealMails/INBOX rule, or alternatively create some kind of a symlink to filesystem (e.g. ln -s . .real-inbox
Here's my problem, if I look to the wiki page [1], I don't really understand what the _NAMESPACE_1_INBOX_ and the _NAMESPACE_2_INBOX_ stands for.
NAMESPACE_1_INBOX=yes maps to first namespace { inbox=yes }, _2_ maps to second namespace. With v2.0 this is clearer, because you can name the namespaces and access them via names rather than numbers.
Plus, I can't put my paths in my scripts, as they use %d and %u (see below) which, if I understand correctly, aren't available for PostLoginScripts.
In post-login scripts you have access to $HOME.
participants (2)
-
François-Xavier Payet
-
Timo Sirainen