From 2b400a9269ed2f573fac99364ffacc1c4553a7fb Mon Sep 17 00:00:00 2001 From: Claude Brisson Date: Tue, 20 Jun 2023 14:37:31 +0300 Subject: [PATCH] Fix sieve setup (#3397) --- target/scripts/startup/setup.d/security/misc.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/target/scripts/startup/setup.d/security/misc.sh b/target/scripts/startup/setup.d/security/misc.sh index 26eb0998..b1fa4860 100644 --- a/target/scripts/startup/setup.d/security/misc.sh +++ b/target/scripts/startup/setup.d/security/misc.sh @@ -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"];