-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Hello,
I'm testing some configurations, in the process I used a wrong user setting causing POP3 (get new messages) to fail, whereas IMAP was still working.
An easy fix was to remove the entire /var/cache/dovecot/1012/ directory, both index and index/control were re-created and do work. So my guess is that the existance of the indexes causes some trouble when just the control information is missing.
Here is what I had done: The mailbox of "dvtest" was fully working with the correct setting from the config file: mail=maildir:/home/dvtest/MailDir:INDEX=/var/cache/dovecot/1012/index:CONTROL=/var/cache/dovecot/1012/control (no "/index" in the CONTROL= part).
Then I created a LDAP entry for the user dvtest wrongly: mail=maildir:/home/dvtestMAIL/MailDir:INDEX=/var/cache/dovecot/1012/index:CONTROL=/var/cache/dovecot/1012/index/control The CONTROL= ended in "/index/control" rather than just "/control".
(Note: I also mv'ed /home/dvtest to /home/dvtestMAIL in order to see, whether the LDAP attribute is getting used.)
Afterwards IMAP is working, but POP3 returns "Couldn't init INBOX: Unknown error"; Thunderbird displays the error: "The STAT command did not succeed. Error getting message number and sizes. Mail server ux-2s11-9 responded: Couldn't sync mailbox."
When I correct the LDAP attribute, hence the CONTROL= path ends in "1012/control" again. The mailbox is working with POP3 again.
The INBOX of the erroreous control path does not contain any dovecot-* files? The message I deleted and expunged (see logs) were from the INBOX. /var/cache/dovecot/1012/index/control# lr .: total 16 drwx------ 4 dvtest Debian-exim 4096 2007-03-07 09:36 ./ drwx------ 12 dvtest dvtest 4096 2007-03-07 09:34 ../ drwx------ 2 dvtest Debian-exim 4096 2007-03-07 09:36 .Addresses/ drwx------ 2 dvtest Debian-exim 4096 2007-03-07 09:35 .INBOX/
./.Addresses: total 24 drwx------ 2 dvtest Debian-exim 4096 2007-03-07 09:36 ./ drwx------ 4 dvtest Debian-exim 4096 2007-03-07 09:36 ../
- -rw------- 1 dvtest Debian-exim 12756 2007-03-07 09:36 dovecot-uidlist
./.INBOX: total 8 drwx------ 2 dvtest Debian-exim 4096 2007-03-07 09:35 ./ drwx------ 4 dvtest Debian-exim 4096 2007-03-07 09:36 ../
The attached file contains the full log of a session POP3 (get new messages), IMAP, expunge in INBOX, POP3 again.
I also selected the mailbox Adresses once, to see if it is working.
===
# dovecot --version 1.0.rc26 # dovecot -n # /usr/local/dovecot.rc26/etc/dovecot.conf log_path: /var/log/dovecot/dovecot.log protocols: imap imaps pop3 pop3s ssl_ca_file: /etc/ssl/certs/ca.crt ssl_cert_file(default): /etc/ssl/certs/imap.pem ssl_cert_file(imap): /etc/ssl/certs/imap.pem ssl_cert_file(pop3): /etc/ssl/certs/pop3.pem ssl_key_file(default): /etc/ssl/private/imap.key ssl_key_file(imap): /etc/ssl/private/imap.key ssl_key_file(pop3): /etc/ssl/private/pop3.key disable_plaintext_auth: no verbose_ssl: yes login_dir: /usr/local/dovecot.rc26/var/run/dovecot/login login_executable(default): /usr/local/dovecot.rc26/libexec/dovecot/imap-login login_executable(imap): /usr/local/dovecot.rc26/libexec/dovecot/imap-login login_executable(pop3): /usr/local/dovecot.rc26/libexec/dovecot/pop3-login login_log_format_elements: %p: user=<%u> method=%m rip=%r lip=%l %c verbose_proctitle: yes first_valid_uid: 1000 mail_location: maildir:%h/MailDir:CONTROL=/var/cache/dovecot/%i/control:INDEX=/var/cache/dovecot/%i/index mail_debug: yes dotlock_use_excl: yes maildir_copy_with_hardlinks: yes maildir_copy_preserve_filename: yes mail_drop_priv_before_exec: yes mail_executable(default): /usr/local/dovecot.rc26/libexec/dovecot/imap mail_executable(imap): /usr/local/dovecot.rc26/libexec/dovecot/imap mail_executable(pop3): /usr/local/dovecot.rc26/libexec/dovecot/pop3 mail_plugins(default): quota imap_quota mail_log zlib mail_plugins(imap): quota imap_quota mail_log zlib mail_plugins(pop3): quota mail_log mail_plugin_dir(default): /usr/local/dovecot.rc26/lib/dovecot/imap mail_plugin_dir(imap): /usr/local/dovecot.rc26/lib/dovecot/imap mail_plugin_dir(pop3): /usr/local/dovecot.rc26/lib/dovecot/pop3 mail_log_prefix: %Us(%u) [%p]: mail_log_max_lines_per_sec: 30 pop3_uidl_format(default): pop3_uidl_format(imap): pop3_uidl_format(pop3): %u pop3_client_workarounds(default): pop3_client_workarounds(imap): pop3_client_workarounds(pop3): oe-ns-eoh namespace: type: private separator: . inbox: yes hidden: yes auth default: mechanisms: plain login cache_size: 10 username_chars: abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ01234567890 verbose: yes debug: yes debug_passwords: yes passdb: driver: ldap args: /usr/local/dovecot.rc25/etc/dovecot-ldap.conf passdb: driver: pam args: cache_key=%u session=yes dovecot userdb: driver: prefetch userdb: driver: ldap args: /usr/local/dovecot.rc25/etc/dovecot-ldap.conf userdb: driver: passwd socket: type: listen client: path: /var/run/dovecot/auth-client mode: 432 master: path: /var/run/dovecot/auth-master mode: 432 group: mail plugin: quota: fs
Bye,
Steffen Kaiser -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux)
iQEVAwUBRe6BIS9SORjhbDpvAQJY0wf/YCDC/Np8RRcOOgm36NZDT0PpS28u17QK TDHsbrZqgeA6iPV0IXpIrAV3fficnCQLJ25saIpl5BQyD18Lsbw15SJiFSs9Igko LCuiQwX4JzybXfga4m9rf6pMR9be/yREsbBsAu8KagMYVUxzN1H01cJfNb86XKNw 7GeKahpYVIVR3y9PZf13x8gW16REeRt0andWHa9Dmqt//ygv+sSqngfN9tzp6keo CW13FLIZufnP6TeFwcBQF4KNh6HeZn3B7AYL4BRAqrMIVRgIIkgDD3TzfNIUHCwq GwqvTE/dquW2HEwtG00S/ZnG6WAf6WKzl9p32F1mihRMpYjsQj2uyg== =8cA5 -----END PGP SIGNATURE-----