[Dovecot] Errors after install with non-standard prefix
Hi Everyone,
I'm new in dovecot - so first at all, thank you for amazing work. I'd flicked through dovecot code and it's very accurate.
I'm trying to use dovecot with a little bit non-standard configuration: dovecot installed under /my_path/dovecot, all users has the same home directory /my_path/var/mail and have to access all mailboxes/folders located there.
But I have troubles with it:
Right after start dovecot start spamming log with
Error: dict: dict client: Broken handshake
besides of GB's of lines above I have:
Error: imap-login: Timeout waiting for handshake from auth server. my pid=18493, input bytes=0
And of course nothing works.
Thank you! -Dmitry
#/zhome/dovecot/sbin/dovecot -n # 1.1.10: /zhome/dovecot/etc/dovecot.conf # OS: SunOS 5.10 sun4v zfs base_dir: /zhome/var/run/dovecot log_path: /zhome/var/log/dovecot_main.log info_log_path: /zhome/var/log/dovecot_info.log protocols: imap ssl_disable: yes disable_plaintext_auth: no login_dir: /zhome/var/run/dovecot login_executable: /zhome/dovecot/libexec/dovecot/imap-login login_user: exim login_chroot: no login_max_processes_count: 30 max_mail_processes: 30 first_valid_uid: 1 mail_uid: exim mail_gid: exim mail_location: mbox:/zhome/var/mail:INBOX=/zhome/var/mail/.dead_letters 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: dovecot
-- Dmitry Samersoff dms@samersoff.net, http://devnull.samersoff.net
- There will come soft rains ...
On Mon, 2009-02-02 at 14:43 +0300, Dmitry Samersoff wrote:
Error: dict: dict client: Broken handshake .. base_dir: /zhome/var/run/dovecot .. login_dir: /zhome/var/run/dovecot
These can't be the same! Just don't specify login_dir at all, it'll use the default which is under base_dir.
login_user: exim login_chroot: no .. mail_uid: exim mail_gid: exim
These look suspicious. Are you going to run entire Dovecot under exim user? If not, login_user can't be the same as mail_uid.
Timo,
Thanks a lot it helps.
What is dependency between login directory and dict client? Are you trying to open unix domain sockets or pipes under login dir? If yes - is it possible to force dovecot to open it all under /tmp ?
- Generally I would like to run entire dovecot under exim user but dovecot claims Logins with login_user's UID 69 not permitted despite the fact I set first_valid_uid = 1 changing login user to nobody helps.
-Dmitry.
Timo Sirainen wrote:
On Mon, 2009-02-02 at 14:43 +0300, Dmitry Samersoff wrote:
Error: dict: dict client: Broken handshake .. base_dir: /zhome/var/run/dovecot .. login_dir: /zhome/var/run/dovecot
These can't be the same! Just don't specify login_dir at all, it'll use the default which is under base_dir.
login_user: exim login_chroot: no .. mail_uid: exim mail_gid: exim
These look suspicious. Are you going to run entire Dovecot under exim user? If not, login_user can't be the same as mail_uid.
-- Dmitry Samersoff dms@samersoff.net, http://devnull.samersoff.net
- There will come soft rains ...
On Tue, 2009-02-03 at 01:08 +0300, Dmitry Samersoff wrote:
Timo,
Thanks a lot it helps.
What is dependency between login directory and dict client?
None really.
Are you trying to open unix domain sockets or pipes under login dir?
Yes, all unix domains sockets are expected to be authentication sockets.
If yes - is it possible to force dovecot to open it all under /tmp ?
Well, I suppose you could set login_dir = /tmp/dovecot-logins or something..
- Generally I would like to run entire dovecot under exim user
http://wiki.dovecot.org/HowTo/Rootless
but dovecot claims Logins with login_user's UID 69 not permitted
Only way to allow that is to start dovecot as exim user.
participants (2)
-
Dmitry Samersoff
-
Timo Sirainen