dovecot isn't reading dovecot-sql.conf.ext correctly

0

I added the following connection string to dovecot-sql.conf.ext:

connect = host=localhost dbname=<dbname> user=<dbuser> password="<password>"

The following error appears in /var/log/dovecot.log:

Apr 02 20:53:27 auth: Fatal: mysql: Missing value in connect string: XXX

Where XXX is the second word in <password>.

What is the correct way to enter a space-containing MySQL password in dovecot's configuration? (Note that the value of the password itself is fixed since it's in use by other systems.)

Christoph Burschka

Posted 2016-04-02T21:00:32.717

Reputation: 111

Answers

0

Update: It appears that dovecot implements an extremely primitive string-splitting function that has no support for escape sequences or quotes.

The only workaround is creating an extra mysql user just for dovecot with the spaces replaced with a different delimiter.

Christoph Burschka

Posted 2016-04-02T21:00:32.717

Reputation: 111