122 lines
2.2 KiB
Plaintext
122 lines
2.2 KiB
Plaintext
# $YakumoLabs$
|
|
|
|
## Listen on all available addresses (v4/v6)
|
|
listen = *, ::
|
|
|
|
## Dovecot stores the unix sockets on this place
|
|
base_dir = /var/run/dovecot
|
|
|
|
## Your server's hostname, usually the root domain
|
|
hostname = %%DOMAIN%%
|
|
|
|
## Server's instance name, it can be named anything
|
|
instance_name = dovecot
|
|
|
|
## Space-separated list of mail protocols supported
|
|
protocols = imap lmtp pop3
|
|
|
|
## SSL/TLS configuration
|
|
ssl = yes
|
|
ssl_cert = <%%PATH_TO_LETSENCRYPT%%/%%DOMAIN%%/fullchain.pem
|
|
ssl_key = <%%PATH_TO_LETSENCRYPT%%/%%DOMAIN%%/privkey.pem
|
|
|
|
## Authentication settings
|
|
auth_mechanisms = plain login
|
|
auth_username_chars = abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ01234567890.-_@
|
|
auth_username_format = %n
|
|
disable_plaintext_auth = yes
|
|
|
|
## Change the following to the ones your system has
|
|
first_valid_uid = 8 #
|
|
last_valid_uid = 8
|
|
first_valid_gid = 12
|
|
last_valid_gid = 12
|
|
|
|
lda_mailbox_autocreate = yes
|
|
imap_capability = +SPECIAL-USE
|
|
|
|
userdb {
|
|
driver = sql
|
|
args = %%PATH_TO_DOVECOT_ETC_PREFIX%%/pgsql.conf
|
|
}
|
|
passdb {
|
|
driver = sql
|
|
args = %%PATH_TO_DOVECOT_ETC_PREFIX%%/pgsql.conf
|
|
}
|
|
|
|
## Services declared in the protocols field
|
|
service imap-login {
|
|
inet_listener imap {
|
|
port = 143
|
|
}
|
|
inet_listener imaps {
|
|
port = 993
|
|
ssl = yes
|
|
}
|
|
}
|
|
service lmtp {
|
|
unix_listener lmtp {
|
|
mode = 0660
|
|
user = dovecot
|
|
group = mail
|
|
}
|
|
}
|
|
service pop3-login {
|
|
inet_listener pop3 {
|
|
port = 110
|
|
}
|
|
inet_listener pop3s {
|
|
port = 993
|
|
ssl = yes
|
|
}
|
|
}
|
|
protocol lmtp {
|
|
mail_plugins = $mail_plugins sieve
|
|
}
|
|
service auth {
|
|
unix_listener auth {
|
|
mode = 0660
|
|
user = dovecot
|
|
group = mail
|
|
}
|
|
user = root
|
|
}
|
|
## Mailbox locations
|
|
mail_home=/var/vmail/%u
|
|
mail_location = maildir:/var/vmail/%d/%n/Maildir
|
|
mailbox_list_index = yes
|
|
mail_uid = vmail
|
|
mail_gid = vmail
|
|
|
|
namespace inbox {
|
|
type = private
|
|
inbox = yes
|
|
mailbox Archive {
|
|
special_use = \Archive
|
|
auto = create
|
|
}
|
|
mailbox Drafts {
|
|
special_use = \Drafts
|
|
auto = create
|
|
}
|
|
mailbox Sent {
|
|
special_use = \Sent
|
|
auto = create
|
|
}
|
|
mailbox Junk {
|
|
special_use = \Junk
|
|
auto = create
|
|
autoexpunge = 30d
|
|
}
|
|
mailbox Trash {
|
|
special_use = \Trash
|
|
auto = create
|
|
autoexpunge = 7d
|
|
}
|
|
}
|
|
|
|
## Plugins
|
|
plugin {
|
|
sieve_after = %%PATH_TO_DOVECOT_ETC_PREFIX%%/sieve
|
|
}
|