[Dovecot] Dovecot Startup error
Hi, I have installed Dovecot 1.0.0 on a FreeBSD6.0 machine with Exim 4.66 and Vexim 1.5. When I restart the machine, dovecot does not load properly. The logs of /var/log/maillog are as: May 8 00:10:32 lhr dovecot: pop3-login: No authentication sockets found May 8 00:10:32 lhr dovecot: child 11478 (login) returned error 89 May 8 00:10:34 lhr dovecot: imap-login: No authentication sockets found May 8 00:10:34 lhr dovecot: child 11479 (login) returned error 89
When I kill it and then start it, then it starts working properly. /var/log/maillog:May 8 09:33:02 lhr dovecot: auth(default): Killed with signal 15 /var/log/maillog:May 8 09:33:02 lhr dovecot: Killed with signal 15 /var/log/maillog:May 8 09:33:13 lhr dovecot: Dovecot v1.0.0 starting up /var/log/maillog:May 8 09:33:13 lhr dovecot: auth-worker(default): mysql: Connected to 127.0.0.1 (exim)
My configuration file is :
lhr# dovecot -n
# /usr/local/etc/dovecot.conf
protocols: imap pop3
listen(default): *:143
listen(imap): *:143
listen(pop3): *
ssl_disable: yes
disable_plaintext_auth: no
login_dir: /usr/local/var/run/dovecot/login
login_executable(default): /usr/local/libexec/dovecot/imap-login
login_executable(imap): /usr/local/libexec/dovecot/imap-login
login_executable(pop3): /usr/local/libexec/dovecot/pop3-login
first_valid_uid: 90
last_valid_uid: 93
first_valid_gid: 90
last_valid_gid: 93
mail_executable(default): /usr/local/libexec/dovecot/imap
mail_executable(imap): /usr/local/libexec/dovecot/imap
mail_executable(pop3): /usr/local/libexec/dovecot/pop3
mail_plugins(default): quota imap_quota
mail_plugins(imap): quota imap_quota
mail_plugins(pop3): quota
mail_plugin_dir(default): /usr/local/lib/dovecot/imap
mail_plugin_dir(imap): /usr/local/lib/dovecot/imap
mail_plugin_dir(pop3): /usr/local/lib/dovecot/pop3
pop3_uidl_format(default):
pop3_uidl_format(imap):
pop3_uidl_format(pop3): %08Xu%08Xv
auth default:
verbose: yes
debug: yes
passdb:
driver: sql
args: /usr/local/etc/dovecot-sql.conf
userdb:
driver: sql
args: /usr/local/etc/dovecot-sql.conf
Please help me in this regard.
Thanks in advance.
Kamran Arshad
Don't pick lemons. See all the new 2007 cars at Yahoo! Autos.
kamran arshad wrote:
/var/log/maillog:May 8 09:33:13 lhr dovecot: auth-worker(default): mysql: Connected to 127.0.0.1 (exim)
This looks a little strange - why would there be an (exim) in parens, are you running dovecot as your exim userid?
Regardless, my first guess is that your MySQL instance has not finished starting and is not accepting connections before Dovecot is initiated, so the auth worker has no socket to connect to; what's the timing and order of your /etc/rc* tree look like?
If you have the services starting in parallel, then you might have to move Dovecot further down the startup tree, or add a little shell voodoo to check for the MySQL socket before starting it...
-te
-- Troy Engel | Systems Engineer Fluid, Inc | http://www.fluid.com
On Tue, 2007-05-08 at 04:09 -0700, kamran arshad wrote:
I have installed Dovecot 1.0.0 on a FreeBSD6.0 machine with Exim 4.66 and Vexim 1.5. When I restart the machine, dovecot does not load properly. The logs of /var/log/maillog are as: May 8 00:10:32 lhr dovecot: pop3-login: No authentication sockets found May 8 00:10:32 lhr dovecot: child 11478 (login) returned error 89 May 8 00:10:34 lhr dovecot: imap-login: No authentication sockets found May 8 00:10:34 lhr dovecot: child 11479 (login) returned error 89
When I kill it and then start it, then it starts working properly.
This sounds like a startup script deletes /var/run/dovecot/ directory after Dovecot is started.
participants (3)
-
kamran arshad
-
Timo Sirainen
-
Troy Engel