Skip to content

Commit

Permalink
Merge pull request #5983 from mailcow/fix/sieve-compiling
Browse files Browse the repository at this point in the history
dovecot: fix precompiling of sieve scripts
  • Loading branch information
DerLinkman authored Aug 6, 2024
2 parents 10077ec + c918726 commit f8de520
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
8 changes: 0 additions & 8 deletions data/Dockerfiles/dovecot/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -407,14 +407,6 @@ sievec /var/vmail/sieve/global_sieve_after.sieve
sievec /usr/lib/dovecot/sieve/report-spam.sieve
sievec /usr/lib/dovecot/sieve/report-ham.sieve

for file in /var/vmail/*/*/sieve/*.sieve ; do
if [[ "$file" == "/var/vmail/*/*/sieve/*.sieve" ]]; then
continue
fi
sievec "$file" "$(dirname "$file")/../.dovecot.svbin"
chown vmail:vmail "$(dirname "$file")/../.dovecot.svbin"
done

# Fix permissions
chown root:root /etc/dovecot/sql/*.conf
chown root:dovecot /etc/dovecot/sql/dovecot-dict-sql-sieve* /etc/dovecot/sql/dovecot-dict-sql-quota* /etc/dovecot/lua/passwd-verify.lua
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ services:
- sogo

dovecot-mailcow:
image: mailcow/dovecot:1.30
image: mailcow/dovecot:2.0
depends_on:
- mysql-mailcow
- netfilter-mailcow
Expand Down

0 comments on commit f8de520

Please sign in to comment.