aports/configs/dovecot/dovecot.conf

107 lines
2.1 KiB
Plaintext
Raw Normal View History

2021-01-05 02:07:09 +00:00
## Dovecot configuration file
listen = *, ::
base_dir = /run/dovecot/
instance_name = redxen-production
login_greeting = RedXen Mail ready. DO NOT MESS WITH US OR WE WILL CUT YOUR BALLS OFF!
protocols = imap lmtp
# TLS stuff
2021-01-05 02:07:09 +00:00
ssl = yes
ssl_cert = </etc/ssl/redxen/letsencrypt/chain.crt
ssl_key = </etc/ssl/redxen/letsencrypt/private.key
auth_mechanisms = plain login digest-md5 scram-sha-256
2021-01-05 02:07:09 +00:00
disable_plaintext_auth = yes
auth_username_format = %n
first_valid_uid = 8
last_valid_uid = 8
first_valid_gid = 12
last_valid_gid = 12
lda_mailbox_autocreate = yes
imap_capability = +SPECIAL-USE
2021-01-05 02:07:09 +00:00
# PostgreSQL UserDB
2021-01-05 02:07:09 +00:00
userdb {
driver = sql
args = /etc/dovecot/redxen/pgsql.conf
}
passdb {
driver = sql
args = /etc/dovecot/redxen/pgsql.conf
}
# Services
2021-01-05 02:07:09 +00:00
service imap-login {
inet_listener imap {
#address = none
port = 143
}
inet_listener imaps {
#address = none
port = 993
ssl = yes
}
}
service lmtp {
unix_listener lmtp {
mode = 0660
user = dovecot
2021-01-05 04:18:24 +00:00
group = mail
2021-01-05 02:07:09 +00:00
}
}
#protocol lmtp {
# mail_plugins = $mail_plugins sieve
#}
# Mailbox
mail_home=/var/mail/%u
mail_location = maildir:/var/mail/%u:INBOX=/var/mail/%u/Inbox:LAYOUT=fs
2021-01-05 02:07:09 +00:00
namespace inbox {
inbox = yes
mailbox Archive {
special_use = \Archive
auto = create
}
2021-01-05 02:07:09 +00:00
mailbox Drafts {
special_use = \Drafts
auto = create
}
mailbox Sent {
special_use = \Sent
auto = create
2021-01-05 02:07:09 +00:00
}
mailbox Junk {
special_use = \Junk
auto = create
2021-01-05 02:07:09 +00:00
autoexpunge = 30d
}
mailbox Trash {
special_use = \Trash
auto = create
2021-01-05 02:07:09 +00:00
autoexpunge = 7d
}
}
#plugin {
# sieve_plugins = sieve_extprograms
# sieve_extensions = +editheader +mboxmetadata +servermetadata +imapflags +notify +spamtest +spamtestplus +virustest
#
# sieve_spamtest_status_type = score
# sieve_spamtest_status_header = X-Spamd-Result: .*? \[([[:digit:]]+\.[[:digit:]]+) / [[:digit:]]+\.[[:digit:]]+\];
# sieve_spamtest_max_value = 6
# sieve_spamtest_max_header = X-Spamd-Result: .*? \[[[:digit:]]+\.[[:digit:]]+ / ([[:digit:]]+\.[[:digit:]]+)\];
#
# sieve_spamtest_status_type = text
# sieve_spamtest_status_header = X-Spam
# sieve_spamtest_text_value1 = No
# sieve_spamtest_text_value10 = Yes
# sieve_default = rspamd.sieve
#}