fix
This commit is contained in:
7
templates/dovecot/dovecot-sql.conf.ext
Normal file
7
templates/dovecot/dovecot-sql.conf.ext
Normal file
@ -0,0 +1,7 @@
|
||||
driver = pgsql
|
||||
connect = host=db.lxc.br0tkasten.de dbname=users user=mail
|
||||
default_pass_scheme = PLAIN-MD5
|
||||
|
||||
#user_query = SELECT home, uid, gid FROM users WHERE userid = '%n'
|
||||
user_query = SELECT r.home, r.uid, r.gid FROM users r, users v WHERE v.userid = '%n' AND v.realuser = r.userid
|
||||
password_query = SELECT realuser as user, '{PLAIN-MD5}' || password as password FROM users WHERE userid = '%n'
|
86
templates/dovecot/dovecot.conf
Normal file
86
templates/dovecot/dovecot.conf
Normal file
@ -0,0 +1,86 @@
|
||||
## Dovecot configuration file
|
||||
base_dir = /var/run/dovecot/
|
||||
protocols = pop3 imap sieve
|
||||
mailbox_idle_check_interval = 15
|
||||
ssl_cert = </etc/ssl/private/mailcert.pem
|
||||
ssl_key = </etc/ssl/private/mailkey.pem
|
||||
listen = *
|
||||
|
||||
# To disable plaintext login without ssl set disable_plaintext_auth = yes
|
||||
disable_plaintext_auth = no
|
||||
ssl = yes
|
||||
default_login_user = dovecot
|
||||
|
||||
first_valid_uid = 8
|
||||
mail_location = maildir:~
|
||||
mail_access_groups = mail
|
||||
mail_privileged_group = mail
|
||||
verbose_proctitle = no # yes
|
||||
|
||||
log_path = /var/log/dovecot/access.log
|
||||
info_log_path = /var/log/dovecot/info.log
|
||||
debug_log_path = /var/log/dovecot/debug.log
|
||||
|
||||
auth_verbose = no
|
||||
auth_mechanisms = login plain
|
||||
|
||||
protocol lda {
|
||||
postmaster_address = postmaster@br0tkasten.de
|
||||
mail_plugins = $mail_plugins sieve
|
||||
}
|
||||
|
||||
service auth {
|
||||
inet_listener {
|
||||
address = 127.0.0.1
|
||||
port = 6222
|
||||
}
|
||||
}
|
||||
|
||||
passdb {
|
||||
driver = sql
|
||||
args = /etc/dovecot/dovecot-sql.conf.ext
|
||||
}
|
||||
|
||||
userdb {
|
||||
driver = sql
|
||||
args = /etc/dovecot/dovecot-sql.conf.ext
|
||||
}
|
||||
|
||||
dict {
|
||||
}
|
||||
|
||||
plugin {
|
||||
}
|
||||
|
||||
protocol imap {
|
||||
imap_idle_notify_interval = 29 mins
|
||||
}
|
||||
|
||||
protocol pop3 {
|
||||
ssl = no
|
||||
pop3_uidl_format = %08Xu%08Xv
|
||||
}
|
||||
|
||||
namespace {
|
||||
separator = .
|
||||
prefix =
|
||||
inbox = yes
|
||||
|
||||
mailbox Trash {
|
||||
auto = subscribe
|
||||
special_use = \Trash
|
||||
}
|
||||
mailbox Drafts {
|
||||
auto = subscribe
|
||||
special_use = \Drafts
|
||||
}
|
||||
mailbox Sent {
|
||||
auto = subscribe
|
||||
special_use = \Sent
|
||||
}
|
||||
mailbox Spam {
|
||||
auto = subscribe
|
||||
special_use = \Junk
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user