added global spam filtering script

This commit is contained in:
Rouven Seifert 2023-09-27 11:03:10 +02:00
parent 71f4c64022
commit 201fef3084
Signed by: rouven.seifert
GPG key ID: B95E8FE6B11C4D09

View file

@ -177,6 +177,17 @@ in
modules = [ modules = [
pkgs.dovecot_pigeonhole pkgs.dovecot_pigeonhole
]; ];
sievesScripts = {
before = pkgs.WriteText "spam.sieve" ''
require "fileinto";
if anyof(
header :contains "x-spam-flag" "yes",
header :contains "X-Spam-Status" "Yes"){
fileinto "Spam";
}
'';
};
extraConfig = '' extraConfig = ''
auth_username_format = %Ln auth_username_format = %Ln
passdb { passdb {