Merge remote-tracking branch 'origin/dev' into forwardinghosts
This commit is contained in:
@@ -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
|
||||
}
|
||||
?>
|
||||
}
|
||||
}
|
||||
|
8
data/conf/rspamd/local.d/antivirus.conf
Normal file
8
data/conf/rspamd/local.d/antivirus.conf
Normal file
@@ -0,0 +1,8 @@
|
||||
clamav {
|
||||
attachments_only = false;
|
||||
max_size = 20000000;
|
||||
symbol = "CLAM_VIRUS";
|
||||
type = "clamav";
|
||||
log_clean = true;
|
||||
servers = "clamd:3310";
|
||||
}
|
7
data/conf/rspamd/local.d/force_actions.conf
Normal file
7
data/conf/rspamd/local.d/force_actions.conf
Normal 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"];
|
||||
}
|
||||
}
|
@@ -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',
|
||||
|
Reference in New Issue
Block a user