Koozali.org: home of the SME Server

clamav "problem" e-mails

Offline Alex Schaft

  • ****
  • 97
  • +0/-0
clamav "problem" e-mails
« on: November 14, 2005, 03:06:52 PM »
Hi,

I've just installed ClamAV 0.87, and am getting 3-4 e-mails a day of mail being saved to the problems directory, If I then go to the web interface and deliver them, it goes through fine.

The amavis conf is at the default of not stopping for mime errors

I'm now upgrading to clamav 0.87.1, to see if it makes a difference.

This happens on mails with large (1-2 MB) zip attachments.

What else could I check?

Alex
......

tandum

clamav "problem" e-mails
« Reply #1 on: November 14, 2005, 03:45:04 PM »
I guess your using an SME 6x product.

Look in /etc/amavis-ng/amavis.conf for the maxspace setting.

Enlarge it in the /etc/e-smith/templates and see if that helps.

Offline Alex Schaft

  • ****
  • 97
  • +0/-0
clamav "problem" e-mails
« Reply #2 on: November 14, 2005, 03:58:02 PM »
Quote from: "tandum"
I guess your using an SME 6x product.

Look in /etc/amavis-ng/amavis.conf for the maxspace setting.

Enlarge it in the /etc/e-smith/templates and see if that helps.


I'm on 6.01-01 yes. I've upped the maxspace to 100M from 60M.

Would be nice if the thing told you what the problem was.
......

tandum

clamav "problem" e-mails
« Reply #3 on: November 14, 2005, 04:13:09 PM »
Quote from: "Elax"
Would be nice if the thing told you what the problem was.

nods ... I had a similar issue. It tooks me ages to figure out it was av disk space. Logs showed a clam error. I upped the space to  several gig. The problem was it put the zip in that space and then unzipped it there and then scanned it there.

Remeber you need to change the option in the templates and then expand them and then signal an event so it's re read.

Offline Alex Schaft

  • ****
  • 97
  • +0/-0
aMAVIS
« Reply #4 on: November 14, 2005, 06:38:21 PM »
Quote from: "tandum"


Remeber you need to change the option in the templates and then expand them and then signal an event so it's re read.


I've signalled an email-update, although I'm not sure it's needed. Amavis doesn't seem to run as a service, so I'm guessing it reads its config everytime it gets launched for a message
......

Offline Alex Schaft

  • ****
  • 97
  • +0/-0
Still a problem
« Reply #5 on: November 16, 2005, 08:32:45 AM »
I've not got maxspace = 4000M, and still getting messages saved to the problems directory.

Is there a way to see what caused the error in the unzipping?

I've made a mod to /usr/lib/perl5/site_perl/5.6.1/AMAVIS/Extract/Zip.pm

  if ($ziperr != AZ_OK) {
    writelog($args,LOG_ERR, __PACKAGE__.": Error reading zip file".$ziperr);
    return 0;
Alex
......

Offline Knuddi

  • *
  • 540
  • +0/-0
    • http://www.scanmailx.com
clamav "problem" e-mails
« Reply #6 on: November 16, 2005, 07:21:01 PM »
Have you tried to check the log file which is reported when an email to admin is sent to the problems folder?

What does it say as reason?

Offline Alex Schaft

  • ****
  • 97
  • +0/-0
Amavis
« Reply #7 on: November 16, 2005, 08:22:42 PM »
It never gave a reason. It only said Error reading zip file.

I had disabled all extractors except mail today. I'll reenable it, and then post what it says
......

Offline Alex Schaft

  • ****
  • 97
  • +0/-0
Problem log
« Reply #8 on: November 18, 2005, 11:07:52 AM »
Hi,

Below the log from a problem e-mail:

Nov 18 09:59:00 mail amavis[13973]: Unpacking message in /var/spool/amavis-ng/amavis-unpack-437d896f-3695
Nov 18 09:59:00 mail amavis[13973]: AMAVIS: Determined 00000000 to be type message/rfc822
Nov 18 09:59:00 mail amavis[13973]: Attempting to unpack 00000000 as MIME compliant message
Nov 18 09:59:00 mail amavis[13973]: AMAVIS: Determined 00000004 to be type application/x-zip
Nov 18 09:59:00 mail amavis[13973]: Attempting to unpack 00000004 as Zip file
Nov 18 09:59:00 mail amavis[13973]: AMAVIS::Extract::Zip: Error reading zip file
Nov 18 09:59:00 mail amavis[13973]: AMAVIS: Error while unpacking 00000004 as application/x-zip
Nov 18 09:59:00 mail amavis[13973]: AMAVIS: Giving up
Nov 18 09:59:00 mail amavis[13973]: AMAVIS: Error while unpacking message
Nov 18 09:59:00 mail amavis[13973]: AMAVIS::MTA::Qmail: Freezing message
Nov 18 09:59:00 mail amavis[13973]: Quarantining infected message to /var/spool/amavis-ng/problems/437d89c4-3695

The zip file is something called backup.001. I'll take a look at it.
......