added global spam filtering script
This commit is contained in:
parent
71f4c64022
commit
201fef3084
|
@ -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 {
|
||||||
|
|
Loading…
Reference in a new issue