MailScanner restarts continuosly after OOM

Ramiro Blanco ramiblanco at gmail.com
Sat Dec 6 01:18:32 GMT 2008


Hi, yesterday i had to deactivate MailScanner and move the queue manually
(with postsuper -r ALL) from the postfix "hold" queue. The problem was that
MailScanner stopped processing mails, after checking logs  i found that it
was restarting all the time so i proceeded to start it manually by issuing
MailScanner --debug and there i saw that the problem was "Out of memory".
Weird as the server has memory left, no swap used and doesn't process a huge
amount of mails per day. I've tried to set "Max Children = 5" and even "Max
Children = 1", but it made no difference...
Here you have more details of my setup and the info i found on logs and the
output of MailScanner --debug:

OS: Centos 5.1
CPU: AMD X2 3600
MEM: 4gb DDR2
HDD: SATA 160 Gb,  119 Gb Available (13% used)


[root at host ~]#cat /var/log/maillog
Dec  4 01:00:29 host MailScanner[4400]: MailScanner E-Mail Virus Scanner
version 4.71.10 starting...
Dec  4 01:00:29 host MailScanner[4400]: Read 848 hostnames from the phishing
whitelist
Dec  4 01:00:29 host MailScanner[4400]: Read 7732 hostnames from the
phishing blacklist
Dec  4 01:00:29 host MailScanner[4400]: SpamAssassin temporary working
directory is /var/spool/MailScanner/incoming/SpamAssassin-Temp
Dec  4 01:00:29 host MailScanner[4400]: Using SpamAssassin results cache
Dec  4 01:00:29 host MailScanner[4400]: Connected to SpamAssassin cache
database
Dec  4 01:00:29 host MailScanner[4400]: Enabling SpamAssassin auto-whitelist
functionality...
Dec  4 01:00:31 host MailScanner[4400]: I have found clamav scanners
installed, and will use them all by default.
Dec  4 01:00:31 host MailScanner[4400]: Using locktype = flock
Dec  4 01:00:31 host MailScanner[4400]: New Batch: Found 766 messages
waiting
Dec  4 01:00:31 host MailScanner[4400]: New Batch: Scanning 30 messages,
180845 bytes
Dec  4 01:00:31 host MailScanner[4400]: SpamAssassin cache hit for message
DEEC61728429.576CB
Dec  4 01:00:31 host MailScanner[4400]: SpamAssassin cache hit for message
836DA172841E.1F065
Dec  4 01:00:31 host MailScanner[4400]: SpamAssassin cache hit for message
7C9EF1728485.3D237
Dec  4 01:00:31 host MailScanner[4400]: SpamAssassin cache hit for message
BC4F11728469.8E5BA
...
Dec  4 01:00:31 host MailScanner[4400]: SpamAssassin cache hit for message
99FA617284C4.82E51
Dec  4 01:00:34 host MailScanner[4441]: MailScanner E-Mail Virus Scanner
version 4.71.10 starting...
Dec  4 01:00:34 host MailScanner[4441]: Read 848 hostnames from the phishing
whitelist
Dec  4 01:00:34 host MailScanner[4441]: Read 7732 hostnames from the
phishing blacklist
Dec  4 01:00:34 host MailScanner[4441]: SpamAssassin temporary working
directory is /var/spool/MailScanner/incoming/SpamAssassin-Temp
Dec  4 01:00:34 host MailScanner[4441]: Using SpamAssassin results cache
Dec  4 01:00:34 host MailScanner[4441]: Connected to SpamAssassin cache
database
Dec  4 01:00:34 host MailScanner[4441]: Enabling SpamAssassin auto-whitelist
functionality...
Dec  4 01:00:36 host MailScanner[4441]: I have found clamav scanners
installed, and will use them all by default.
Dec  4 01:00:36 host MailScanner[4441]: Using locktype = flock
Dec  4 01:00:36 host MailScanner[4441]: New Batch: Found 766 messages
waiting
Dec  4 01:00:36 host MailScanner[4441]: New Batch: Scanning 30 messages,
180845 bytes
Dec  4 01:00:36 host MailScanner[4441]: SpamAssassin cache hit for message
4F368172848D.9F379
Dec  4 01:00:36 host MailScanner[4441]: SpamAssassin cache hit for message
1A3211728443.A9C4E
Dec  4 01:00:36 host MailScanner[4441]: SpamAssassin cache hit for message
F058317284CF.7716C
Dec  4 01:00:36 host MailScanner[4441]: SpamAssassin cache hit for message
DEEC61728429.63AAA


[root at host ~]#MailScanner --debug
In Debugging mode, not forking...
Trying to setlogsock(unix)
SpamAssassin temp dir = /var/spool/MailScanner/incoming/SpamAssassin-Temp
Building a message batch to scan...
Have a batch of 30 messages.
max message size is '200k'
max message size is '200k'
max message size is '200k'
max message size is '200k'
max message size is '200k'
max message size is '200k'
...
max message size is '200k'
max message size is '200k'
max message size is '200k'
Out of memory!



Cheers,


-- 
Ramiro Blanco
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.mailscanner.info/pipermail/mailscanner/attachments/20081205/0e5c753a/attachment.html


More information about the MailScanner mailing list