email_server: Use rollback journal for aliases sqlite DB

WAL journaling mode is causing problems with postfix unable to open the database
despite ownership and permission changes. Default is the DELETE rollback journal
mode. The former gives more performance but in our case, writes are very rare
and the DB is used mostly just for reads.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
Sunil Mohan Adapa 2021-10-26 10:21:02 -07:00 committed by James Valleroy
parent 8d7bac70c9
commit d6a9392704
No known key found for this signature in database
GPG Key ID: 77C0C75E7B650808

View File

@ -102,7 +102,6 @@ def first_setup():
# Create schema if not exists
query = '''
PRAGMA journal_mode=WAL;
BEGIN;
CREATE TABLE IF NOT EXISTS alias (
name TEXT NOT NULL,