1
0
mirror of https://github.com/Mailu/Mailu.git synced 2024-12-14 10:53:30 +02:00
Mailu/core/dovecot/conf/dovecot.conf

177 lines
3.5 KiB
Plaintext
Raw Normal View History

2016-02-17 23:56:40 +02:00
###############
# General
###############
log_path = /dev/stderr
protocols = imap pop3 lmtp sieve
postmaster_address = {{ POSTMASTER }}@{{ DOMAIN }}
2017-09-24 17:49:39 +02:00
hostname = {{ HOSTNAMES.split(",")[0] }}
2018-03-28 23:03:41 +02:00
submission_host = {{ FRONT_ADDRESS }}
2016-02-17 23:56:40 +02:00
2018-08-05 18:59:57 +02:00
###############
# Full-text search
###############
mail_plugins = $mail_plugins fts fts_lucene
plugin {
fts = lucene
fts_autoindex = yes
fts_autoindex_exclude = \Junk
fts_lucene = whitespace_chars=@.
}
2016-02-17 23:56:40 +02:00
###############
# Mailboxes
###############
first_valid_gid = 8
first_valid_uid = 8
mail_location = maildir:/mail/%u
mail_home = /mail/%u
2016-02-17 23:56:40 +02:00
mail_uid = mail
mail_gid = mail
mail_privileged_group = mail
mail_access_groups = mail
maildir_stat_dirs = yes
2018-04-21 17:19:44 +02:00
mailbox_list_index = yes
mail_vsize_bg_after_count = 100
2018-08-05 19:48:24 +02:00
mail_plugins = $mail_plugins quota quota_clone zlib
2016-02-17 23:56:40 +02:00
2016-02-21 16:07:12 +02:00
namespace inbox {
inbox = yes
2018-07-26 21:41:11 +02:00
{% for mailbox in ("Trash", "Drafts", "Sent", "Junk") %}
mailbox {{ mailbox }} {
2016-02-21 16:07:12 +02:00
auto = subscribe
2018-07-26 21:41:11 +02:00
special_use = \{{ mailbox }}
2016-02-21 16:07:12 +02:00
}
2018-07-26 21:41:11 +02:00
{% endfor %}
2016-02-21 16:07:12 +02:00
}
2018-04-21 17:19:44 +02:00
plugin {
quota = count:User quota
quota_vsizes = yes
2018-07-26 21:41:11 +02:00
quota_clone_dict = proxy:/tmp/podop.socket:quota
2018-08-05 19:48:24 +02:00
{% if COMPRESSION in [ 'gz', 'bz2' ] %}
zlib_save = {{ COMPRESSION }}
{% endif %}
{% if COMPRESSION_LEVEL %}
zlib_save_level = {{ COMPRESSION_LEVEL }}
{% endif %}
2018-04-21 17:19:44 +02:00
}
2016-02-17 23:56:40 +02:00
###############
# Authentication
###############
auth_mechanisms = plain login
disable_plaintext_auth = no
2016-02-17 23:56:40 +02:00
passdb {
2018-07-26 21:41:11 +02:00
driver = dict
args = /etc/dovecot/auth.conf
2016-02-17 23:56:40 +02:00
}
userdb {
2018-07-26 21:41:11 +02:00
driver = dict
args = /etc/dovecot/auth.conf
2016-02-17 23:56:40 +02:00
}
service auth {
user = dovecot
unix_listener auth-userdb {
}
}
service auth-worker {
unix_listener auth-worker {
user = dovecot
group = mail
2016-02-17 23:56:40 +02:00
mode = 0660
}
user = mail
}
###############
# IMAP & POP
2016-02-17 23:56:40 +02:00
###############
protocol imap {
mail_plugins = $mail_plugins imap_quota imap_sieve
2016-02-17 23:56:40 +02:00
}
protocol pop3 {
}
2016-02-17 23:56:40 +02:00
service imap-login {
inet_listener imap {
port = 143
}
}
###############
# Delivery
###############
protocol lmtp {
2016-02-21 16:07:12 +02:00
mail_plugins = $mail_plugins sieve
recipient_delimiter = {{ RECIPIENT_DELIMITER }}
2016-02-17 23:56:40 +02:00
}
service lmtp {
inet_listener lmtp {
port = 2525
2016-02-17 23:56:40 +02:00
}
}
###############
# Filtering
###############
service managesieve-login {
inet_listener sieve {
2016-02-17 23:56:40 +02:00
port = 4190
}
}
service managesieve {
}
2016-02-17 23:56:40 +02:00
plugin {
2018-10-17 17:41:21 +02:00
sieve = file:~/sieve;active=~/.dovecot.sieve
sieve_before = dict:proxy:/tmp/podop.socket:sieve
2018-07-26 21:41:11 +02:00
sieve_plugins = sieve_imapsieve sieve_extprograms
sieve_extensions = +spamtest +spamtestplus +editheader
sieve_global_extensions = +vnd.dovecot.execute
# Sieve execute
2018-09-27 16:13:02 +02:00
sieve_execute_bin_dir = /conf/bin
# Send vacation replies even for aliases
# See the Pigeonhole documentation about warnings: http://wiki2.dovecot.org/Pigeonhole/Sieve/Extensions/Vacation
# It appears that our implemntation of mail delivery meets criteria of section 4.5
# from RFC 5230 and that disabling the recipient checks is not an issue here.
sieve_vacation_dont_check_recipient = yes
# Include the recipient in vacation replies so that DKIM applies
sieve_vacation_send_from_recipient = yes
# extract spam score from headers
sieve_spamtest_status_type = strlen
sieve_spamtest_status_header = X-Spam-Level
sieve_spamtest_max_value = 15
# Learn from spam
imapsieve_mailbox1_name = Junk
imapsieve_mailbox1_causes = COPY
2018-09-27 16:13:02 +02:00
imapsieve_mailbox1_before = file:/conf/report-spam.sieve
imapsieve_mailbox2_name = *
imapsieve_mailbox2_from = Junk
imapsieve_mailbox2_causes = COPY
2018-09-27 16:13:02 +02:00
imapsieve_mailbox2_before = file:/conf/report-ham.sieve
}
###############
# Extensions
###############
!include_try /overrides/dovecot.conf