From 4ca545d67cbdce36687b83fc9fb804277b139623 Mon Sep 17 00:00:00 2001 From: Andrzej Augustynowicz Date: Wed, 14 Jul 2004 08:01:47 +0000 Subject: [PATCH] - add option "do quarantine" (on, off quarantine) Changed files: amavis-ng-quarantine.patch -> 1.1 --- amavis-ng-quarantine.patch | 40 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 amavis-ng-quarantine.patch diff --git a/amavis-ng-quarantine.patch b/amavis-ng-quarantine.patch new file mode 100644 index 0000000..ba3fed6 --- /dev/null +++ b/amavis-ng-quarantine.patch @@ -0,0 +1,40 @@ +diff -Nur old/AMAVIS.pm new/AMAVIS.pm +--- old/AMAVIS.pm 2003-04-14 15:18:21.000000000 +0000 ++++ new/AMAVIS.pm 2004-07-14 00:00:49.000000000 +0000 +@@ -88,6 +88,7 @@ + $cfg_chroot + + $cfg_unpack_dir ++ $cfg_do_quarantine + $cfg_quarantine_dir + $cfg_problem_dir + +@@ -174,6 +175,7 @@ + ': no unpack dir specified, using /tmp'); + } + # Quarantine path for rejected messages ++ $cfg_do_quarantine = (lc($cfg->val('paths', 'do quarantine')) || 'yes'); + $cfg_quarantine_dir = ($cfg->val('paths', 'quarantine') || + $cfg->val('paths', 'quarantine dir') || + '/var/spool/amavis-ng/quarantine'); +@@ -502,7 +504,7 @@ + $mta->drop_message($args); + + # Quarantine message +- if (defined $cfg_quarantine_dir) { ++ if ($cfg_do_quarantine eq 'yes' && defined $cfg_quarantine_dir) { + $self->quarantine_message($args, $cfg_quarantine_dir) or do { + writelog($args,LOG_CRIT, __PACKAGE__. + ": Error while quarantining message"); +diff -Nur old/etc/amavis.conf new/etc/amavis.conf +--- old/etc/amavis.conf 2003-04-08 14:09:56.000000000 +0000 ++++ new/etc/amavis.conf 2004-07-14 00:03:07.000000000 +0000 +@@ -82,7 +82,7 @@ + + ;; Where should infected mail be stored? (Only the actual mail, not + ;; the unpacked attachments) +- ++do quarantine = yes + ; quarantine dir = /var/spool/amavis-ng/quarantine + + ;; If problems occur, put message into this directory -- 2.44.0