On Wed, 2025-02-12 at 07:32 +0200, Aki Tuomi wrote:
>
> Do you have something under conf.d?
Here are all the files under conf.d with almost all the superfluous
comments deleted.
10-auth.conf:
passdb sql {
query = SELECT username AS user, password FROM mailbox WHERE username =
'%{user}' AND active='1'
query = SELECT maildir, 2000 AS uid, 2000 AS gid FROM mailbox WHERE
username = '%{user}' AND active= '1'}
10-mail.conf:
mail_driver = maildir
mail_home = %{home}
mail_path = ~/mail
mail_inbox_path = /var/vmail/%{user | username }
mailbox_list_utf8 = yes
namespace inbox {
separator = /
inbox = yes
}
10-ssl.conf:
ssl = required
ssl_server_prefer_ciphers = server
15-mailboxes.conf:
namespace inbox {
# These mailboxes are widely used and could perhaps be created
automatically:
mailbox Drafts {
auto = create
special_use = \Drafts
}
mailbox Junk {
auto = create
special_use = \Junk
}
mailbox Trash {
auto = create
special_use = \Trash
}
# For \Sent mailboxes there are two widely used names. We'll mark both
of
# them as \Sent. User typically deletes one of them if duplicates are
created.
mailbox Sent {
auto = create
special_use = \Sent
20-imap.conf:
protocols {
imap = yes
}
20-lmtp.conf:
protocols {
lmtp = yes
}
20-managesieve.conf:
protocols {
sieve = yes
}
auth-checkpassword.conf.ext:
passdb passwords {
driver = checkpassword
args = /usr/bin/checkpassword
}
# passdb lookup should return also userdb info
userdb users {
driver = prefetch
}
auth-deny.conf.ext:
passdb passwd-file {
driver = passwd-file
deny = yes
# File contains a list of usernames, one per line
args = /etc/dovecot/deny-users
}
auth-dict.conf.ext:
passdb AuthDatabase {
driver = dict
# Path for dict configuration file, see
# example-config/dovecot-dict-auth.conf.ext
args = /etc/dovecot/dovecot-dict-auth.conf.ext
}
userdb AuthDict {
driver = dict
args = /etc/dovecot/dovecot-dict-auth.conf.ext
}
auth-master.conf.ext:
passdb passwd-file {
driver = passwd-file
master = yes
args = /etc/dovecot/master-users
# Unless you're using PAM, you probably still want the destination user
to
# be looked up from passdb that it really exists. pass=yes does that.
pass = yes
}
auth.passwdfile.conf.ext:
passdb PasswdFile {
driver = passwd-file
args = scheme=CRYPT username_format=%u /etc/dovecot/users
}
userdb PasswdFile {
driver = passwd-file
args = username_format=%u /etc/dovecot/users
}
auth-sql.conf.ext:
passdb SQL {
driver = sql
# Path for SQL configuration file, see example-config/dovecot-
sql.conf.ext
args = /etc/dovecot/dovecot-sql.conf.ext
}
userdb SQL {
driver = sql
args = /etc/dovecot/dovecot-sql.conf.ext
}
auth-system.conf.ext:
passdb PAM {
driver = pam
# [session=yes] [setcred=yes] [failure_show_msg=yes] [max_requests=<n>]
# [cache_key=<key>] [<service name>]
#args = dovecot
}
userdb PAM {
# <doc/wiki/AuthDatabase.Passwd.txt>
driver = passwd
# [blocking=no]
#args =
# Override fields from passwd
#override_fields = home=/home/virtual/%u
}
>
_______________________________________________
dovecot mailing list -- [email protected]
To unsubscribe send an email to [email protected]