Quarantine problem: Ext3 directory limit to 32000 files
ka at pacific.net
Fri Aug 13 16:24:32 IST 2010
On 8/10/2010 6:25 AM, Paulo Roncon wrote:
> On 09/08/2010 13:04, Paulo Roncon wrote:
>> Yesterday I got a problem with my mailscanner server. The messages stopped being processed and the mailscanner would crash attempting to process the messages.
>> Some troubleshooting later and: The problem was with the file per directory limit = 32000 of the ext3.
>> I'm going to upgrade to ext4.
>> Any ideias? Change the quarantine function to create directories per hour also?
> I think I need to clarify things:
> -The 32000 messages ARE PER DAY
> -I DO have a very, very, very busy server
> -I DO have Bayes, AV, etc, etc, etc in place
> -I have to obey to client rules as to what to do with spam - the delete a message the threshold must be very high
> -End users DO NOT have access to the quarantine
> My post was more a warning to all of you who might have a server as busy as mine.
> -A watchdog for this problem could be:
> ls /var/spool/MailScanner/quarantine/[TODAY] | wc -l
> if> 25000 then move all subdirs between 0h00AM - 4h00AM to other DIR and send notification
> -Other solutions, as I already proposed would be to extend the structure to /var/spool/MailScanner/quarantine/[TODAY]/[HOUR]
> But this would have impact in MailWatch (I think... not sure) and every other script buildt around quarantine management
> -The best, I think would be to upgrade to EXT4.
"Quarantine Dir - # This can also be the filename of a ruleset."
So, you could just use MailScanner to put them in various dirs based on
To: or whatever, right? You'd have to modify MailWatch if it didn't
handle rulesets here. Maybe I'm missing something?
Pacific Internet - http://www.pacific.net
More information about the MailScanner