On 02/08/2010 07:36, R M K G Rathnayake wrote: > I have this problem with tmp directory. Although I deleted the content in the > directory it's getting filled in gigabytes very fast, therefore my /var is > going out of space. Why this problem occurs and what I can do for this?
I recently ran into the same problem, and from looking at my logs, I figured out that amavisd-new was timing out on one particular mail, and leaving the unpacked files behind. The problem turned out to be that /usr/bin/file took 8 minutes to identify one component, and the time-out in amavisd-new is 5 mintues. Setting this to 10 minutes allowed things to proceed normally. But 8 minutes to identify a file type is not right, so I copied the offending component to a few other machines and compared. On one of these machines (same version of file, but different distro) I found that it worked instantly. Looking the output of ldd against each file, I found that there there was one library that file on my server was not linked against (can't remember which, maybe libmagic?). I downloaded the source, compiled it and installed it into /opt. Tested it, it worked instantly. Updated my amavisd-new config with the new file utility, and all is well now. Hope that helps. K ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ AMaViS-user mailing list AMaViS-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/amavis-user Please visit http://www.ijs.si/software/amavisd/ regularly For administrativa requests please send email to rainer at openantivirus dot org