From: "Steven Levine" Received: from [192.168.100.201] (HELO mail.2rosenthals.com) by 2rosenthals.com (CommuniGate Pro SMTP 5.4.10) with ESMTP id 11205853 for ecs-isp@2rosenthals.com; Mon, 04 Nov 2024 17:23:33 -0500 Received: from secmgr-va.2rosenthals.com ([50.73.8.217]:49052 helo=mail2.2rosenthals.com) by mail.2rosenthals.com with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.97.1) (envelope-from ) id 1t85Tw-000000005C5-06En for ecs-isp@2rosenthals.com; Mon, 04 Nov 2024 17:23:32 -0500 Received: from mta-201a.earthlink-vadesecure.net ([51.81.229.180]:49347) by mail2.2rosenthals.com with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.97.1) (envelope-from ) id 1t85Tt-000000003sU-1AHl for ecs-isp@2rosenthals.com; Mon, 04 Nov 2024 17:23:29 -0500 DKIM-Signature: v=1; a=rsa-sha256; bh=70iFYFg17BchktjtyutQLYouP6lFPUDsuJ/MJA vX4sY=; c=relaxed/relaxed; d=earthlink.net; h=from:reply-to:subject: date:to:cc:resent-date:resent-from:resent-to:resent-cc:in-reply-to: references:list-id:list-help:list-unsubscribe:list-unsubscribe-post: list-subscribe:list-post:list-owner:list-archive; q=dns/txt; s=dk12062016; t=1730759008; x=1731363808; b=UcimZEagZdZCpRjf3AlNNAUyxvH TPo0GXqVW/OuJJx5pCgEba84VPSfO9dbG+/0Hlc6vcYwpF5ohuB061IsJdKI807/tnmiD4d YajWUk5L2lHuknwB8w5spkf7p8Oj99g4gkRO6GwcTjD+Uos2/HlAeI8QRoc+POQLUpgEHSN J9DHhH4XcMFhU3vGwOPT+kR6kkwvDLWvmhE0T3UJJ1Ho00ro7+SgNxh31Z29xA6DYcgKBus vGlb4oeZ36OP6OtjNNVWoP6cWdJhrDVSu75RfsYgn4mOZj+Hx/vxEz9VUEvRUIwMw94sQtR wUXOKN3yldgayTSG49NSBywwu8cQlBw== Received: from slamain ([172.58.117.14]) by vsel2nmtao01p.internal.vadesecure.com with ngmta id d2dcd630-1804e425dde6f1b7; Mon, 04 Nov 2024 22:23:28 +0000 Message-ID: <672942d0.9.mr2ice.fgrirsq@earthlink.net> Date: Mon, 04 Nov 2024 13:55:28 -0800 To: "eCS ISP Mailing List" In-Reply-To: Subject: Re: [eCS-ISP] clamscan issue - directories with a lot of files X-Mailer: MR/2 Internet Cruiser Edition for OS/2 v3.00.11.24/60 In , on 11/04/24 at 10:36 PM, "Massimo S." said: Hi Massimo, >i run this command for each domain Can I conclude you pasted a partially wrong command line? When you are running for a domain, you will need to use --recurse. >and i also run it "divided" on some single recipient directories for the >small ones eg. >X:\weasel\MailRoot\mydomain.com\mail1 >X:\weasel\MailRoot\mydomain.com\mail2 >etc.. For the large mailstores, you may have to use --include and --exclude to subdivide the directory contents into smaller chunks. Another option you have is to limit clamscan to checking only the recently modified files. Use your favorite file manager to build a list of the recenly modified files and run clamscan with the --file-list=FILE switch option. Given what we know about clamscan's memory usage and your mailstores, I probably would use the --file-list option for all runs. With 4OS2 and some easily accessible utilities, this is easy. To check all files changed in the last 5 days, it's dir /[d-5,%_DATE] /a:-d /f /s maildir... >5days.lst clamscan ... --file-lst=5days.lst where ... are your current switch options, excluding --recurse of course. If the resulting list is still too large for clamscan to handle without errors, we can use split to break the list into smaller lists that clamscan can handle. For 200 lines per file, it's split -l200 5days.lst The resulting split files will be named xaa, aab etc. We can adjust 200 upward until clamscan start to fail due to memory issues. Then it's for %XX in ( x* ) clamscan ... --file-list=%XX To use the above technique to check all files, we use dir /a:-d /f /s maildir... >allfiles.lst >Y: and Z: are both ramdisk filesystems >but also i believe this is not important I agree. This does not appear to be related to your problems. Steven -- ---------------------------------------------------------------------- "Steven Levine" Warp/DIY/BlueLion etc. www.scoug.com www.arcanoae.com www.warpcave.com ----------------------------------------------------------------------