[Dovecot] unix style mbox and vmain maildir on the same server
Hi,
I'm new to dovecott. Using version 1.0.rc15.
I have a mail server that has both the old style unix mbox in /var/mail/%u, and virtual mail maildir in /var/vmail/%d/%n. Debian Linux Etch stable. I'm trying to get dovecot to deliver to /var/mail/%u using mbox format, and to deliver to /var/vmail/%d/%n using maildir format. I can't get it do work. I can get it to access both directories, but not use the two formats. This is what I tried last:
namespace private { separator = / inbox = yes hidden = yes prefix = location = mbox:~/mail:INBOX=/var/mail/%u }
namespace private { separator = / inbox = no hidden = yes prefix = mail/ location = maildir:/var/vmail/%d/%n }
I have since commented out the above two namespaces and set mail_location to
mail_location = maildir:/var/vmail/%d/%n.
$ dovecot -n # /etc/dovecot/dovecot.conf log_timestamp: %Y-%m-%d %H:%M:%S protocols: imap imaps pop3 pop3s disable_plaintext_auth: no login_dir: /var/run/dovecot/login login_executable(default): /usr/lib/dovecot/imap-login login_executable(imap): /usr/lib/dovecot/imap-login login_executable(pop3): /usr/lib/dovecot/pop3-login mail_privileged_group: mail mail_location: maildir:/var/vmail/%d/%n mail_executable(default): /usr/lib/dovecot/imap mail_executable(imap): /usr/lib/dovecot/imap mail_executable(pop3): /usr/lib/dovecot/pop3 mail_plugin_dir(default): /usr/lib/dovecot/modules/imap mail_plugin_dir(imap): /usr/lib/dovecot/modules/imap mail_plugin_dir(pop3): /usr/lib/dovecot/modules/pop3 pop3_uidl_format(default): pop3_uidl_format(imap): pop3_uidl_format(pop3): %08Xu%08Xv auth default: mechanisms: plain login passdb: driver: pam args: dovecot passdb: driver: passwd args: blocking=yes passdb: driver: sql args: /etc/dovecot/dovecot-sql.conf userdb: driver: passwd userdb: driver: static args: uid=2000 gid=2000 home=/var/vmail/%d/%n allow_all_users=yes socket: type: listen client: path: /var/spool/postfix/private/auth mode: 432 user: postfix group: postfix master: path: /var/run/dovecot/auth-master mode: 384 user: vmail
Glen
Glen Lee Edwards wrote:
Hi,
I'm new to dovecott. Using version 1.0.rc15.
You'd be doing yourself a favor by upgrading first - this is a very old/buggy version...
The 1.1 release is imminent (at rc5 stage now), so personally I'd move to that.
You'll have to enable one of the at repositories, but it is available...
--
Best regards,
Charles
On Sat, 2008-05-10 at 16:10 -0400, Charles Marcus wrote:
Glen Lee Edwards wrote:
Hi,
I'm new to dovecott. Using version 1.0.rc15.
You'd be doing yourself a favor by upgrading first - this is a very old/buggy version...
The 1.1 release is imminent (at rc5 stage now), so personally I'd move to that.
You'll have to enable one of the at repositories, but it is available...
I'm afraid that's easier said than done. Debian as a rule uses older packages in their stable version. I just tried to install 1.1.rc5, but can't:
checking for mysql_init in -lmysqlclient... no configure: error: Can't build with MySQL support: libmysqlclient not found
Directory: ~/downloads/dovecot-1.1.rc5 $ locate libmysqlclient /usr/lib/libmysqlclient_r.so.15 /usr/lib/libmysqlclient_r.so.15.0.0 /usr/lib/libmysqlclient.so.15 /usr/lib/libmysqlclient.so.15.0.0
Long story short...I don't have the time to make individual customizations to the system so that one program will work only if I make wholesale changes to the sytem. If this would have been a simple .configure, make, make-install, then I'd do it. But it looks like I'm going to have to upgrade mysql, which will require other manual upgrades.
Glen
On Mon, 2008-05-12 at 11:27 -0500, Glen Lee Edwards wrote:
On Sat, 2008-05-10 at 16:10 -0400, Charles Marcus wrote:
Glen Lee Edwards wrote:
Hi,
I'm new to dovecott. Using version 1.0.rc15.
You'd be doing yourself a favor by upgrading first - this is a very old/buggy version...
The 1.1 release is imminent (at rc5 stage now), so personally I'd move to that.
You'll have to enable one of the at repositories, but it is available...
I'm afraid that's easier said than done. Debian as a rule uses older packages in their stable version. I just tried to install 1.1.rc5, but can't:
checking for mysql_init in -lmysqlclient... no configure: error: Can't build with MySQL support: libmysqlclient not found
Directory: ~/downloads/dovecot-1.1.rc5 $ locate libmysqlclient /usr/lib/libmysqlclient_r.so.15 /usr/lib/libmysqlclient_r.so.15.0.0 /usr/lib/libmysqlclient.so.15 /usr/lib/libmysqlclient.so.15.0.0
Long story short...I don't have the time to make individual customizations to the system so that one program will work only if I make wholesale changes to the sytem. If this would have been a simple .configure, make, make-install, then I'd do it. But it looks like I'm going to have to upgrade mysql, which will require other manual upgrades.
Glen
Guess I spoke too soon: apt-get install libmysqlclient15-dev was all I needed to do.
Glen
On Fri, 2008-05-09 at 22:30 -0500, Glen Lee Edwards wrote:
I'm new to dovecott. Using version 1.0.rc15.
I have a mail server that has both the old style unix mbox in /var/mail/%u, and virtual mail maildir in /var/vmail/%d/%n. Debian Linux Etch stable. I'm trying to get dovecot to deliver to /var/mail/%u using mbox format, and to deliver to /var/vmail/%d/%n using maildir format. I can't get it do work. I can get it to access both directories, but not use the two formats. This is what I tried last:
How would Dovecot know which one to use for which users?
On Thu, 2008-05-15 at 08:56 +0300, Timo Sirainen wrote:
On Fri, 2008-05-09 at 22:30 -0500, Glen Lee Edwards wrote:
I'm new to dovecott. Using version 1.0.rc15.
I have a mail server that has both the old style unix mbox in /var/mail/%u, and virtual mail maildir in /var/vmail/%d/%n. Debian Linux Etch stable. I'm trying to get dovecot to deliver to /var/mail/%u using mbox format, and to deliver to /var/vmail/%d/%n using maildir format. I can't get it do work. I can get it to access both directories, but not use the two formats. This is what I tried last:
How would Dovecot know which one to use for which users?
Oh, you had sql and passwd users. So I assume you want sql users to use maildir and passwd users to use mbox? In that case use:
mail_location = mbox:~/mail:INBOX=/var/mail/%u
And override it for sql users in dovecot-sql.conf:
user_query = select .., 'maildir:/var/mail/%d/%n' as mail, ..
participants (3)
-
Charles Marcus
-
Glen Lee Edwards
-
Timo Sirainen