From 331ff8eba077a735faac99d23588c9ae399017b2 Mon Sep 17 00:00:00 2001 From: Ludovic Pouzenc Date: Tue, 8 Jan 2019 20:26:45 +0100 Subject: Add custom SMTP reply in case of virus --- d9-mail-family-fr.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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}} -- cgit v1.2.3