Koozali.org: home of the SME Server

Clam Antivirus File size limit

k_graham

Clam Antivirus File size limit
« on: April 15, 2006, 05:36:40 PM »
I updated Clam Antivirus with Swerts Knudsens script and since then large file attachments are prevented from arriving or I assume being sent.

We have soupermail installed so people can send us large file via web, bypassing their ISP email limitation.

http://forums.contribs.org/index.php?topic=22994.0

We formerly could send or receive even 60 meg or larger files and I would like to get this capability back but also have Virus checking.

My searches for a solution on this site have not yielded the answer though I expect its already here. Anyone with a recommendation?

Thanks, Ken Graham

Offline Knuddi

  • *
  • 540
  • +0/-0
    • http://www.scanmailx.com
Clam Antivirus File size limit
« Reply #1 on: April 19, 2006, 10:10:36 PM »
The parameters for that is stored in /etc/amavis-ng/amavis.conf but controlled by a template. You can try the alter below directly in the amavis.conf file to see that it actually solved your problem:

;; Resource limits for unpacking each message
;; How many levels of unpacking do we do?
maxlevels = 20
;; How many files do we want to write?
maxfiles = 1000
;; How much diskspace do we want to consume?
maxspace = 60M

and the afterwards change in:

/etc/e-smith/templates/etc/amavis-ng/amavis.conf/810MaxLevels
/etc/e-smith/templates/etc/amavis-ng/amavis.conf/820MaxFiles
/etc/e-smith/templates/etc/amavis-ng/amavis.conf/830MaxSpace

and expand the template with

# /sbin/e-smith/expand-template /etc/amavis-ng/amavis.conf

Offline kruhm

  • *
  • 680
  • +0/-0
Clam Antivirus File size limit
« Reply #2 on: April 28, 2006, 08:22:45 PM »
How do you configure the "Resource limits"?
Mine seems to overload during heavy use then stops.

The man doesn't help and info is limited.

Offline Knuddi

  • *
  • 540
  • +0/-0
    • http://www.scanmailx.com
Clam Antivirus File size limit
« Reply #3 on: April 29, 2006, 07:13:56 AM »
I do not understand you question - what is unclear about my post! You configure by changing the files as mentioned above. Change the template file and maybe then finaly restart clam/amavis through the server-manager interface.

Offline kruhm

  • *
  • 680
  • +0/-0
Clam Antivirus File size limit
« Reply #4 on: April 29, 2006, 07:23:49 PM »
Ohhh... my mistake. I thought there was a missing param between ";; Resource limits for unpacking each message" and ";; How many levels of unpacking do we do?"

k_graham

Clam Antivirus File size limit
« Reply #5 on: May 21, 2006, 07:32:05 AM »
Quote from: "Knuddi"
The parameters for that is stored in /etc/amavis-ng/amavis.conf but controlled by a template. You can try the alter below directly in the amavis.conf file to see that it actually solved your problem:

Yes that solved the problem at least for a 100 meg file.  I was able to use Soupermail to act like a FTP site from the web so  files of any size may be transferred to the server remotely. As it is using the email it is also viruschecking and preventing exe files from being transmitted requiring them to be zipped.

http://forums.contribs.org/index.php?topic=22994.0

Thanks,

Ken Graham