mailscanner batch problems

Julian Field MailScanner at ecs.soton.ac.uk
Thu Jan 21 12:56:13 GMT 2010


As the default batch size is
Max Unscanned Bytes Per Scan = 100m
Max Unsafe Bytes Per Scan = 50m
you will need enough space to store 2 copies of each message, giving a 
total of 200MBytes. I would advise you set it to be at least 256 MBytes.

But if you are using tmpfs, you don't need to specify the size anyway, 
it will just make use of as much space as it needs, as it takes it from 
your virtual memory pool.

So your best solution is to use tmpfs and stop telling it how much space 
to use at all. It will work it all out for itself, just leave it to get 
on with it.

Jules.

On 21/01/2010 12:33, Miguel Angel Nieto wrote:
> Hi,
>
> I think i have found the error :)
>
> Jan 21 10:39:03 xxxx MailScanner[2877]: Message F416C23820E.1FCFD is
> too big for available disk space in /var/spool/MailScanner/incoming,
> skipping it
> Jan 21 10:39:03 xxxx MailScanner[2877]: Message 03AC82381D4.57E49 is
> too big for available disk space in /var/spool/MailScanner/incoming,
> skipping it
> Jan 21 10:39:03 xxxx MailScanner[8931]: Message BADC52381B3.19DE9 is
> too big for available disk space in /var/spool/MailScanner/incoming,
> skipping it
>
>   /var/spool/MailScanner/incoming is in a tmpfs with 64 M only. I
> change it to 128 M.
>
> Thank you for your time Julian.
>
> 2010/1/21 Julian Field<MailScanner at ecs.soton.ac.uk>:
>    
>>
>> On 21/01/2010 11:39, Miguel Angel Nieto wrote:
>>      
>>> Hi Jules,
>>>
>>> This is the debug output:
>>>
>>> MailScanner --debug /etc/MailScanner/MailScanner.conf
>>> In Debugging mode, not forking...
>>>
>>> Ignore errors about failing to find EOCD signature
>>> format error: can't find EOCD signature
>>>   at /usr/sbin/MailScanner line 820
>>> format error: can't find EOCD signature
>>>   at /usr/sbin/MailScanner line 820
>>> WARNING: Ignoring unsupported option --tempdir
>>> WARNING: Ignoring unsupported option --recursive (-r)
>>> WARNING: Ignoring deprecated option --disable-summary
>>> WARNING: Ignoring unsupported option --unrar
>>>
>>>        
>> What virus scanner are you using, and what version?
>> What version of MailScanner are you using?
>>
>> All of those error messages should be harmless, it's not crashing or
>> anything.
>> Does your /var/log/maillog indicate MailScanner continually restarting
>> itself?
>>      
>>> Stopping now as you are debugging me.
>>>
>>> Thanks
>>>
>>> 2010/1/20 Julian Field<MailScanner at ecs.soton.ac.uk>:
>>>
>>>        
>>>> Do a "MailScanner --debug" and see if it shows any problems.
>>>> It should pick up 1 batch, process it and then quit. If it produces any
>>>> error messages, let me know the *full* text of the exact error message.
>>>>
>>>> Jules.
>>>>
>>>> On 20/01/2010 10:07, Miguel Angel Nieto wrote:
>>>>
>>>>          
>>>>> Hi,
>>>>>
>>>>> Im using postfix.
>>>>>
>>>>> I have this option, with 10 children.
>>>>>
>>>>> Queue Scan Interval = 5
>>>>>
>>>>> This is a normal behavior:
>>>>>
>>>>> Jan 19 13:06:06 xxx MailScanner[32244]: New Batch: Found 3 messages
>>>>> waiting
>>>>> Jan 19 13:06:07 xxx MailScanner[32457]: New Batch: Found 4 messages
>>>>> waiting
>>>>> Jan 19 13:06:08 xxx MailScanner[32001]: New Batch: Found 4 messages
>>>>> waiting
>>>>> Jan 19 13:06:09 xxx MailScanner[31253]: New Batch: Found 4 messages
>>>>> waiting
>>>>> Jan 19 13:06:10 xxx MailScanner[32457]: New Batch: Found 6 messages
>>>>> waiting
>>>>> Jan 19 13:06:12 xxx MailScanner[31253]: New Batch: Found 7 messages
>>>>> waiting
>>>>>
>>>>> But yerterday I have this problem (with 800+ mails in hold queue)
>>>>>
>>>>> Jan 19 12:49:08 xxx MailScanner[5079]: New Batch: Found 368 messages
>>>>> waiting
>>>>> Jan 19 12:50:39 xxx MailScanner[1920]: New Batch: Found 412 messages
>>>>> waiting
>>>>> Jan 19 12:51:22 xxx MailScanner[2377]: New Batch: Found 431 messages
>>>>> waiting
>>>>> Jan 19 12:52:03 xxx MailScanner[7883]: New Batch: Found 450 messages
>>>>> waiting
>>>>> Jan 19 12:57:07 xxx MailScanner[2377]: New Batch: Found 752 messages
>>>>> waiting
>>>>>
>>>>> Five minutes from one batch to another one!
>>>>>
>>>>> To solve the problem I had to restart MailScanner.
>>>>>
>>>>> Can you help me? :)
>>>>>
>>>>> P.D.
>>>>>
>>>>> My first problem with Mailscanner in... "11:04:13 up 154 days" :)
>>>>>
>>>>>
>>>>>
>>>>>            
>>>> 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.
>>>>
>>>> --
>>>> MailScanner mailing list
>>>> mailscanner at lists.mailscanner.info
>>>> http://lists.mailscanner.info/mailman/listinfo/mailscanner
>>>>
>>>> Before posting, read http://wiki.mailscanner.info/posting
>>>>
>>>> Support MailScanner development - buy the book off the website!
>>>>
>>>>
>>>>          
>>>
>>>
>>>        
>> 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.
>>
>> --
>> MailScanner mailing list
>> mailscanner at lists.mailscanner.info
>> http://lists.mailscanner.info/mailman/listinfo/mailscanner
>>
>> Before posting, read http://wiki.mailscanner.info/posting
>>
>> Support MailScanner development - buy the book off the website!
>>
>>      
>
>
>    

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