Merge remote-tracking branch 'origin/dev' into forwardinghosts

This commit is contained in:
Michael Kuron
2017-04-22 18:13:58 +02:00
14 changed files with 818 additions and 194 deletions

View File

@@ -231,8 +231,11 @@ while ($row = array_shift($rows)) {
}
?>
apply "default" {
MAILCOW_MOO = -999.0;
MAILCOW_WHITE = -999.0;
}
symbols [
"MAILCOW_WHITE"
]
}
<?php
}
@@ -326,10 +329,13 @@ while ($row = array_shift($rows)) {
}
?>
apply "default" {
MAILCOW_MOO = 999.0;
MAILCOW_BLACK = 999.0;
}
symbols [
"MAILCOW_BLACK"
]
}
<?php
}
?>
}
}

View File

@@ -0,0 +1,8 @@
clamav {
attachments_only = false;
max_size = 20000000;
symbol = "CLAM_VIRUS";
type = "clamav";
log_clean = true;
servers = "clamd:3310";
}

View File

@@ -0,0 +1,7 @@
rules {
DKIM_FAIL {
action = "add header";
expression = "R_DKIM_REJECT & !MAILLIST & !MAILCOW_WHITE & !MAILCOW_BLACK";
require_action = ["no action", "greylist"];
}
}

View File

@@ -7,10 +7,6 @@ rspamd_config.MAILCOW_AUTH = {
end
}
rspamd_config.MAILCOW_MOO = function (task)
return true
end
modify_subject_map = rspamd_config:add_map({
url = 'http://172.22.1.251:8081/tags.php',
type = 'map',