summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLudovic Pouzenc <ludovic@pouzenc.fr>2019-01-08 20:26:45 +0100
committerLudovic Pouzenc <ludovic@pouzenc.fr>2019-01-08 20:26:45 +0100
commit331ff8eba077a735faac99d23588c9ae399017b2 (patch)
treee3cdb521877a49ff75ef0951717a4fcf08cf625f
parenta88d8fd40b086939c94b98ef6bcd7a12b4fab66a (diff)
downloadtake-it-easy-linux-331ff8eba077a735faac99d23588c9ae399017b2.tar.gz
take-it-easy-linux-331ff8eba077a735faac99d23588c9ae399017b2.tar.bz2
take-it-easy-linux-331ff8eba077a735faac99d23588c9ae399017b2.zip
Add custom SMTP reply in case of virus
-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}}