From f3fad4e7a2279581115d48e4ac0946991c95fb30 Mon Sep 17 00:00:00 2001 From: Michael Kuron Date: Mon, 24 Apr 2017 19:49:41 +0200 Subject: [PATCH] Remove rspamd size limit This ensures that the spam and antivirus filters cannot be evaded by making the message large enough. Rspamd does not need a size limit on its own (e.g. for DoS protection) as Postfix already has a size limit (message_size_limit). --- data/conf/rmilter/rmilter.conf | 1 - data/conf/rspamd/local.d/antivirus.conf | 1 - 2 files changed, 2 deletions(-) diff --git a/data/conf/rmilter/rmilter.conf b/data/conf/rmilter/rmilter.conf index f84408cd9..d957935cf 100644 --- a/data/conf/rmilter/rmilter.conf +++ b/data/conf/rmilter/rmilter.conf @@ -28,7 +28,6 @@ redis { }; tempdir = /tmp; tempfiles_mode = 00600; -max_size = 20M; strict_auth = yes; use_dcc = no; limits { diff --git a/data/conf/rspamd/local.d/antivirus.conf b/data/conf/rspamd/local.d/antivirus.conf index 51bc46f9c..92ba684c9 100644 --- a/data/conf/rspamd/local.d/antivirus.conf +++ b/data/conf/rspamd/local.d/antivirus.conf @@ -1,6 +1,5 @@ clamav { attachments_only = false; - max_size = 20000000; symbol = "CLAM_VIRUS"; type = "clamav"; log_clean = true;