summaryrefslogtreecommitdiff
path: root/d9-mail-family-fr.sh
diff options
context:
space:
mode:
Diffstat (limited to 'd9-mail-family-fr.sh')
-rwxr-xr-xd9-mail-family-fr.sh6
1 files changed, 5 insertions, 1 deletions
diff --git a/d9-mail-family-fr.sh b/d9-mail-family-fr.sh
index 1adf445..c89a071 100755
--- a/d9-mail-family-fr.sh
+++ b/d9-mail-family-fr.sh
@@ -479,12 +479,16 @@ acl_check_data:
condition = ${if eq{$spam_action}{}}
message = Please try again later, spam scanner unavailable
- # FROM https://rspamd.com/doc/integration.html
+ # FROM https://rspamd.com/doc/integration.html (+custom rule for classfied as virus)
# use greylisting available in rspamd v1.3+
defer message = Please try again later
condition = ${if eq{$spam_action}{soft reject}}
+ # Reject message that have classified as virus
+ deny message = Message classified as virus
+ condition = ${if and { { eq{$spam_action}{reject} } { match {$spam_report}{CLAM_VIRUS} } } }
+
# Reject message that have high-probability to be spam
deny message = Message classified as spam
condition = ${if eq{$spam_action}{reject}}