[Dovecot] Problems with dovecot/sendmail combi.
Hi,
I am really stuck here. I am trying to setup imap for an external mail server. I have a freebsd server running sendmail / dovecot. I am transfering the existing mail from an exchange 2003 server to the mailserver using imapsync. This works fine, but gives errors when it tries to make a submap, also thunderbird gives an error "Mailbox doesn't allow inferior mailboxes" when I try to make a submap. I found out that it has something to do with the mbox not able to have submaps and there should be a workaround using namespaces. I tried several setups but keep getting errors. Does anybody know how to configure namespaces to allow submaps?
dovecot -n # 1.2.3: /usr/local/etc/dovecot.conf # OS: FreeBSD 6.4-STABLE i386 log_path: /var/log/dovecot.log protocols: imap imaps pop3 pop3s disable_plaintext_auth: no verbose_ssl: yes 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_process_per_connection: no login_processes_count: 4 verbose_proctitle: yes first_valid_gid: 0 mail_access_groups: mail mail_location: mbox:~/mail:INBOX=/var/mail/%u mail_debug: yes 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_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 imap_client_workarounds(default): delay-newmail outlook-idle netscape-eoh tb-extra-mailbox-sep imap_client_workarounds(imap): delay-newmail outlook-idle netscape-eoh tb-extra-mailbox-sep imap_client_workarounds(pop3): pop3_client_workarounds(default): pop3_client_workarounds(imap): pop3_client_workarounds(pop3): outlook-no-nuls oe-ns-eoh namespace: type: private separator: / prefix: #mbox/ location: mbox:~/mail:INBOX=/var/mail/%u inbox: yes list: yes subscriptions: yes namespace: type: private separator: / location: maildir:~/mail list: yes subscriptions: yes lda: postmaster_address: postmaster@example.com sendmail_path: /usr/sbin/sendmail auth default: verbose: yes debug: yes debug_passwords: yes passdb: driver: pam userdb: driver: passwd
mbox is in /var/mail/%u and home dir is in /home/mailusers/%u
On 8/20/2009, Roger Berger (dovecot@berger.nl) wrote:
I found out that it has something to do with the mbox not able to have submaps and there should be a workaround using namespaces. I tried several setups but keep getting errors. Does anybody know how to configure namespaces to allow submaps?
Assuming you mean subFOLDERS, my recommendation is to convert to maildir at the same time.
--
Best regards,
Charles
Yes,
But how do I do that and does that inflict all users on the server (only a part of the users use imap). there are about 200 pop users on the mail server and only 50 of them need imap.
Thanks,
Roger
Charles Marcus wrote ..
On 8/20/2009, Roger Berger (dovecot@berger.nl) wrote:
I found out that it has something to do with the mbox not able to have submaps and there should be a workaround using namespaces. I tried several setups but keep getting errors. Does anybody know how to configure namespaces to allow submaps?
Assuming you mean subFOLDERS, my recommendation is to convert to maildir at the same time.
--
Best regards,
Charles
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On Thu, 20 Aug 2009, Roger wrote:
But how do I do that and does that inflict all users on the server (only a part of the users use imap). there are about 200 pop users on the mail server and only 50 of them need imap.
Replace mail_location:
mail_location: maildir:~/Maildir:INBOX=/var/mail/%u
then imap_sync
POP and IMAP users don't care about server-side storage format.
Bye,
Steffen Kaiser -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux)
iQEVAwUBSo5geXWSIuGy1ktrAQLwGwf/Q/0HauNbZzZw4rUgUeR3QxtZztGADweM Bmot3ucHg4YLD1WARFQFyapWIyGZRDIhCeJZtUYNnheN48wU4ieh3xTXnPOyjhRH zWHh5QTIXX6c+e2nUtJvmBK4dt6lsCBaQqoehVSP8tTKYAkpiHS3ubAHKojm8tck XYkolCivKbV7fUi8AMlFi9YcHbUzaDjrOIGq5GsVFWFV0xlLk1wBkklMxx96ARh/ AKokMOdI6dNsQQJMjyQirLuGtD88sOYVY/9ywwdNO4qZ+lCegZVluJj+bg9Df3xZ TxfATfqyrDLND8WvvWaIFOTdQjfRS/qNY5I5pYcAEIHAd6PtM36JLA== =o+SJ -----END PGP SIGNATURE-----
Steffen Kaiser wrote ..
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On Thu, 20 Aug 2009, Roger wrote:
But how do I do that and does that inflict all users on the server (only a part of the users use imap). there are about 200 pop users on the mail server and only 50 of them need imap.
Replace mail_location:
mail_location: maildir:~/Maildir:INBOX=/var/mail/%u
then imap_sync
POP and IMAP users don't care about server-side storage format.
Bye,
Steffen Kaiser Looks like this is working, imapsync now nicely makes the subfolders. But, when I try to log in from the webmail server I got this error: IMAP(sannevdh): Error: stat(/var/mail/sannevdh/tmp) failed: Not a directory
I changed the dovecot.conf to this: mail_location: maildir:~/Maildir:INBOX=/var/mail/%u and namespace: type: private separator: / prefix: #mbox/ location: maildir:~/Maildir:INBOX=/var/mail/%u inbox: yes list: yes subscriptions: yes namespace: type: private separator: . location: maildir:~/Maildir list: no subscriptions: yes
On Fri, 2009-08-21 at 14:57 +0200, Roger wrote:
Looks like this is working, imapsync now nicely makes the subfolders. But, when I try to log in from the webmail server I got this error: IMAP(sannevdh): Error: stat(/var/mail/sannevdh/tmp) failed: Not a directory
So you want mbox as INBOX and Maildir elsewhere? http://wiki.dovecot.org/Namespaces has example for that.
prefix: #mbox/ location: maildir:~/Maildir:INBOX=/var/mail/%u
You need to use mbox: prefix and some other path than ~/Maildir.
participants (5)
-
Charles Marcus
-
Roger
-
Roger Berger
-
Steffen Kaiser
-
Timo Sirainen