[Dovecot] migration from bincimap to dovecot (imaps)
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Hi folks,
I've installed dovecot 0.99.14 (last port on my freebsd system), and now I've to migrate from bincimap. My system uses qmail with vpopmail (uid/gid 89) and Maildir format.
Well, now the authentication is ok, but when I try to connect to mailbox I receive an error like "IMAP command SELECT failed".
My dovecot.conf:
protocols = imaps imaps_listen = 192.168.17.10:993 ssl_disable = no ssl_cert_file = /var/qmail/certs/mail.nesys.it_cert.pem ssl_key_file = /var/qmail/certs/mail.nesys.it_key.pem log_path = /var/log/dovecot.log info_log_path = /var/log/dovecot.log login_user = dovecot first_valid_uid = 89 last_valid_uid = 89 first_valid_gid = 89 last_valid_gid = 89 ... default_mail_env = maildir:/usr/local/vpopmail/domains/%d/%u/Maildir ... auth_userdb = vpopmail auth_passdb = vpopmail auth_user = root
My Maildir directory:
elessar# ls -la total 520 drwx------ 5 vpopmail vchkpw 512 Jul 11 12:40 . drwx------ 3 vpopmail vchkpw 512 Feb 7 12:10 ..
- -rw------- 1 vpopmail vchkpw 23 Jul 11 10:43 .bincimap-subscribed
- -rw------- 1 vpopmail vchkpw 307344 Jul 11 12:40 bincimap-cache
- -rw------- 1 vpopmail vchkpw 75 Jul 11 12:39 bincimap-uidvalidity drwx------ 2 vpopmail vchkpw 190464 Jul 11 12:40 cur drwx------ 2 vpopmail vchkpw 512 Jul 11 12:39 new drwx------ 2 vpopmail vchkpw 512 Jul 11 12:18 tmp
- -rw------- 1 vpopmail vchkpw 75 Jun 23 15:09 uidvalfilename
I've forgotten something? Any advice will be appreciated :) Regards Andrea -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (Darwin)
iD8DBQFC0k92MakHrsrHP9wRAgIrAJ9rkNALg2l/ZoJ5+YyChw5SLhXDtACgyA4T VHnceVpLb1VO9Nm5GeyLIN8= =SEHK -----END PGP SIGNATURE-----
On Mon, 2005-07-11 at 12:52 +0200, Andrea Riela wrote:
I've installed dovecot 0.99.14 (last port on my freebsd system), and now I've to migrate from bincimap. My system uses qmail with vpopmail (uid/gid 89) and Maildir format.
Well, now the authentication is ok, but when I try to connect to mailbox I receive an error like "IMAP command SELECT failed".
Well, that error message isn't very helpful. Dovecot writes the real error message to its log file (/var/log/mail.log or similar usually). Check what it says there.
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On Jul 12, 2005, at 4:49 PM, Timo Sirainen wrote:
Well, now the authentication is ok, but when I try to connect to mailbox I receive an error like "IMAP command SELECT failed".
Well, that error message isn't very helpful. Dovecot writes the real error message to its log file (/var/log/mail.log or similar usually). Check what it says there.
uhmm ... my log file is /var/log/dovecot.log, and it says only:
dovecot: Jul 11 12:10:39 Info: Dovecot starting up imap-login: Jul 11 12:11:23 Info: Login: test@domain.dom [192.168.17.23]
on dovecot.conf: log_path = /var/log/dovecot.log info_log_path = /var/log/dovecot.log
thanks for your support Regards Andrea -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (Darwin)
iD8DBQFC090FMakHrsrHP9wRAtvWAKCn0Bur2e8yj2v/u70tA0eSD7brawCZAUUa huZUB34t/cm/gFuQk/nfgyY= =j3HT -----END PGP SIGNATURE-----
On Tue, 2005-07-12 at 17:08 +0200, Andrea Riela wrote:
Well, now the authentication is ok, but when I try to connect to mailbox I receive an error like "IMAP command SELECT failed".
Well, that error message isn't very helpful. Dovecot writes the real error message to its log file (/var/log/mail.log or similar usually). Check what it says there.
uhmm ... my log file is /var/log/dovecot.log, and it says only:
dovecot: Jul 11 12:10:39 Info: Dovecot starting up imap-login: Jul 11 12:11:23 Info: Login: test@domain.dom [192.168.17.23]
Oh. Then it's trying to send a SELECT command for non-existing mailbox. Were you using Maildir++ layout before with BINC? What IMAP client are you using? You'll probably have to change IMAP namespace prefix in configuration, or maybe flush some client cache. See the first chapter in http://wiki.dovecot.org/moin.cgi/MissingMailboxes
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On Jul 12, 2005, at 6:11 PM, Timo Sirainen wrote:
Oh. Then it's trying to send a SELECT command for non-existing mailbox. Were you using Maildir++ layout before with BINC?
My bincimap conf:
Mailbox { depot = "Maildir++", type = "Maildir", path = "Maildir", auto create inbox = "yes", auto subscribe mailboxes = "INBOX", umask = "077" }
What IMAP client are you using?
Mail.app (Apple), Outlook and Outlook Express
You'll probably have to change IMAP namespace prefix in configuration, or maybe flush some client cache. See the first chapter in http://wiki.dovecot.org/moin.cgi/MissingMailboxes
I don't know what I've to do ... I really need your help!
testuser@nesys.it pass xxxx
this is my dovecot.conf: http://www.nesys.it/dovecot.conf
this is the output from openssl s_client -connect:
- OK dovecot ready. x login testuser@nesys.it xxxx x OK Logged in. x list "" * x NO x select "INBOX" x NO x select "" x NO Invalid mailbox name ^C
I use qmail with vpopmail and virtualdomains:
elessar# cd /usr/local/vpopmail/domains/nesys.it/testuser/ elessar# ls -la total 10 drwx------ 3 vpopmail vchkpw 512 Aug 10 11:27 . drwx------ 31 vpopmail vchkpw 1024 Aug 10 11:27 ..
- -rw------- 1 vpopmail vchkpw 49 Aug 10 11:27 .qmail drwx------ 5 vpopmail vchkpw 512 Aug 10 11:46 Maildir
- -rw------- 1 vpopmail vchkpw 7 Aug 10 11:27 lastauth elessar# cd Maildir elessar# ls -la total 10 drwx------ 5 vpopmail vchkpw 512 Aug 10 12:26 . drwx------ 3 vpopmail vchkpw 512 Aug 10 11:27 .. drwx------ 2 vpopmail vchkpw 512 Aug 10 11:27 cur drwx------ 2 vpopmail vchkpw 512 Aug 10 11:30 new drwx------ 2 vpopmail vchkpw 512 Aug 10 11:30 tmp
Any advice will be appreciated Regards Andrea Riela -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (Darwin)
iD8DBQFC+deCMakHrsrHP9wRAjbbAJsH8kKf1mhpP9lLMF/9JJtgvrRi9wCfTAQB HzuiRgKv++f+MuhT0SIIuao= =UJoD -----END PGP SIGNATURE-----
On Wed, 2005-08-10 at 12:31 +0200, Andrea Riela wrote:
- OK dovecot ready. x login testuser@nesys.it xxxx x OK Logged in. x list "" * x NO
OK, that looks broken. It failed but Dovecot somehow failed to remember what the error message was.
Easiest way to go from here would be to try 1.0-stable or 1.0-test releases. They shouldn't be losing any errors. Also 1.0-tests have a nice mail_debug=yes setting which tells exactly why it's looking into wrong places for the mail.
participants (2)
-
Andrea Riela
-
Timo Sirainen