qmail smtp hang / stop working a few times everyday
Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
qmail smtp hang / stop working a few times everyday
Hi there,
I am having a qmail server with fedora 6 running for few months already. Basically the installation steps are majority follow qmailrocks guides. After few months using the qmail server, i have noticed a problem here.
My SMTP hang a few times a day, each time for about 10-15 minutes. When it hangs, the users are unable to send mail. When i do qmailctl pause and then qmailctl cont, sometime it can bring up the server.
Here is my qmail-smtp/run. can anyone help me on this?
Since it hanged during run time, this mean, there is some problem with run time (not setup). Can you check the current file for both qmail-smtpd, there maybe some messages for us to get a clue what had happened.?
Last edited by ghostdancer; 11-02-2007 at 04:39 AM.
Since it hanged during run time, this mean, there is some problem with run time (not setup). Can you check the current file for both qmail-smtpd, there maybe some messages for us to get a clue what had happened.?
the current file looks ok, but it stops taking in new log during the hang time, because the smtp not running.
It could be due to lack of memory. To confirm, comment out the 'QMAILQUEUE' line in the qmail-smtpd run file,(just add a '#' before it), and restart qmail. See if it still hangs after doing this.
Edit: Please be aware that this will stop your emails from being scanned for viruses and spam, so only do this for troubleshooting purposes (ie, not for a very long time)
Most of your memory is being used by the SpamAssassin daemon (spamd), and Apache (httpd). Are you running a separate site as well on the same server? There's also no 'clamd' (ClamAV's daemon) entry. I'm guessing that only pops up when there is an email to scan. If that is indeed the case, then there's definitely no ram for it to run, as in my experience the clamd process takes up quite a bit of memory as well.
So please try commenting out the 'QMAILQUEUE' line, as I mentioned in my previous post, and see if it helps. After commenting the line, restart qmail and stop (kill if necessary) the SpamAssassin and ClamAV processes. If it does help, then there's definitely a memory issue, and I don't think you can do much other than increase the RAM on the system.
Also, I noticed that you have a zombie process running. You can try stopping that by following the instructions on this site.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.