Ticket #27 (closed defect: fixed)

Opened 7 years ago

Last modified 6 years ago

process-quarantine.pl doesn't check file sizes before learning and reporting

Reported by: rjl Owned by: rjl
Priority: high Milestone: 1.0.1
Component: Perl scripts Version: 1.0.0 RC5
Severity: major Keywords: process-quarantine.pl size learn report
Cc:

Description

From Craig Fisher:

Ran into a problem today which I finally pinpointed within process-quarantine.pl. First indication of the problem was that it took over the hour for the hourly cron-job to run, until there were three process-quarantine.pl processes hogging everything. We have upped the max size of email allowed to 10MB (and upped the mysql config accordingly), but don't scan anything larger than 150K (150*1024 in amavisd.conf). However - process-quarantine.pl does not honour this maximum, and tries to submit EVERYTHING to the ham learning process... and when it tries to submit the 10 x 7MB binary files to spamassassin .... it CRAWLS... (to a halt).

Change History

Changed 7 years ago by rjl

  • status changed from new to assigned

Changed 6 years ago by dmorton

  • milestone 1.0.0 RC6 deleted

Changed 6 years ago by rjl

  • status changed from assigned to closed
  • resolution set to fixed
  • milestone set to 1.0.1

Fixed in Changeset 966. A new --max-size argument can be supplied at the command line, or at the top of process-quarantine-sub.pl. The default value is 256 kb (256*1024 bytes), as it is in the stock amavisd.conf file. Items larger than this figure will be skipped by the processing script.

Note: See TracTickets for help on using tickets.