Add local sieve file
All checks were successful
ShellCheck / shellcheck (push) Successful in 37s

This commit is contained in:
Mathieu Strypsteen 2024-08-28 21:29:52 +02:00
parent 03558092ac
commit ed18297690
Signed by: mathieu
GPG key ID: 782A42E461BC6824
3 changed files with 3 additions and 6 deletions

View file

@ -1,10 +1,5 @@
require "body";
require "fileinto"; require "fileinto";
if header :contains "X-Spam" "Yes" { if header :contains "X-Spam" "Yes" {
fileinto "Junk"; fileinto "Junk";
} }
if body :contains ["change your password", "secure your account"] {
fileinto "Junk";
}

View file

@ -35,7 +35,8 @@ plugin {
mail_crypt_save_version = 2 mail_crypt_save_version = 2
mail_crypt_curve = secp521r1 mail_crypt_curve = secp521r1
mail_crypt_require_encrypted_user_key = true mail_crypt_require_encrypted_user_key = true
sieve_default = file:/etc/dovecot/default.sieve sieve_before = file:/etc/dovecot/default.sieve
sieve_default = file:/tmp/local.sieve
} }
namespace inbox { namespace inbox {
inbox = yes inbox = yes

View file

@ -3,6 +3,7 @@ Image=git.strypsteen.com/mathieu/dovecot
Network=mail.network Network=mail.network
Volume=/etc/certificates:/etc/certificates:z,ro Volume=/etc/certificates:/etc/certificates:z,ro
Volume=/var/lib/container-data/dovecot:/etc/dovecot-local:z,ro Volume=/var/lib/container-data/dovecot:/etc/dovecot-local:z,ro
Volume=/var/lib/container-data/dovecot/local.sieve:/tmp/local.sieve:z,ro
Volume=dovecot.volume:/srv/mail:U,Z Volume=dovecot.volume:/srv/mail:U,Z
Tmpfs=/var/lib/dovecot Tmpfs=/var/lib/dovecot
PublishPort=993:993 PublishPort=993:993