I'm impressed by dovecto and try to upgrade my home system from wu-imapd running there for last 5 years to dovecot. It's straghtforward FreeBSD setup with ssl-only auth, inboxes in /var/mail and user mail under %h/Mail But I get some strange error: Fatal: userdb didn't return a home directory, but mail location used it (%h): %h/Mail:INBOX=/var/mail/%u Thank you in advance! -Dmitry mircat:dovecot#./sbin/dovecot -n # 1.1.10: /usr/local/dovecot/etc/dovecot.conf # OS: FreeBSD 6.2-RELEASE i386 base_dir: /var/run/dovecot log_path: /var/log/dovecot_main.log info_log_path: /var/log/dovecot_info.log listen: *:143 ssl_listen: *:993 disable_plaintext_auth: no login_dir: /var/run/dovecot/login login_executable: /usr/local/dovecot/libexec/dovecot/imap-login login_user: nobody login_chroot: no login_max_processes_count: 30 max_mail_processes: 30 first_valid_uid: 1 mail_uid: smmsp mail_gid: smmsp mail_location: mbox:%h/Mail:INBOX=/var/mail/%u mail_debug: yes mbox_lazy_writes: no auth default: failure_delay: 1 verbose: yes debug: yes worker_max_request_count: 1 passdb: driver: pam args: imap -- Dmitry Samersoff dms at samersoff.net, http://devnull.samersoff.net * There will come soft rains ...
On Fri, 2009-02-06 at 22:40 +0300, Dmitry Samersoff wrote:> Fatal: userdb didn't return a home directory, but mail location used > it (%h): %h/Mail:INBOX=/var/mail/%u..> passdb: > driver: pam > args: imapYou don't have userdb configured at all, so Dovecot doesn't know the user's home directories. Probably helps if you just add: userdb passwd { } inside auth {} block. -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 197 bytes Desc: This is a digitally signed message part URL: <http://dovecot.org/pipermail/dovecot/attachments/20090206/cfad9b9f/attachment-0002.bin>
Timo Sirainen wrote:> You don't have userdb configured at all, so Dovecot doesn't know the > user's home directories. Probably helps if you just add: > > userdb passwd { > } > > inside auth {} block.Thank you! it helps. -- Dmitry Samersoff dms at samersoff.net, http://devnull.samersoff.net * There will come soft rains ...
Timo, Everything seems to be working except I can't access one folder: I have messages below in the log: dovecot: Feb 06 21:28:04 Error: IMAP(dms): file_lock_dotlock() failed with mbox file /var/mail/dms: Permission denied But permissions seems to be OK: mircat:dovecot#ls -ld /var/mail drwxrwxr-x 2 root mail 512 Feb 6 21:23 /var/mail mircat:dovecot#ls -l /var/mail/dms -rw-r----- 1 dms smmsp 91463 Feb 6 21:31 /var/mail/dms Dovecot setup: mail_uid: smmsp mail_gid: mail Thank you! -Dmitry PS: Full dovecot -n output below. mircat:dovecot#/usr/local/dovecot/sbin/dovecot -n # 1.1.10: /usr/local/dovecot/etc/dovecot.conf # OS: FreeBSD 6.2-RELEASE i386 base_dir: /var/run/dovecot log_path: /var/log/dovecot_main.log info_log_path: /var/log/dovecot_info.log listen: *:8143 ssl_listen: *:993 disable_plaintext_auth: no login_dir: /var/run/dovecot/login login_executable: /usr/local/dovecot/libexec/dovecot/imap-login login_user: nobody login_chroot: no login_max_processes_count: 30 max_mail_processes: 30 first_valid_uid: 1 mail_uid: smmsp mail_gid: mail mail_location: mbox:%h/Mail:INBOX=/var/mail/%u mail_debug: yes mbox_lazy_writes: no auth default: failure_delay: 1 verbose: yes debug: yes worker_max_request_count: 1 passdb: driver: pam args: imap userdb: driver: passwd -- Dmitry Samersoff dms at samersoff.net, http://devnull.samersoff.net * There will come soft rains ...