Opened 13 years ago

Closed 12 years ago

#27 closed defect (fixed)

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 (3)

comment:1 Changed 13 years ago by rjl

  • Status changed from new to assigned

comment:2 Changed 12 years ago by dmorton

  • Milestone 1.0.0 RC6 deleted

comment:3 Changed 12 years ago by rjl

  • Milestone set to 1.0.1
  • Resolution set to fixed
  • Status changed from assigned to closed

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.