aports/configs/dovecot/dovecot.conf

117 lines
2.2 KiB
Plaintext

## 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
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
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
# PostgreSQL UserDB
userdb {
driver = sql
args = /etc/dovecot/redxen/pgsql.conf
}
passdb {
driver = sql
args = /etc/dovecot/redxen/pgsql.conf
}
# Services
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
group = mail
}
}
service auth {
unix_listener auth {
mode = 0660
user = dovecot
group = mail
}
user = root
}
# Mailbox
mail_home=/var/mail/%u
mail_location = maildir:/var/mail/%u:INBOX=/var/mail/%u/Inbox:LAYOUT=fs
namespace inbox {
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
}
}
#protocol lmtp {
# mail_plugins = $mail_plugins sieve
#}
#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 = /etc/dovecot/redxen/rspamd.sieve
#}