1
1
mirror of https://github.com/docker-mailserver/docker-mailserver synced 2024-10-18 10:18:07 +02:00

Fix sieve setup (#3397)

This commit is contained in:
Claude Brisson 2023-06-20 14:37:31 +03:00 committed by GitHub
parent 4dae83b256
commit 2b400a9269
Signed by: GitHub
GPG Key ID: 4AEE18F83AFDEB23

@ -252,6 +252,7 @@ function __setup__security__amavis() {
function _setup_spam_to_junk() {
if [[ ${MOVE_SPAM_TO_JUNK} -eq 1 ]]; then
_log 'debug' 'Spam emails will be moved to the Junk folder'
mkdir -p /usr/lib/dovecot/sieve-global/after/
cat >/usr/lib/dovecot/sieve-global/after/spam_to_junk.sieve << EOF
require ["fileinto","mailbox"];