Quarantine problem: Ext3 directory limit to 32000 files

Julian Field MailScanner at ecs.soton.ac.uk
Fri Aug 13 17:16:17 IST 2010



On 13/08/2010 16:24, Ken A wrote:
>
>
> On 8/10/2010 6:25 AM, Paulo Roncon wrote:
>> On 09/08/2010 13:04, Paulo Roncon wrote:
>>> Hello,
>>>
>>> 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?
>>>
>>>
>>>   Paulo
>>>
>>
>> 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:
>> cron.d:
>> 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?
A Custom Function would be better, but I have just added the "_HOUR_" 
token to the list of available tokens in the settings for "Archive 
Mail", "Spam Actions", "High-Scoring Spam Actions" and "Non-Spam Actions".

This will be in the next release, which I can do for you tomorrow if you 
like.
Should solve your problem quite neatly.

Jules

-- 
Julian Field MEng CITP CEng
www.MailScanner.info
Buy the MailScanner book at www.MailScanner.info/store

Need help customising MailScanner?
Contact me!
Need help fixing or optimising your systems?
Contact me!
Need help getting you started solving new requirements from your boss?
Contact me!

PGP footprint: EE81 D763 3DB0 0BFD E1DC 7222 11F6 5947 1415 B654
Follow me at twitter.com/JulesFM and twitter.com/MailScanner


-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.



More information about the MailScanner mailing list