diff --git a/data/conf/rmilter/rmilter.conf b/data/conf/rmilter/rmilter.conf
index f84408cd..d957935c 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 51bc46f9..92ba684c 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;