[Dovecot] Dovecote does'nt start - no log ?
Hi All,
Actually, I installed Dovecot on an OpenBSD server, however, after properly setting (assumed) the confs, Dovecot does'nt start. I don't know the reason but don't know how to debug. Where is the log about reason for not starting ?
Thank you for helping.
Regards
Hi Jean,
You must have missed something in the conf file (dovecot.conf) It has happened to me too and it was typos or things that don't match on the "dovecot.conf" file.
Have a quick check.
HTH,
.s
--- On Thu, 4/2/10, Jean-Francois jfsimon1981@gmail.com wrote:
From: Jean-Francois jfsimon1981@gmail.com Subject: [Dovecot] Dovecote does'nt start - no log ? To: "Dovecot Mailing List" dovecot@dovecot.org Date: Thursday, 4 February, 2010, 22:21 Hi All,
Actually, I installed Dovecot on an OpenBSD server, however, after properly setting (assumed) the confs, Dovecot does'nt start. I don't know the reason but don't know how to debug. Where is the log about reason for not starting ?
Thank you for helping.
Regards
Le jeudi 04 février 2010 21:32:05, vous avez écrit :
Hi Jean,
You must have missed something in the conf file (dovecot.conf) It has happened to me too and it was typos or things that don't match on the "dovecot.conf" file.
Have a quick check.
HTH,
.s
--- On Thu, 4/2/10, Jean-Francois jfsimon1981@gmail.com wrote:
From: Jean-Francois jfsimon1981@gmail.com Subject: [Dovecot] Dovecote does'nt start - no log ? To: "Dovecot Mailing List" dovecot@dovecot.org Date: Thursday, 4 February, 2010, 22:21 Hi All,
Actually, I installed Dovecot on an OpenBSD server, however, after properly setting (assumed) the confs, Dovecot does'nt start. I don't know the reason but don't know how to debug. Where is the log about reason for not starting ?
Thank you for helping.
Regards
Hi I know and understand, the problem is I checked and looks like no problem. I just want to be sure that it's a con file problem. How to debug where the problem comes from ? dovecot does just write no information but the process will not be created, no error message.
Regards
On 5.2.2010, at 0.06, Jean-Francois wrote:
dovecot does just write no information but the process will not be created, no error message.
You're probably just looking into wrong log file. http://wiki.dovecot.org/Logging
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On Thu, 4 Feb 2010, Jean-Francois wrote:
Actually, I installed Dovecot on an OpenBSD server, however, after properly setting (assumed) the confs, Dovecot does'nt start. I don't know the reason but don't know how to debug. Where is the log about reason for not starting ?
Use "-n" and, if successful, "-F" option, see http://wiki.dovecot.org/CommandLine
If you cannot find the log location (see Timo's mail), try to trace the process, e.g. ktrace, strace, truss, ... whatever is available on your system
REgards,
Steffen Kaiser -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux)
iQEVAwUBS2vStL+Vh58GPL/cAQKZbgf7BRLCJVSCOspNJvO3KhThAVKLU7B96gdc u+1EgDQ7hIWn+SMCmRlI2rvWn+BEqOaGG91zdZjVPSoC83xiNZMjF9FMPdFYGGeQ 12mB5MG9xZb2my/vmCI7VQ+6dnHQ8IyypMguckL+p95ntvY9WkEpP0zoMhuOEshy 3xcXd0DE4qepN5XhpET2y1imVLDHc4Y129VWeyqdfaLiymKR0eCUFWTgRSyipLFw 5Arlm2kuWBRkxlVM27ihEOo72jEXOmHKpx4f3/yXtU0wcNGda9G3FnWbCOjtJ5fI bF7j73rmjG9g9bPnbQIcpOBX6qZBkVs0+dF/GVddIo8kDKD9xhC1Nw== =eS/E -----END PGP SIGNATURE-----
Le vendredi 05 février 2010 09:11:28, Steffen Kaiser a écrit :
On Thu, 4 Feb 2010, Jean-Francois wrote:
Actually, I installed Dovecot on an OpenBSD server, however, after properly setting (assumed) the confs, Dovecot does'nt start. I don't know the reason but don't know how to debug. Where is the log about reason for not starting ?
Use "-n" and, if successful, "-F" option, see http://wiki.dovecot.org/CommandLine
If you cannot find the log location (see Timo's mail), try to trace the process, e.g. ktrace, strace, truss, ... whatever is available on your system
Regards,
Ok, Here's the log. Not clear for me what's wrong.
dovecot: Feb 05 17:39:37 Error: auth(default): mysql: Missing value in connect string: user dovecot: Feb 05 17:39:37 Error: Auth process died too early - shutting down dovecot: Feb 05 17:39:37 Error: child 16642 (auth) returned error 89
and here the dovecot-sql.conf
driver = mysql connect = host=/var/www/htdocs/local/sql/mysql.sock dbname=mail user=user password='the password is a sentence wright here' default_pass_scheme = MD5-CRYPT password_query = SELECT pass FROM users WHERE userid = '%u' user_query = SELECT home, uid, gid FROM users WHERE userid = '%u' #user_query = SELECT maildir, 10000 AS uid, 10000 AS gid FROM mbox WHERE user = '%u'
Regards
On Fri, 2010-02-05 at 17:47 +0100, Jean-Francois wrote:
dovecot: Feb 05 17:39:37 Error: auth(default): mysql: Missing value in connect string: user .. and here the dovecot-sql.conf .. connect = host=/var/www/htdocs/local/sql/mysql.sock dbname=mail user=user
The error message means that the above connect string doesn't contain user=. But obviously it does above. So either you're looking at wrong file, or there's something else weird going on.
First of all check dovecot -n output. Does it show passdb sql with args value pointing to the same dovecot-sql.conf file as you're looking at?
Le vendredi 05 février 2010 19:27:19, Timo Sirainen a écrit :
On Fri, 2010-02-05 at 17:47 +0100, Jean-Francois wrote:
dovecot: Feb 05 17:39:37 Error: auth(default): mysql: Missing value in connect string: user
..
and here the dovecot-sql.conf
..
connect = host=/var/www/htdocs/local/sql/mysql.sock dbname=mail user=user
The error message means that the above connect string doesn't contain user=. But obviously it does above. So either you're looking at wrong file, or there's something else weird going on.
First of all check dovecot -n output. Does it show passdb sql with args value pointing to the same dovecot-sql.conf file as you're looking at?
Thanks. Strange, things looks ok ?
$ sudo dovecot -n # 1.0.15: /etc/dovecot.conf base_dir: /var/dovecot/ log_path: /var/log/dovecot info_log_path: /var/log/dovecot_debug ssl_cert_file: /etc/ssl/dovecotcert.pem login_dir: /var/dovecot/login login_executable: /usr/local/libexec/dovecot/imap-login login_user: _dovecot mail_location: mbox:~/:INBOX=/var/mail/%u mbox_write_locks: fcntl imap_client_workarounds: delay-newmail outlook-idle netscape-eoh tb-extra- mailbox-sep auth default: mechanisms: plain login user: nobody passdb: driver: sql args: /etc/dovecot-sql.conf userdb: driver: sql args: /etc/dovecot-sql.conf
$ ls -l /etc/dovecot* -r--r--r-- 1 root wheel 42917 Oct 18 14:31 /etc/dovecot-example.conf -r--r--r-- 1 root wheel 496 Oct 18 14:32 /etc/dovecot-openssl.cnf -r--r--r-- 1 root wheel 4625 Oct 18 14:31 /etc/dovecot-sql-example.conf -rw-rw-r-- 1 root wheel 375 Feb 4 21:16 /etc/dovecot-sql.conf -rw-rw-r-- 1 root wheel 42857 Feb 5 17:38 /etc/dovecot.conf
On Fri, 2010-02-05 at 20:09 +0100, Jean-Francois wrote:
connect = host=/var/www/htdocs/local/sql/mysql.sock dbname=mail user=user passdb: driver: sql args: /etc/dovecot-sql.conf
So the above connect string is exactly like that in /etc/dovecot-sql.conf? And there aren't multiple connect lines? What happens if you modify the connect line to for example:
connect = user=blah
Le vendredi 05 février 2010 20:15:14, vous avez écrit :
On Fri, 2010-02-05 at 20:09 +0100, Jean-Francois wrote:
connect = host=/var/www/htdocs/local/sql/mysql.sock dbname=mail user=user
passdb: driver: sql args: /etc/dovecot-sql.conf
So the above connect string is exactly like that in /etc/dovecot-sql.conf? And there aren't multiple connect lines? What happens if you modify the connect line to for example:
connect = user=blah
It works for simple one-word password. But my password is a sentence. How to put a sentence ? I tried with single and double quotes resp ' and " without success.
Le vendredi 05 février 2010 19:27:19, Timo Sirainen a écrit :
On Fri, 2010-02-05 at 17:47 +0100, Jean-Francois wrote:
dovecot: Feb 05 17:39:37 Error: auth(default): mysql: Missing value in connect string: user
..
and here the dovecot-sql.conf
..
connect = host=/var/www/htdocs/local/sql/mysql.sock dbname=mail user=user
The error message means that the above connect string doesn't contain user=. But obviously it does above. So either you're looking at wrong file, or there's something else weird going on.
First of all check dovecot -n output. Does it show passdb sql with args value pointing to the same dovecot-sql.conf file as you're looking at?
All Problem identified. If I put in dovecot-sql.conf the following it works user=abcd password=efgh
But I have a long password (a sentence) with spaces, how to put it correctly ? With quotes ' it does not work, neither with quotes ".
Thanks for help.
On Fri, 2010-02-05 at 20:28 +0100, Jean-Francois wrote:
Problem identified. If I put in dovecot-sql.conf the following it works user=abcd password=efgh
But I have a long password (a sentence) with spaces, how to put it correctly ? With quotes ' it does not work, neither with quotes ".
Passwords with spaces just aren't supported.. I didn't think anyone would want that.
participants (4)
-
Jean-Francois
-
Spyros Tsiolis
-
Steffen Kaiser
-
Timo Sirainen