Hi there<br><br>I'm having difficulties in getting dovecot to run under daemontools. Also, from a sysadmin perspective, so far, I find dovecot's config rather complex - I suppose that's what happens when one attempts to appease all authentication methods... anyway, I digress.
<br><br>System details, to set the scene:<br><br>OS: Slackware Linux<br>Linux Kernel: 2.4.29<br>GCC: 3.2.2<br>Dovecot version: 1.0.rc6<br>Dovecot configure options:<br>./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --with-checkpassword --without-passwd --without-passwd-file --without-shadow --without-pam --without-bsdauth --without-gssapi --without-ldap --without-vpopmail --with-prefetch-userdb --without-sql --without-pgsql --without-mysql --with-ssl=openssl --without-pop3d --with-storages=maildir --without-deliver
<br>MTA: qmail<br>Storage: Maildirs under a single virtual user (vmail)<br>Checkpassword: /var/qmail/bin/qmail-vpoplogin (modified cdb checkpassword)<br>User DB: /var/qmail/users/vpasswd.cdb<br><br>/etc/dovecot.conf<br><br>
base_dir = /var/run/dovecot<br>protocols = imap<br>listen = <a href="http://127.0.0.1">127.0.0.1</a><br>ssl_disable = yes<br>shutdown_clients = yes<br>log_path = /var/log/dovecot<br>login_dir = /var/run/dovecot/login<br>maildir_copy_with_hardlinks = yes
<br>protocol imap {<br> # only require access from webmail on same host<br> listen = <a href="http://127.0.0.1:143">127.0.0.1:143</a><br>}<br>auth default {<br> passdb checkpassword {<br> args = /var/qmail/bin/qmail-vpoplogin
<br> }<br> userdb prefetch {<br> }<br> # user who can access user/passwd db<br> user = auth<br>}<br><br>Firstly, I cannot run dovecot as an unprivileged user, as the OS moans that the user doesn't have permission to write to /dev/stderr. I've had a similar issue running Clamav, but a patch to Clamav resolved this? This seems to be related to referencing /dev/stderr directly. Any ideas?
<br><br>Should I be running dovecot as the virtual mailbox user vmail?<br><br>Before I ramble on about what I've tried, could someone explain to me what dovecot actually does, in terms of privilege separation? The online docs are somewhat convoluted. This would help shed light on the solution.
<br><br>I also noticed the posts re daemontools some time ago, yet they do not include any setup solutions etc - I'd appreciate details from those of you who've succeeded in this regard.<br><br>Thanks<br>Dale<br>