Klaus, > some users here did send defective tar Archives. They archived a > directory with a symlink showing into another directory which is not in > the archive. > > The problem now: amavisd has problems checking this archive and fills > up the disk with temporary folders. > > The error message: > > host 127.0.0.1[127.0.0.1] said: 451 4.5.0 Error in processing, > id=07803-09, virus_scan FAILED: AV: File > "/var/amavis/tmp/amavis-20090901T105405-07803/parts/arch/accuracy-eps" > inaccessible: Permission denied at /usr/sbin/amavisd line 2632.
> lrwxrwxrwx 1 11136 10000 0 Jun 9 09:04 accuracy.eps => ../sub2/accuracy.eps > Note the link from accuracy.eps to ../sub2 > > How can we patch amavisd to ignore such dead symlinks? > (2.6.4 is running here). This shouldn't be happening, soft links should be removed by flatten_and_tidy_dir() before calling further decoders or virus scanners. What are you using for decoding of tar archives? Check your settings of @decoders, and see what is logged during startup (log level 2), e.g.: amavis[68858]: Found decoder for .tar at /bin/pax amavis[68858]: Found decoder for .tar at /bin/cpio (backup, not used) amavis[68858]: Internal decoder for .tar (backup, not used) Is it pax, cpio, or Archive::Tar ? Perhaps a look at log level 5 for decoding would be in order. Mark ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ AMaViS-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/amavis-user AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3 AMaViS-HowTos:http://www.amavis.org/howto/
