adjustments to dovecot-sql config template; correct enctype for form
Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
This commit is contained in:
@@ -2690,7 +2690,7 @@ driver = mysql
|
|||||||
# connect = host=sql.example.com dbname=virtual user=virtual password=blarg
|
# connect = host=sql.example.com dbname=virtual user=virtual password=blarg
|
||||||
# connect = /etc/dovecot/authdb.sqlite
|
# connect = /etc/dovecot/authdb.sqlite
|
||||||
#
|
#
|
||||||
connect = host=<SQL_HOST> dbname=<SQL_DB> user=<SQL_UNPRIVILEGED_USER> password=<SQL_UNPRIVILEGED_PASSWORD>
|
connect = "host=<SQL_HOST> dbname=<SQL_DB> user=<SQL_UNPRIVILEGED_USER> password=<SQL_UNPRIVILEGED_PASSWORD>"
|
||||||
|
|
||||||
# Default password scheme.
|
# Default password scheme.
|
||||||
#
|
#
|
||||||
|
|||||||
@@ -2472,7 +2472,7 @@ dovecot unix - n n - - pipe
|
|||||||
chown="root:root" chmod="0600" backup="true">
|
chown="root:root" chmod="0600" backup="true">
|
||||||
<content><![CDATA[
|
<content><![CDATA[
|
||||||
driver = mysql
|
driver = mysql
|
||||||
connect = host=<SQL_HOST> dbname=<SQL_DB> user=<SQL_UNPRIVILEGED_USER> password=<SQL_UNPRIVILEGED_PASSWORD>
|
connect = "host=<SQL_HOST> dbname=<SQL_DB> user=<SQL_UNPRIVILEGED_USER> password=<SQL_UNPRIVILEGED_PASSWORD>"
|
||||||
#default_pass_scheme = CRYPT
|
#default_pass_scheme = CRYPT
|
||||||
user_query = SELECT CONCAT(homedir, maildir) AS home, CONCAT('maildir:', homedir, maildir) AS mail, uid, gid, CONCAT('*:storage=', quota, 'M') as quota_rule FROM mail_users WHERE (username = '%u' OR email = '%u')
|
user_query = SELECT CONCAT(homedir, maildir) AS home, CONCAT('maildir:', homedir, maildir) AS mail, uid, gid, CONCAT('*:storage=', quota, 'M') as quota_rule FROM mail_users WHERE (username = '%u' OR email = '%u')
|
||||||
password_query = SELECT username AS user, password_enc AS password, CONCAT(homedir, maildir) AS userdb_home, uid AS userdb_uid, gid AS userdb_gid, CONCAT('maildir:', homedir, maildir) AS userdb_mail, CONCAT('*:storage=', quota, 'M') as userdb_quota_rule FROM mail_users WHERE (username = '%u' OR email = '%u') AND ((imap = 1 AND '%Ls' = 'imap') OR (pop3 = 1 AND '%Ls' = 'pop3') OR ((postfix = 'Y' AND '%Ls' = 'smtp') OR (postfix = 'Y' AND '%Ls' = 'sieve')))
|
password_query = SELECT username AS user, password_enc AS password, CONCAT(homedir, maildir) AS userdb_home, uid AS userdb_uid, gid AS userdb_gid, CONCAT('maildir:', homedir, maildir) AS userdb_mail, CONCAT('*:storage=', quota, 'M') as userdb_quota_rule FROM mail_users WHERE (username = '%u' OR email = '%u') AND ((imap = 1 AND '%Ls' = 'imap') OR (pop3 = 1 AND '%Ls' = 'pop3') OR ((postfix = 'Y' AND '%Ls' = 'smtp') OR (postfix = 'Y' AND '%Ls' = 'sieve')))
|
||||||
|
|||||||
@@ -2652,7 +2652,7 @@ driver = mysql
|
|||||||
# connect = host=sql.example.com dbname=virtual user=virtual password=blarg
|
# connect = host=sql.example.com dbname=virtual user=virtual password=blarg
|
||||||
# connect = /etc/dovecot/authdb.sqlite
|
# connect = /etc/dovecot/authdb.sqlite
|
||||||
#
|
#
|
||||||
connect = host=<SQL_HOST> dbname=<SQL_DB> user=<SQL_UNPRIVILEGED_USER> password=<SQL_UNPRIVILEGED_PASSWORD>
|
connect = "host=<SQL_HOST> dbname=<SQL_DB> user=<SQL_UNPRIVILEGED_USER> password=<SQL_UNPRIVILEGED_PASSWORD>"
|
||||||
|
|
||||||
# Default password scheme.
|
# Default password scheme.
|
||||||
#
|
#
|
||||||
|
|||||||
@@ -2652,7 +2652,7 @@ driver = mysql
|
|||||||
# connect = host=sql.example.com dbname=virtual user=virtual password=blarg
|
# connect = host=sql.example.com dbname=virtual user=virtual password=blarg
|
||||||
# connect = /etc/dovecot/authdb.sqlite
|
# connect = /etc/dovecot/authdb.sqlite
|
||||||
#
|
#
|
||||||
connect = host=<SQL_HOST> dbname=<SQL_DB> user=<SQL_UNPRIVILEGED_USER> password=<SQL_UNPRIVILEGED_PASSWORD>
|
connect = "host=<SQL_HOST> dbname=<SQL_DB> user=<SQL_UNPRIVILEGED_USER> password=<SQL_UNPRIVILEGED_PASSWORD>"
|
||||||
|
|
||||||
# Default password scheme.
|
# Default password scheme.
|
||||||
#
|
#
|
||||||
|
|||||||
@@ -2106,7 +2106,7 @@ driver = mysql
|
|||||||
# connect = host=sql.example.com dbname=virtual user=virtual password=blarg
|
# connect = host=sql.example.com dbname=virtual user=virtual password=blarg
|
||||||
# connect = /etc/dovecot/authdb.sqlite
|
# connect = /etc/dovecot/authdb.sqlite
|
||||||
#
|
#
|
||||||
connect = host=<SQL_HOST> dbname=<SQL_DB> user=<SQL_UNPRIVILEGED_USER> password=<SQL_UNPRIVILEGED_PASSWORD>
|
connect = "host=<SQL_HOST> dbname=<SQL_DB> user=<SQL_UNPRIVILEGED_USER> password=<SQL_UNPRIVILEGED_PASSWORD>"
|
||||||
|
|
||||||
# Default password scheme.
|
# Default password scheme.
|
||||||
#
|
#
|
||||||
|
|||||||
@@ -2097,7 +2097,7 @@ protocol lda {
|
|||||||
chown="root:root" chmod="0600" backup="true">
|
chown="root:root" chmod="0600" backup="true">
|
||||||
<content><![CDATA[
|
<content><![CDATA[
|
||||||
driver = mysql
|
driver = mysql
|
||||||
connect = host=<SQL_HOST> dbname=<SQL_DB> user=<SQL_UNPRIVILEGED_USER> password=<SQL_UNPRIVILEGED_PASSWORD>
|
connect = "host=<SQL_HOST> dbname=<SQL_DB> user=<SQL_UNPRIVILEGED_USER> password=<SQL_UNPRIVILEGED_PASSWORD>"
|
||||||
#default_pass_scheme = CRYPT
|
#default_pass_scheme = CRYPT
|
||||||
password_query = "SELECT username AS user, password_enc AS password, CONCAT(homedir, maildir) AS userdb_home, uid AS userdb_uid, gid AS userdb_gid, CONCAT('maildir:', homedir, maildir) AS userdb_mail, CONCAT('*:storage=', quota,'M') AS userdb_quota_rule FROM mail_users WHERE (username = '%u' OR email = '%u') AND ((imap = 1 AND '%Ls' = 'imap') OR (pop3 = 1 AND '%Ls' = 'pop3') OR ((postfix = 'Y' AND '%Ls' = 'smtp') OR (postfix = 'Y' AND '%Ls' = 'sieve')))"
|
password_query = "SELECT username AS user, password_enc AS password, CONCAT(homedir, maildir) AS userdb_home, uid AS userdb_uid, gid AS userdb_gid, CONCAT('maildir:', homedir, maildir) AS userdb_mail, CONCAT('*:storage=', quota,'M') AS userdb_quota_rule FROM mail_users WHERE (username = '%u' OR email = '%u') AND ((imap = 1 AND '%Ls' = 'imap') OR (pop3 = 1 AND '%Ls' = 'pop3') OR ((postfix = 'Y' AND '%Ls' = 'smtp') OR (postfix = 'Y' AND '%Ls' = 'sieve')))"
|
||||||
user_query = "SELECT CONCAT(homedir, maildir) AS home, CONCAT('maildir:', homedir, maildir) AS mail, uid, gid, CONCAT('*:storage=', quota,'M') AS quota_rule FROM mail_users WHERE (username = '%u' OR email = '%u')"
|
user_query = "SELECT CONCAT(homedir, maildir) AS home, CONCAT('maildir:', homedir, maildir) AS mail, uid, gid, CONCAT('*:storage=', quota,'M') AS quota_rule FROM mail_users WHERE (username = '%u' OR email = '%u')"
|
||||||
|
|||||||
@@ -2106,7 +2106,7 @@ driver = mysql
|
|||||||
# connect = host=sql.example.com dbname=virtual user=virtual password=blarg
|
# connect = host=sql.example.com dbname=virtual user=virtual password=blarg
|
||||||
# connect = /etc/dovecot/authdb.sqlite
|
# connect = /etc/dovecot/authdb.sqlite
|
||||||
#
|
#
|
||||||
connect = host=<SQL_HOST> dbname=<SQL_DB> user=<SQL_UNPRIVILEGED_USER> password=<SQL_UNPRIVILEGED_PASSWORD>
|
connect = "host=<SQL_HOST> dbname=<SQL_DB> user=<SQL_UNPRIVILEGED_USER> password=<SQL_UNPRIVILEGED_PASSWORD>"
|
||||||
|
|
||||||
# Default password scheme.
|
# Default password scheme.
|
||||||
#
|
#
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
{% import "Froxlor/form/formfields.html.twig" as formfields %}
|
{% import "Froxlor/form/formfields.html.twig" as formfields %}
|
||||||
|
|
||||||
<form action="{{ formaction|default("") }}" method="post" enctype="application/x-www-form-urlencoded" class="form">
|
<form action="{{ formaction|default("") }}" method="post" enctype="multipart/form-data" class="form">
|
||||||
{% for sid,section in form_data.sections %}
|
{% for sid,section in form_data.sections %}
|
||||||
{% if section.visible is not defined or (section.visible is defined and section.visible == true) %}
|
{% if section.visible is not defined or (section.visible is defined and section.visible == true) %}
|
||||||
<div class="card mb-3" id="{{ idprefix }}{{ sid }}">
|
<div class="card mb-3" id="{{ idprefix }}{{ sid }}">
|
||||||
|
|||||||
Reference in New Issue
Block a user