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...<br>
Here you have more details of my setup and the info i found on logs and the output of MailScanner --debug:<br><br>OS: Centos 5.1<br>CPU: AMD X2 3600<br>MEM: 4gb DDR2<br>HDD: SATA 160 Gb, 119 Gb Available (13% used)<br><br>
<br>[root@host ~]#cat /var/log/maillog<br>Dec 4 01:00:29 host MailScanner[4400]: MailScanner E-Mail Virus Scanner version 4.71.10 starting...<br>Dec 4 01:00:29 host MailScanner[4400]: Read 848 hostnames from the phishing whitelist<br>
Dec 4 01:00:29 host MailScanner[4400]: Read 7732 hostnames from the phishing blacklist<br>Dec 4 01:00:29 host MailScanner[4400]: SpamAssassin temporary working directory is /var/spool/MailScanner/incoming/SpamAssassin-Temp<br>
Dec 4 01:00:29 host MailScanner[4400]: Using SpamAssassin results cache<br>Dec 4 01:00:29 host MailScanner[4400]: Connected to SpamAssassin cache database<br>Dec 4 01:00:29 host MailScanner[4400]: Enabling SpamAssassin auto-whitelist functionality...<br>
Dec 4 01:00:31 host MailScanner[4400]: I have found clamav scanners installed, and will use them all by default.<br>Dec 4 01:00:31 host MailScanner[4400]: Using locktype = flock<br>Dec 4 01:00:31 host MailScanner[4400]: New Batch: Found 766 messages waiting<br>
Dec 4 01:00:31 host MailScanner[4400]: New Batch: Scanning 30 messages, 180845 bytes<br>Dec 4 01:00:31 host MailScanner[4400]: SpamAssassin cache hit for message DEEC61728429.576CB<br>Dec 4 01:00:31 host MailScanner[4400]: SpamAssassin cache hit for message 836DA172841E.1F065<br>
Dec 4 01:00:31 host MailScanner[4400]: SpamAssassin cache hit for message 7C9EF1728485.3D237<br>Dec 4 01:00:31 host MailScanner[4400]: SpamAssassin cache hit for message BC4F11728469.8E5BA<br>...<br>Dec 4 01:00:31 host MailScanner[4400]: SpamAssassin cache hit for message 99FA617284C4.82E51<br>
Dec 4 01:00:34 host MailScanner[4441]: MailScanner E-Mail Virus Scanner version 4.71.10 starting...<br>Dec 4 01:00:34 host MailScanner[4441]: Read 848 hostnames from the phishing whitelist<br>Dec 4 01:00:34 host MailScanner[4441]: Read 7732 hostnames from the phishing blacklist<br>
Dec 4 01:00:34 host MailScanner[4441]: SpamAssassin temporary working directory is /var/spool/MailScanner/incoming/SpamAssassin-Temp<br>Dec 4 01:00:34 host MailScanner[4441]: Using SpamAssassin results cache<br>Dec 4 01:00:34 host MailScanner[4441]: Connected to SpamAssassin cache database<br>
Dec 4 01:00:34 host MailScanner[4441]: Enabling SpamAssassin auto-whitelist functionality...<br>Dec 4 01:00:36 host MailScanner[4441]: I have found clamav scanners installed, and will use them all by default.<br>Dec 4 01:00:36 host MailScanner[4441]: Using locktype = flock<br>
Dec 4 01:00:36 host MailScanner[4441]: New Batch: Found 766 messages waiting<br>Dec 4 01:00:36 host MailScanner[4441]: New Batch: Scanning 30 messages, 180845 bytes<br>Dec 4 01:00:36 host MailScanner[4441]: SpamAssassin cache hit for message 4F368172848D.9F379<br>
Dec 4 01:00:36 host MailScanner[4441]: SpamAssassin cache hit for message 1A3211728443.A9C4E<br>Dec 4 01:00:36 host MailScanner[4441]: SpamAssassin cache hit for message F058317284CF.7716C<br>Dec 4 01:00:36 host MailScanner[4441]: SpamAssassin cache hit for message DEEC61728429.63AAA<br>
<br><br>[root@host ~]#MailScanner --debug<br>In Debugging mode, not forking... <br>Trying to setlogsock(unix) <br>SpamAssassin temp dir = /var/spool/MailScanner/incoming/SpamAssassin-Temp<br>
Building a message batch to scan... <br>
Have a batch of 30 messages. <br>max message size is '200k' <br>max message size is '200k' <br>
max message size is '200k' <br>max message size is '200k' <br>max message size is '200k' <br>
max message size is '200k' <br>... <br>max message size is '200k' <br>max message size is '200k' <br>
max message size is '200k' <br>Out of memory! <br><br> <br><br>Cheers,<br><br><br>
-- <br>Ramiro Blanco<br>