Commit a336f581 authored by MrMan's avatar MrMan

Working dovecot

parent 79e799cd
Pipeline #50064719 passed with stage
in 6 minutes and 30 seconds
......@@ -279,15 +279,13 @@ impl SupportsVMailboxLookup for SQLiteDB {
}
// FIXME: mailbox_users table name is hardcoded here
const DEFAULT_USERDB_QUERY: &'static str = "
SELECT home, uid, gid \
const DEFAULT_USERDB_QUERY: &'static str = "SELECT home, uid, gid \
FROM users \
WHERE username = '%n' AND domain = '%d'
";
// FIXME: mailbox_users table name is hardcoded here
const DEFAULT_PASSDB_QUERY: &'static str = "
SELECT username, domain, password \
const DEFAULT_PASSDB_QUERY: &'static str = "SELECT username, domain, password \
FROM mailbox_users \
WHERE username = '%n' AND domain = '%d'
";
......
{% match userdb %}
{% when Some with (userdb_settings) %}
userdb {
driver = {{ userdb_settings.driver.clone().dovecot_setting_name() }}
driver = sql
args = {{ userdb_conf_abs_path }}
}
{% when None %}
......@@ -10,7 +10,7 @@ userdb {
{% match passdb %}
{% when Some with (passdb_settings) %}
passdb {
driver = {{ passdb_settings.driver.clone().dovecot_setting_name() }}
driver = sql
args = {{ passdb_conf_abs_path }}
}
{% when None %}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment