From 00a73023c8100d3c80aed72c3c6d808228b51411 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ask=20Bj=C3=B8rn=20Hansen?= Date: Mon, 27 Feb 2006 21:43:04 +0000 Subject: [PATCH] r4522@g5: ask | 2006-02-27 13:41:42 -0800 Make the clamdscan plugin temporarily deny mail if if can't talk to clamd (Filippo Carletti) git-svn-id: https://svn.perl.org/qpsmtpd/branches/0.3x@621 958fd67b-6ff1-0310-b445-bb7760255be9 --- Changes | 6 ++++++ plugins/virus/clamdscan | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/Changes b/Changes index 98d0241..acf5463 100644 --- a/Changes +++ b/Changes @@ -1,3 +1,9 @@ +0.33 + + Make the clamdscan plugin temporarily deny mail if if can't talk to clamd + (Filippo Carletti) + + 0.32 - 2006/02/26 Add logging/file plugin for simple logging to a file (Devin Carraway and diff --git a/plugins/virus/clamdscan b/plugins/virus/clamdscan index f4ee51f..80a49d3 100644 --- a/plugins/virus/clamdscan +++ b/plugins/virus/clamdscan @@ -155,7 +155,7 @@ sub hook_data_post { unless ( $clamd->ping() ) { $self->log( LOGERROR, "Cannot ping clamd server - did you provide the correct clamd port or socket?" ); - return DECLINED; + return DENYSOFT; } if ( my %found = $clamd->scan($filename) ) {