Merge pull request #1481 from youtous/fix-sieve-folder

Prevent sieve symlink to be evaluated as a directory by dovecot
This commit is contained in:
Erik Wramner 2020-05-02 08:09:09 +02:00 committed by GitHub
commit 23eb7c42ab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 1 deletions

View File

@ -250,7 +250,12 @@ mail_plugins = $mail_plugins quota
# This is done by stat()ing each entry, so it causes more disk I/O.
# (For systems setting struct dirent->d_type, this check is free and it's
# done always regardless of this setting)
#maildir_stat_dirs = no
# -------
# tomav/docker-mailserver:
# Seen dovecot-sieve is always enabled, setting `maildir_stat_dirs = yes` permits
# to avoid `/var/mail/domain.tld/user/.dovecot.sieve` (symlink) to be treated as a directory (default behavior).
# According to https://github.com/Mailu/Mailu/issues/143#issuecomment-274596931, there is no noticeable impact when this is enabled.
maildir_stat_dirs = yes
# When copying a message, do it with hard links whenever possible. This makes
# the performance much better, and it's unlikely to have any side effects.