How to correctly use readonly=yes with the sqlite driver?

oddlama oddlama at oddlama.org
Sat Jul 23 23:07:20 UTC 2022


Hi! I want to use a sqlite database in readonly mode, which I found mentionend in the docs [1]. Unfortunately no examples were given, so I tried to infer the usage by inspecting core/driver-sqlite.c. If I interpret it correctly, this should have worked:

/etc/dovecot/dovecot-sql.conf.ext:
driver = sqlite
connect = readonly=yes /var/vmail/virtual.sqlite

user_query = #...


Unfortunately, dovecot tries to open a file named "readonly=yes /var/vmail/virtual.sqlite" instead. I have no idea why the option is not parsed. Is this a bug or am I using the feature incorrectly?

Best regards,
oddlama

[1]: https://doc.dovecot.org/settings/plugin/sql-sqlite/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://dovecot.org/pipermail/dovecot/attachments/20220723/3d33ddd8/attachment.htm>


More information about the dovecot mailing list