I have finally found the cause of this problem. It appears that one account was leaving a copy of the messages on the server forever. This account has a 2GB quota.
There was nearly 60,000 emails in the Maildir/new/ folder which caused the CPU to go crazy when receiving lots of email for that account. I have deleted the emails and now everything seems to work fine. -fred -----Original Message----- From: xmail-boun...@xmailserver.org [mailto:xmail-boun...@xmailserver.org] On Behalf Of Fred Sent: 12 avril 2012 08:58 To: 'XMail Users Mailing List' Subject: Re: [xmail] 100% CPU usage Hello, Thanks for your reply. The problem is not the PHP script. I am able to reproduce the problem with any other script that use XMail as their SMTP gateway, as long as it sends 2 mails per second to the server. I have added these 2 parameters to the cmd line : -MR 16384 -MS 8192 and it seemed to help a bit. At least the server keep responding but CPU still go all out 200% for a few minutes. I have tried disabling defaultgateway in server.tab as well as custmaplist without any effects. I will keep work on that and let you know if you put the finger on the problem. If anyone thinks of anything I could try please reply! Thanks -----Original Message----- From: xmail-boun...@xmailserver.org [mailto:xmail-boun...@xmailserver.org] On Behalf Of D. Vitoshnov Sent: 11 avril 2012 23:28 To: 'XMail Users Mailing List' Subject: Re: [xmail] 100% CPU usage Your problem is in your phpscript. Nobody can help you. -----Original Message----- From: xmail-boun...@xmailserver.org [mailto:xmail-boun...@xmailserver.org] On Behalf Of Fred Sent: Thursday, April 12, 2012 2:26 AM To: 'XMail Users Mailing List' Subject: Re: [xmail] 100% CPU usage bump -----Original Message----- From: xmail-boun...@xmailserver.org [mailto:xmail-boun...@xmailserver.org] On Behalf Of Fred Sent: 10 avril 2012 10:38 To: 'XMail Users Mailing List' Subject: [xmail] 100% CPU usage Hello, I would like to know what I can do about that problem? My XMail server is hitting 100% CPU usage (and stops receiving mails, pop3, etc) when a PHP script (phpmailer) is using it as a SMTP server to send mails. This is not mass mailing but only many people registering on a website at the same time. (like 500 people within 15 minutes). I have tried disabling ALL filters at all levels without any success. I have tried debug mode but I don't see anything suspicious except that it will stop receiving and sending when going 100%. Here is my commandline options: XMAIL_CMD_LINE="-Y- -F- -Pl -Ph -PX 256 -Sl -SX 256 -Fl -Cl -Ll -Ln 64 -Yl -Ql -Qg -Qn 128 -SI x.x.x.x:25 -SI x.x.x.x:2525 -SI x.x.x.x:2255 -SI x.x.x.x:15582 -Sl y.y.y.y:25 -SI y.y.y.y:2525" I have tried messing with threads number and using default value with no success. I am running FreeBSD-7.0 x64 on a dualcore xeon CPU. If anyone can provide some help / tips I would appreciate. Thanks _______________________________________________ xmail mailing list xmail@xmailserver.org http://xmailserver.org/mailman/listinfo/xmail _______________________________________________ xmail mailing list xmail@xmailserver.org http://xmailserver.org/mailman/listinfo/xmail _______________________________________________ xmail mailing list xmail@xmailserver.org http://xmailserver.org/mailman/listinfo/xmail _______________________________________________ xmail mailing list xmail@xmailserver.org http://xmailserver.org/mailman/listinfo/xmail _______________________________________________ xmail mailing list xmail@xmailserver.org http://xmailserver.org/mailman/listinfo/xmail