[Dovecot] How to find an invalid configuration in dovecot.conf

Laurent PELLISSIER Laurent.Pellissier at ema.fr
Wed Nov 28 17:08:49 EET 2007


Hi,

I'm trying to test Dovecot as an IMAP ans POP3 server but I ran into a 
fatal problem.
On the client side (telnet) I'm trying very basic IMAP commands :

$ telnet localhost imap
Trying 127.0.0.1...
Connected to localhost.localdomain (127.0.0.1).
Escape character is '^]'.
* OK Dovecot ready.
1 LOGIN lavande secret
1 OK Logged in.
Connection closed by foreign host.

The login succeeds but the connection hangs !


On the server side it complains that the configuration file dovecot.conf 
is invalid (it was copied from dovecot-example.conf) but it never tells 
what line number is incorrect. dovecot -a or dovecot -n doesn't complain 
about a syntax error or something.

It works for POP3 for the same user/pass.


# /opt/dovecot/sbin/dovecot -F -c /etc/dovecot.conf
dovecot: Nov 28 15:43:42 Info: Dovecot v1.0.8 starting up
dovecot: Nov 28 15:43:53 Info: imap-login: Login: user=<lavande>, 
method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, secured
dovecot: Nov 28 15:43:53 Error: IMAP(lavande): Error: Dovecot is already 
running with PID 4369 (read from 
/opt/dovecot-1.0.8/var/run/dovecot/master.pid)
dovecot: Nov 28 15:43:53 Error: IMAP(lavande): Fatal: Invalid 
configuration in /etc/dovecot.conf
dovecot: Nov 28 15:43:53 Error: IMAP(lavande): Fatal: EOF while reading 
environment from master
dovecot: Nov 28 15:43:53 Error: child 4380 (imap) returned error 89

Best regards,

-- 
Laurent PELLISSIER @ Ecole des Mines d'Alès


More information about the dovecot mailing list